Variant value (abstract base) More...
#include <Variant.h>
Public Member Functions | |
virtual ValuePtr | clone () const =0 |
Clone this variant value (abstract declaration) | |
virtual Serializer | createSerializer (const DataType &type) const =0 |
Create a serializer for this variant (abstract declaration) | |
virtual const std::type_info & | getTypeInfo () const |
Retrieve the variant's value type information. | |
virtual bool | isEqual (const Value &value) const =0 |
True, if this variant value equals another variant value (abstract declaration) | |
virtual void | read (std::istream &stream)=0 |
Read the variant from a stream (abstract declaration) | |
virtual void | setValue (const Value &value)=0 |
Set the variant's value (abstract declaration) | |
Value () | |
Default constructor. | |
virtual void | write (std::ostream &stream) const =0 |
Write this variant value to a stream (abstract declaration) | |
virtual | ~Value () |
Destructor. |
Default constructor.
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 42 of file Variant.cpp.
variant_topic_tools::Variant::Value::~Value | ( | ) | [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.
virtual ValuePtr variant_topic_tools::Variant::Value::clone | ( | ) | const [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 >.
virtual Serializer variant_topic_tools::Variant::Value::createSerializer | ( | const DataType & | type | ) | const [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.
const std::type_info & variant_topic_tools::Variant::Value::getTypeInfo | ( | ) | const [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.
virtual bool variant_topic_tools::Variant::Value::isEqual | ( | const Value & | value | ) | const [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 >.
virtual void variant_topic_tools::Variant::Value::read | ( | std::istream & | stream | ) | [pure virtual] |
Read the variant from a stream (abstract declaration)
Implemented in variant_topic_tools::CollectionVariant::Value, and variant_topic_tools::BuiltinVariant::ValueImplT< T >.
virtual void variant_topic_tools::Variant::Value::setValue | ( | const Value & | value | ) | [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.
virtual void variant_topic_tools::Variant::Value::write | ( | std::ostream & | stream | ) | const [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 >.