Variant value (abstract base) More...
#include <Variant.h>
Public Member Functions | |
virtual ValuePtr | clone () const =0 |
Clone this variant value (abstract declaration) More... | |
virtual Serializer | createSerializer (const DataType &type) const =0 |
Create a serializer for this variant (abstract declaration) More... | |
virtual const std::type_info & | getTypeInfo () const |
Retrieve the variant's value type information. More... | |
virtual bool | isEqual (const Value &value) const =0 |
True, if this variant value equals another variant value (abstract declaration) More... | |
virtual void | read (std::istream &stream)=0 |
Read the variant from a stream (abstract declaration) More... | |
virtual void | setValue (const Value &value)=0 |
Set the variant's value (abstract declaration) More... | |
Value () | |
Default constructor. More... | |
virtual void | write (std::ostream &stream) const =0 |
Write this variant value to a stream (abstract declaration) More... | |
virtual | ~Value () |
Destructor. More... | |
variant_topic_tools::Variant::Value::Value | ( | ) |
Default constructor.
Definition at line 42 of file Variant.cpp.
|
virtual |
Destructor.
Reimplemented in variant_topic_tools::CollectionVariant::Value, variant_topic_tools::ArrayVariant::Value, variant_topic_tools::BuiltinVariant::Value, and variant_topic_tools::MessageVariant::Value.
Definition at line 45 of file Variant.cpp.
|
pure virtual |
Clone this variant value (abstract declaration)
Implemented in variant_topic_tools::ArrayVariant::ValueImplT< T >, variant_topic_tools::MessageVariant::ValueImplT< T >, variant_topic_tools::ArrayVariant::ValueImplV, variant_topic_tools::MessageVariant::ValueImplV, and variant_topic_tools::BuiltinVariant::ValueImplT< T >.
|
pure virtual |
Create a serializer for this variant (abstract declaration)
Implemented in variant_topic_tools::ArrayVariant::ValueImplT< T >, variant_topic_tools::MessageVariant::ValueImplT< T >, variant_topic_tools::ArrayVariant::ValueImplV, variant_topic_tools::BuiltinVariant::ValueImplT< T >, and variant_topic_tools::MessageVariant::ValueImplV.
|
virtual |
Retrieve the variant's value type information.
Reimplemented in variant_topic_tools::Variant::ValueT< T >, variant_topic_tools::Variant::ValueT< type_traits::MessageType< T >::ValueType >, variant_topic_tools::Variant::ValueT< type_traits::BuiltinType< T >::ValueType >, and variant_topic_tools::Variant::ValueT< type_traits::ArrayType< T >::ValueType >.
Definition at line 99 of file Variant.cpp.
|
pure virtual |
True, if this variant value equals another variant value (abstract declaration)
Implemented in variant_topic_tools::CollectionVariant::Value, and variant_topic_tools::BuiltinVariant::ValueImplT< T >.
|
pure virtual |
Read the variant from a stream (abstract declaration)
Implemented in variant_topic_tools::CollectionVariant::Value, and variant_topic_tools::BuiltinVariant::ValueImplT< T >.
|
pure virtual |
Set the variant's value (abstract declaration)
Implemented in variant_topic_tools::BuiltinVariant::ValueImplT< T >, variant_topic_tools::ArrayVariant::Value, and variant_topic_tools::MessageVariant::Value.
|
pure virtual |
Write this variant value to a stream (abstract declaration)
Implemented in variant_topic_tools::CollectionVariant::Value, and variant_topic_tools::BuiltinVariant::ValueImplT< T >.