libcluon
0.0.148
|
#include <MetaMessage.hpp>
Classes | |
class | MetaField |
Public Member Functions | |
MetaMessage () noexcept | |
MetaMessage (const MetaMessage &)=default | |
MetaMessage (MetaMessage &&)=default | |
MetaMessage & | operator= (const MetaMessage &)=default |
MetaMessage & | operator= (MetaMessage &&)=default |
MetaMessage & | add (MetaField &&mf) noexcept |
const std::vector< MetaField > & | listOfMetaFields () const noexcept |
void | accept (const std::function< void(const MetaMessage &)> &visit) |
std::string | packageName () const noexcept |
MetaMessage & | packageName (const std::string &v) noexcept |
std::string | messageName () const noexcept |
MetaMessage & | messageName (const std::string &v) noexcept |
int32_t | messageIdentifier () const noexcept |
MetaMessage & | messageIdentifier (int32_t v) noexcept |
This class provides a generic description for a message. It is internally used during the processing of message specifications to generate targets like C++ or .proto files.
|
noexcept |
|
default |
|
default |
void cluon::MetaMessage::accept | ( | const std::function< void(const MetaMessage &)> & | visit | ) |
This method can be used to visit this instance and propagate information details about the contained fields.
visit | std::function object to be called to visit this MetaMessage. |
|
noexcept |
This method adds a metafield to this meta message.
mf | Meta field to be added. |
References mf.
|
noexcept |
This method returns a vector of current meta fields.
Referenced by cluon::GenericMessage::createFrom().
|
noexcept |
Referenced by cluon::GenericMessage::ID(), and cluon::MessageParser::parse().
|
noexcept |
This method sets the message identifier.
v | Message identifier for this message. |
|
noexcept |
Referenced by cluon::GenericMessage::createFrom(), cluon::GenericMessage::LongName(), and cluon::MessageParser::parse().
|
noexcept |
This method sets the message name.
v | Message name for this message. |
|
default |
|
default |
|
noexcept |
Referenced by cluon::GenericMessage::LongName(), and cluon::MessageParser::parse().
|
noexcept |
This method sets the package name.
v | Package name for this message. |