Implements a Variant type for timestamps.
More...
#include <ArmarXCore/observers/variant/TimestampVariant.h>
|
| 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.
|
| |
| 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.
|
| |
| 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 |
| |
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() [1/5]
◆ TimestampVariant() [2/5]
Construct a timestamp Variant from an initialization value.
- Parameters
-
| timestamp | Initialization timestamp in microseconds since the Unix Epoch |
Definition at line 35 of file TimestampVariant.cpp.
◆ TimestampVariant() [3/5]
◆ TimestampVariant() [4/5]
◆ TimestampVariant() [5/5]
◆ clone()
| VariantDataClassPtr clone |
( |
const Ice::Current & | c = Ice::emptyCurrent | ) |
const |
|
inlineoverride |
◆ deserialize()
| void deserialize |
( |
const armarx::ObjectSerializerBasePtr & | serializer, |
|
|
const ::Ice::Current & | = Ice::emptyCurrent ) |
|
override |
◆ getTimestamp()
◆ getType()
| VariantTypeId getType |
( |
const Ice::Current & | c = Ice::emptyCurrent | ) |
const |
|
inlineoverride |
◆ ice_clone()
| Ice::ObjectPtr ice_clone |
( |
| ) |
const |
|
inlineoverride |
◆ nowPtr()
◆ output()
| std::string output |
( |
const Ice::Current & | c = Ice::emptyCurrent | ) |
const |
|
inlineoverride |
◆ serialize()
| void serialize |
( |
const armarx::ObjectSerializerBasePtr & | serializer, |
|
|
const ::Ice::Current & | = Ice::emptyCurrent ) const |
|
override |
◆ toTime()
◆ validate()
| bool validate |
( |
const Ice::Current & | c = Ice::emptyCurrent | ) |
|
|
inlineoverride |
◆ operator<<
| std::ostream & operator<< |
( |
std::ostream & | stream, |
|
|
const TimestampVariant & | rhs ) |
|
friend |
The documentation for this class was generated from the following files: