Public Member Functions | Public Attributes | List of all members
variant_topic_tools::MessageVariant::ValueImplV Class Reference

Message variant value (variant-typed implementation) More...

#include <MessageVariant.h>

Inheritance diagram for variant_topic_tools::MessageVariant::ValueImplV:
Inheritance graph
[legend]

Public Member Functions

ValuePtr clone () const
 Clone this variant value (implementation) More...
 
Serializer createSerializer (const DataType &type) const
 Create a serializer for this variant (implementation) More...
 
Variant getMember (int index) const
 Retrieve a member of the variant collection by index (implementation) More...
 
Variant getMember (const std::string &name) const
 Retrieve a member of the variant collection by name (implementation) More...
 
const std::string & getMemberName (int index) const
 Retrieve the name of the message member with the specified index (implementation) More...
 
size_t getNumMembers () const
 Retrieve the number of members of the variant collection (implementation) More...
 
bool hasMember (const std::string &name) const
 True, if the variant collection contains the member with the specified name (implementation) More...
 
void setMember (int index, const Variant &member)
 Set a member of the variant collection by index (implementation) More...
 
void setMember (const std::string &name, const Variant &member)
 Set a member of the variant collection by name (implementation) More...
 
 ValueImplV (const MessageFieldCollection< Variant > &members=MessageFieldCollection< Variant >())
 Default constructor. More...
 
 ValueImplV (const ValueImplV &src)
 Copy constructor. More...
 
virtual ~ValueImplV ()
 Destructor. More...
 
- Public Member Functions inherited from variant_topic_tools::MessageVariant::Value
void setValue (const Variant::Value &value)
 Set the variant's value (implementation) More...
 
 Value ()
 Default constructor. More...
 
void writeMember (std::ostream &stream, int index) const
 Write the variant collection member with the specified index to a stream (implementation) More...
 
virtual ~Value ()
 Destructor. More...
 
- Public Member Functions inherited from variant_topic_tools::CollectionVariant::Value
Variant getMember (const std::string &name, size_t pos) const
 Recursively retrieve a member of the collection by name. More...
 
bool hasMember (const std::string &name, size_t pos) const
 True, if the collection or any of its members contains the member with the specified name. More...
 
bool isEqual (const Variant::Value &value) const
 True, if this variant value equals another variant value (implementation) More...
 
void read (std::istream &stream)
 Read the variant from a stream (implementation) More...
 
void setMember (const std::string &name, const Variant &member, size_t pos)
 Recursively set a member of the collection by name. More...
 
 Value ()
 Default constructor. More...
 
void write (std::ostream &stream) const
 Write this variant value to a stream (implementation) More...
 
- Public Member Functions inherited from variant_topic_tools::Variant::Value
virtual const std::type_info & getTypeInfo () const
 Retrieve the variant's value type information. More...
 
 Value ()
 Default constructor. More...
 

Public Attributes

MessageFieldCollection< Variantmembers
 The message members. More...
 

Detailed Description

Message variant value (variant-typed implementation)

Definition at line 89 of file MessageVariant.h.

Constructor & Destructor Documentation

variant_topic_tools::MessageVariant::ValueImplV::ValueImplV ( const MessageFieldCollection< Variant > &  members = MessageFieldCollection<Variant>())

Default constructor.

Definition at line 59 of file MessageVariant.cpp.

variant_topic_tools::MessageVariant::ValueImplV::ValueImplV ( const ValueImplV src)

Copy constructor.

Definition at line 64 of file MessageVariant.cpp.

variant_topic_tools::MessageVariant::ValueImplV::~ValueImplV ( )
virtual

Destructor.

Definition at line 68 of file MessageVariant.cpp.

Member Function Documentation

Variant::ValuePtr variant_topic_tools::MessageVariant::ValueImplV::clone ( ) const
virtual

Clone this variant value (implementation)

Implements variant_topic_tools::Variant::Value.

Definition at line 136 of file MessageVariant.cpp.

Serializer variant_topic_tools::MessageVariant::ValueImplV::createSerializer ( const DataType type) const
virtual

Create a serializer for this variant (implementation)

Implements variant_topic_tools::Variant::Value.

Definition at line 140 of file MessageVariant.cpp.

Variant variant_topic_tools::MessageVariant::ValueImplV::getMember ( int  index) const
virtual

Retrieve a member of the variant collection by index (implementation)

Implements variant_topic_tools::CollectionVariant::Value.

Definition at line 96 of file MessageVariant.cpp.

Variant variant_topic_tools::MessageVariant::ValueImplV::getMember ( const std::string &  name) const
virtual

Retrieve a member of the variant collection by name (implementation)

Implements variant_topic_tools::CollectionVariant::Value.

Definition at line 100 of file MessageVariant.cpp.

const std::string & variant_topic_tools::MessageVariant::ValueImplV::getMemberName ( int  index) const
virtual

Retrieve the name of the message member with the specified index (implementation)

Implements variant_topic_tools::MessageVariant::Value.

Definition at line 104 of file MessageVariant.cpp.

size_t variant_topic_tools::MessageVariant::ValueImplV::getNumMembers ( ) const
virtual

Retrieve the number of members of the variant collection (implementation)

Implements variant_topic_tools::CollectionVariant::Value.

Definition at line 82 of file MessageVariant.cpp.

bool variant_topic_tools::MessageVariant::ValueImplV::hasMember ( const std::string &  name) const
virtual

True, if the variant collection contains the member with the specified name (implementation)

Implements variant_topic_tools::CollectionVariant::Value.

Definition at line 109 of file MessageVariant.cpp.

void variant_topic_tools::MessageVariant::ValueImplV::setMember ( int  index,
const Variant member 
)
virtual

Set a member of the variant collection by index (implementation)

Implements variant_topic_tools::CollectionVariant::Value.

Definition at line 86 of file MessageVariant.cpp.

void variant_topic_tools::MessageVariant::ValueImplV::setMember ( const std::string &  name,
const Variant member 
)
virtual

Set a member of the variant collection by name (implementation)

Implements variant_topic_tools::CollectionVariant::Value.

Definition at line 91 of file MessageVariant.cpp.

Member Data Documentation

MessageFieldCollection<Variant> variant_topic_tools::MessageVariant::ValueImplV::members

The message members.

Definition at line 150 of file MessageVariant.h.


The documentation for this class was generated from the following files:


variant_topic_tools
Author(s): Ralf Kaestner
autogenerated on Sat Jan 9 2021 03:56:50