A message type that can be used to send any type of command of up to two arguments as a string.
More...
#include <MessageTypes.h>
|
| CommandMessage (const std::string &command, const std::string ¶meter1, const std::string ¶meter2, uint32_t &prio) |
| Constructor. Create a command message containing one command and two parameters. More...
|
|
| CommandMessage (std::istream &stream) |
| Constructor. Create a message from serialized data. More...
|
|
void | serialize (std::ostream &stream) const |
| Serialize a command and its two parameters into a stream. More...
|
|
| AbstractMessage (uint32_t prio, MessageType msgType) |
| Constructor.
|
|
| AbstractMessage (std::istream &stream, MessageType msgType) |
| Constructor. Create a message from serialized data. More...
|
|
virtual | ~AbstractMessage () |
| Destructor.
|
|
bool | operator< (const AbstractMessage &msg) const |
| Compare priorities (needed because this class is an element of a priority queue) More...
|
|
|
uint32_t | prio_ |
| The priority of the message.
|
|
MessageType | msgType_ |
| The type of the message.
|
|
A message type that can be used to send any type of command of up to two arguments as a string.
fesa::CommandMessage::CommandMessage |
( |
const std::string & |
command, |
|
|
const std::string & |
parameter1, |
|
|
const std::string & |
parameter2, |
|
|
uint32_t & |
prio |
|
) |
| |
Constructor. Create a command message containing one command and two parameters.
- Parameters
-
command | The command |
parameter1 | The first parameter |
parameter2 | The second parameter |
prio | The priority of the message |
fesa::CommandMessage::CommandMessage |
( |
std::istream & |
stream | ) |
|
Constructor. Create a message from serialized data.
- Parameters
-
stream | The stream that contains the serialized data |
void fesa::CommandMessage::serialize |
( |
std::ostream & |
stream | ) |
const |
|
virtual |
Serialize a command and its two parameters into a stream.
- Parameters
-
Reimplemented from fesa::AbstractMessage.
The documentation for this class was generated from the following files:
- MessageTypes.h
- MessageTypes.cpp