|
#include <ArmarXCore/observers/variant/TimestampVariant.h>
Public Member Functions | |
VariantDataClassPtr | clone (const Ice::Current &c=Ice::emptyCurrent) const override |
void | deserialize (const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) override |
long | getTimestamp () |
return timestamp in microseconds since the Unix Epoch. More... | |
VariantTypeId | getType (const Ice::Current &c=Ice::emptyCurrent) const override |
Ice::ObjectPtr | ice_clone () const override |
std::string | output (const Ice::Current &c=Ice::emptyCurrent) const override |
void | serialize (const armarx::ObjectSerializerBasePtr &serializer, const ::Ice::Current &=Ice::emptyCurrent) const override |
TimestampVariant () | |
TimestampVariant (IceUtil::Time time) | |
TimestampVariant (long timestamp) | |
Construct a timestamp Variant from an initialization value. More... | |
template<class... Ts> | |
TimestampVariant (std::chrono::duration< Ts... > duration) | |
template<class... Ts> | |
TimestampVariant (std::chrono::time_point< Ts... > timepoint) | |
IceUtil::Time | toTime () |
bool | validate (const Ice::Current &c=Ice::emptyCurrent) override |
Static Public Member Functions | |
static TimestampVariantPtr | nowPtr () |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const TimestampVariant &rhs) |
Implements a Variant type for timestamps. The timestamp value is interpreted as microseconds since the Unix Epoch. Internally the class bases on the IceUtil::Time functionality of Ice.
For information on how to use this type, refer to Variant.
Definition at line 54 of file TimestampVariant.h.
TimestampVariant | ( | ) |
Definition at line 31 of file TimestampVariant.cpp.
TimestampVariant | ( | long | timestamp | ) |
Construct a timestamp Variant from an initialization value.
timestamp | Initialization timestamp in microseconds since the Unix Epoch |
Definition at line 35 of file TimestampVariant.cpp.
TimestampVariant | ( | IceUtil::Time | time | ) |
Definition at line 40 of file TimestampVariant.cpp.
|
inline |
Definition at line 67 of file TimestampVariant.h.
|
inline |
Definition at line 71 of file TimestampVariant.h.
|
inlineoverride |
Definition at line 86 of file TimestampVariant.h.
|
override |
Definition at line 57 of file TimestampVariant.cpp.
long getTimestamp | ( | ) |
return timestamp in microseconds since the Unix Epoch.
Definition at line 45 of file TimestampVariant.cpp.
|
inlineoverride |
Definition at line 96 of file TimestampVariant.h.
|
inlineoverride |
Definition at line 82 of file TimestampVariant.h.
|
inlinestatic |
Definition at line 111 of file TimestampVariant.h.
|
inlineoverride |
|
override |
Definition at line 50 of file TimestampVariant.cpp.
|
inline |
|
inlineoverride |
Definition at line 100 of file TimestampVariant.h.
|
friend |
Definition at line 105 of file TimestampVariant.h.