This messageType can be used to send any type of command and up to 2 arguments as string. More...
#include <MessageTypes.h>
Public Member Functions | |
void | serialize (std::ostream &stream) |
Serializes command and two parameters into data_ member variable. | |
CommandMessage (const std::string &command, const std::string ¶meter1, const std::string ¶meter2, uint32_t &prio) | |
Constructor that creates command message containing one command and two parameters. | |
CommandMessage (std::istream &stream) | |
Constructor that creates command message from abstract message. | |
Public Attributes | |
std::string | command_ |
command that is send within the command message | |
std::string | parameter1_ |
First parameter that is send within the command message. | |
std::string | parameter2_ |
second parameter that is send within the command message |
This messageType can be used to send any type of command and up to 2 arguments as string.
Definition at line 188 of file MessageTypes.h.
fesa::CommandMessage::CommandMessage | ( | const std::string & | command, | |
const std::string & | parameter1, | |||
const std::string & | parameter2, | |||
uint32_t & | prio | |||
) |
Constructor that creates command message containing one command and two parameters.
command | Command | |
parameter1 | First parameter | |
parameter2 | Second parameter | |
prio | The priority of this message |
Definition at line 142 of file MessageTypes.cpp.
References command_, parameter1_, and parameter2_.
fesa::CommandMessage::CommandMessage | ( | std::istream & | stream | ) |
Constructor that creates command message from abstract message.
abstractMsg |
Definition at line 152 of file MessageTypes.cpp.
References command_, parameter1_, and parameter2_.
void fesa::CommandMessage::serialize | ( | std::ostream & | stream | ) | [virtual] |
Serializes command and two parameters into data_ member variable.
the | serialized stream |
Reimplemented from fesa::AbstractMessage.
Definition at line 163 of file MessageTypes.cpp.
References command_, parameter1_, parameter2_, and fesa::STRING_SEPARATOR.
std::string fesa::CommandMessage::command_ |
command that is send within the command message
Definition at line 195 of file MessageTypes.h.
Referenced by CommandMessage(), fesa::NotificationConsumer::run(), and serialize().
std::string fesa::CommandMessage::parameter1_ |
First parameter that is send within the command message.
Definition at line 200 of file MessageTypes.h.
Referenced by CommandMessage(), fesa::NotificationConsumer::run(), and serialize().
std::string fesa::CommandMessage::parameter2_ |
second parameter that is send within the command message
Definition at line 205 of file MessageTypes.h.
Referenced by CommandMessage(), and serialize().