Public Member Functions | Public Attributes
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]

List of all members.

Public Member Functions

ValuePtr clone () const
 Clone this variant value (implementation)
Serializer createSerializer (const DataType &type) const
 Create a serializer for this variant (implementation)
Variant getMember (int index) const
 Retrieve a member of the variant collection by index (implementation)
Variant getMember (const std::string &name) const
 Retrieve a member of the variant collection by name (implementation)
const std::string & getMemberName (int index) const
 Retrieve the name of the message member with the specified index (implementation)
size_t getNumMembers () const
 Retrieve the number of members of the variant collection (implementation)
bool hasMember (const std::string &name) const
 True, if the variant collection contains the member with the specified name (implementation)
void setMember (int index, const Variant &member)
 Set a member of the variant collection by index (implementation)
void setMember (const std::string &name, const Variant &member)
 Set a member of the variant collection by name (implementation)
 ValueImplV (const MessageFieldCollection< Variant > &members=MessageFieldCollection< Variant >())
 Default constructor.
 ValueImplV (const ValueImplV &src)
 Copy constructor.
virtual ~ValueImplV ()
 Destructor.

Public Attributes

MessageFieldCollection< Variantmembers
 The message members.

Detailed Description

Message variant value (variant-typed implementation)

Definition at line 89 of file MessageVariant.h.


Constructor & Destructor Documentation

Default constructor.

Definition at line 59 of file MessageVariant.cpp.

Copy constructor.

Definition at line 64 of file MessageVariant.cpp.

Destructor.

Definition at line 68 of file MessageVariant.cpp.


Member Function Documentation

Clone this variant value (implementation)

Implements variant_topic_tools::Variant::Value.

Definition at line 136 of file MessageVariant.cpp.

Create a serializer for this variant (implementation)

Implements variant_topic_tools::Variant::Value.

Definition at line 140 of file MessageVariant.cpp.

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.

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

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 Tue Jul 9 2019 03:18:42