Go to the documentation of this file.
32 #include <IceUtil/Time.h>
42 public TimedVariantBase
50 template<
class Var,
class...Ts>
51 TimedVariant(
const Var& variant, std::chrono::duration<Ts...> duration) :
54 template<
class Var,
class...Ts>
55 TimedVariant(
const Var& variant, std::chrono::time_point<Ts...> timepoint) :
68 typename std::enable_if_t < !(std::is_base_of_v< VariantDataClass, T >
69 || std::is_pointer_v<T>) >::type* t = 0)
72 timestamp = time.toMicroSeconds();
83 timestamp = time.toMicroSeconds();
91 timestamp = time.toMicroSeconds();
95 timestamp = microseconds;
113 stream <<
"Null VariantPtr";
121 extern template class ::IceInternal::Handle<::armarx::TimedVariant>;
The Variant class is described here: Variants.
friend std::ostream & operator<<(std::ostream &stream, const TimedVariantPtr &rhs)
Ice::Long getTimestamp(const Ice::Current &c=Ice::emptyCurrent) const override
Timestamp in micro seconds.
void setMicroseconds(Ice::Long microseconds)
std::string getOutputValueOnly() const override
Returns the formatted content of the Variant as a string.
TimedVariant(const Var &variant, std::chrono::duration< Ts... > duration)
Vertex source(const detail::edge_base< Directed, Vertex > &e, const PCG &)
armarx::core::time::DateTime Time
TimedVariant(const Var &variant, std::chrono::time_point< Ts... > timepoint)
IceUtil::Time getTime() const
TimedVariant(char const var[], const IceUtil::Time &time)
Construct a TimedVariant from a string.
TimedVariant(const T &var, const IceUtil::Time &time, typename std::enable_if_t< !(std::is_base_of_v< VariantDataClass, T >||std::is_pointer_v< T >) >::type *t=0)
Construct a TimedVariant from a non-VariantDataClass instance, e.g.
Ice::ObjectPtr ice_clone() const override
void setTime(const IceUtil::Time time)
std::shared_ptr< Object > ObjectPtr
This file offers overloads of toIce() and fromIce() functions for STL container types.