Classes | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Friends
variant_topic_tools::MessageConstant Class Reference

Constant message member. More...

#include <MessageConstant.h>

Inheritance diagram for variant_topic_tools::MessageConstant:
Inheritance graph
[legend]

List of all members.

Classes

class  Impl
 Message constant implementation. More...

Public Member Functions

const VariantgetValue () const
 Retrieve the value of this message constant.
 MessageConstant ()
 Default constructor.
 MessageConstant (const MessageConstant &src)
 Copy constructor.
 MessageConstant (const MessageMember &src)
 Copy constructor (overloaded version taking a message member)
 ~MessageConstant ()
 Destructor.

Protected Member Functions

 MessageConstant (const std::string &name, const Variant &value)
 Constructor (overloaded version taking a name and a variant value)
 MessageConstant (const std::string &name, const DataType &type, const std::string &value)
 Constructor (overloaded version taking a name, a data type, and a string value)

Static Protected Member Functions

template<typename T >
static MessageConstant create (const std::string &name, const T &value)
 Create a message constant.

Friends

class MessageDataType
class MessageMember

Detailed Description

Constant message member.

Definition at line 32 of file MessageConstant.h.


Constructor & Destructor Documentation

Default constructor.

Definition at line 30 of file MessageConstant.cpp.

Copy constructor.

Definition at line 54 of file MessageConstant.cpp.

Copy constructor (overloaded version taking a message member)

Definition at line 58 of file MessageConstant.cpp.

Destructor.

Definition at line 64 of file MessageConstant.cpp.

variant_topic_tools::MessageConstant::MessageConstant ( const std::string &  name,
const Variant value 
) [protected]

Constructor (overloaded version taking a name and a variant value)

Definition at line 33 of file MessageConstant.cpp.

variant_topic_tools::MessageConstant::MessageConstant ( const std::string &  name,
const DataType type,
const std::string &  value 
) [protected]

Constructor (overloaded version taking a name, a data type, and a string value)

Definition at line 38 of file MessageConstant.cpp.


Member Function Documentation

template<typename T >
static MessageConstant variant_topic_tools::MessageConstant::create ( const std::string &  name,
const T &  value 
) [static, protected]

Create a message constant.

Retrieve the value of this message constant.

Definition at line 81 of file MessageConstant.cpp.


Friends And Related Function Documentation

friend class MessageDataType [friend]

Reimplemented from variant_topic_tools::MessageMember.

Definition at line 34 of file MessageConstant.h.

friend class MessageMember [friend]

Definition at line 35 of file MessageConstant.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