Go to the documentation of this file.
28 #include <IceUtil/Time.h>
32 #include <ArmarXCore/interface/observers/Timestamp.h>
67 template <
class... Ts>
70 std::chrono::duration_cast<
std::chrono::microseconds>(duration).count())
74 template <
class... Ts>
93 clone(
const Ice::Current&
c = Ice::emptyCurrent)
const override
99 output(
const Ice::Current&
c = Ice::emptyCurrent)
const override
102 s << IceUtil::Time::microSeconds(
timestamp).toDateTime();
107 getType(
const Ice::Current&
c = Ice::emptyCurrent)
const override
113 validate(
const Ice::Current&
c = Ice::emptyCurrent)
override
121 stream <<
"TimestampVariant: " << std::endl << rhs.
output() << std::endl;
134 return IceUtil::Time::microSeconds(
timestamp);
139 void serialize(
const armarx::ObjectSerializerBasePtr& serializer,
140 const ::Ice::Current& = Ice::emptyCurrent)
const override;
141 void deserialize(
const armarx::ObjectSerializerBasePtr& serializer,
142 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
const VariantTypeId Timestamp
armarx::core::time::DateTime Time
static IceUtil::Time GetTime(TimeMode timeMode=TimeMode::VirtualTime)
Get the current time.
std::ostream & operator<<(std::ostream &os, const PythonApplicationManager::Paths &paths)
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.