Go to the documentation of this file.
30 #include <IceUtil/Time.h>
47 template <
class Var,
class... Ts>
48 TimedVariant(
const Var& variant, std::chrono::duration<Ts...> duration) :
52 std::chrono::duration_cast<
std::chrono::microseconds>(duration).count()))
56 template <
class Var,
class... Ts>
57 TimedVariant(
const Var& variant, std::chrono::time_point<Ts...> timepoint) :
72 typename std::enable_if_t<!(std::is_base_of_v<VariantDataClass, T> ||
73 std::is_pointer_v<T>)>::type* t = 0) :
76 timestamp = time.toMicroSeconds();
86 timestamp = time.toMicroSeconds();
96 timestamp = time.toMicroSeconds();
102 timestamp = microseconds;
123 stream <<
"Null VariantPtr";
130 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 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.
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.
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.