Go to the documentation of this file.
31 #include <ArmarXCore/interface/observers/Timestamp.h>
33 #include <IceUtil/Time.h>
86 VariantDataClassPtr
clone(
const Ice::Current&
c = Ice::emptyCurrent)
const override
90 std::string
output(
const Ice::Current&
c = Ice::emptyCurrent)
const override
93 s << IceUtil::Time::microSeconds(timestamp).toDateTime();
100 bool validate(
const Ice::Current&
c = Ice::emptyCurrent)
override
107 stream <<
"TimestampVariant: " << std::endl << rhs.
output() << std::endl;
118 return IceUtil::Time::microSeconds(timestamp);
123 void serialize(
const armarx::ObjectSerializerBasePtr& serializer, const ::Ice::Current& = Ice::emptyCurrent)
const override;
124 void deserialize(
const armarx::ObjectSerializerBasePtr& serializer, const ::Ice::Current& = Ice::emptyCurrent)
override;
std::string output(const Ice::Current &c=Ice::emptyCurrent) const override
static TimestampVariantPtr nowPtr()
Ice::ObjectPtr ice_clone() const override
VariantTypeId getType(const Ice::Current &c=Ice::emptyCurrent) const override
friend std::ostream & operator<<(std::ostream &stream, const TimestampVariant &rhs)
const VariantTypeId Timestamp
armarx::core::time::DateTime Time
static IceUtil::Time GetTime(TimeMode timeMode=TimeMode::VirtualTime)
Get the current time.
bool validate(const Ice::Current &c=Ice::emptyCurrent) override
TimestampVariant(std::chrono::time_point< Ts... > timepoint)
std::shared_ptr< Object > ObjectPtr
#define ARMARXCORE_IMPORT_EXPORT
TimestampVariant(std::chrono::duration< Ts... > duration)
VariantDataClassPtr clone(const Ice::Current &c=Ice::emptyCurrent) const override
double s(double t, double s0, double v0, double a0, double j)
This file offers overloads of toIce() and fromIce() functions for STL container types.
static VariantTypeId addTypeName(const std::string &typeName)
Register a new type for the use in a Variant.