Message type to allow the user to do an OnDemand event. More...
#include <MessageTypes.h>
Public Member Functions | |
void | serialize (std::ostream &stream) |
Serializes command and two parameters into data_ member variable. | |
OnDemandMessage (const std::string &cycleName, const char *payload, uint32_t payloadSize, uint32_t &prio) | |
Constructor that creates onDemand message. | |
OnDemandMessage (const OnDemandMessage &msg) | |
Copy constructor. That is need due to the heap allocation of the payload. | |
OnDemandMessage (std::istream &stream) | |
Constructor that creates onDemand message from abstract message. | |
~OnDemandMessage () | |
Destructor. | |
Public Attributes | |
std::string | cycleName_ |
uint32_t | payloadSize_ |
char * | payload_ |
Message type to allow the user to do an OnDemand event.
Definition at line 234 of file MessageTypes.h.
fesa::OnDemandMessage::OnDemandMessage | ( | const std::string & | cycleName, | |
const char * | payload, | |||
uint32_t | payloadSize, | |||
uint32_t & | prio | |||
) |
Constructor that creates onDemand message.
cycleName | ||
payload | ||
payloadSize | ||
prio | The priority of this message |
Definition at line 174 of file MessageTypes.cpp.
References payload_.
fesa::OnDemandMessage::OnDemandMessage | ( | const OnDemandMessage & | msg | ) |
Copy constructor. That is need due to the heap allocation of the payload.
msg | The OnDemandMessage to be copied |
Definition at line 181 of file MessageTypes.cpp.
References cycleName_, payload_, and payloadSize_.
fesa::OnDemandMessage::OnDemandMessage | ( | std::istream & | stream | ) |
Constructor that creates onDemand message from abstract message.
abstractMsg |
Definition at line 200 of file MessageTypes.cpp.
References cycleName_, payload_, and payloadSize_.
fesa::OnDemandMessage::~OnDemandMessage | ( | ) |
void fesa::OnDemandMessage::serialize | ( | std::ostream & | stream | ) | [virtual] |
Serializes command and two parameters into data_ member variable.
the | serialized stream |
Reimplemented from fesa::AbstractMessage.
Definition at line 189 of file MessageTypes.cpp.
References cycleName_, fesa::NUMBER_SEPARATOR, payload_, payloadSize_, and fesa::STRING_SEPARATOR.
std::string fesa::OnDemandMessage::cycleName_ |
Definition at line 238 of file MessageTypes.h.
Referenced by OnDemandMessage(), serialize(), and fesa::OnDemandEventSource::wait().
Definition at line 242 of file MessageTypes.h.
Referenced by OnDemandMessage(), serialize(), fesa::OnDemandEventSource::wait(), and ~OnDemandMessage().
uint32_t fesa::OnDemandMessage::payloadSize_ |
Definition at line 240 of file MessageTypes.h.
Referenced by OnDemandMessage(), serialize(), and fesa::OnDemandEventSource::wait().