Message class that will be transmitted on the message queue. More...
#include <MessageTypes.h>
Public Member Functions | |
bool | operator< (const AbstractMessage &msg) const |
This operator is used to compare priorities (needed because this class is a element of a priority queue). | |
virtual void | serialize (std::ostream &stream) |
this method serializes the information in the message into a stream | |
AbstractMessage (uint32_t prio, MessageType msgType) | |
Constructor. | |
AbstractMessage (std::istream &stream, MessageType msgType) | |
Constructor that creates the message from a serialize data. | |
virtual | ~AbstractMessage () |
Destructor. | |
Public Attributes | |
uint32_t | prio_ |
priority of the message | |
MessageType | msgType_ |
type of the message |
Message class that will be transmitted on the message queue.
Definition at line 34 of file MessageTypes.h.
fesa::AbstractMessage::AbstractMessage | ( | uint32_t | prio, | |
MessageType | msgType | |||
) |
Constructor.
Definition at line 17 of file MessageTypes.cpp.
fesa::AbstractMessage::AbstractMessage | ( | std::istream & | stream, | |
MessageType | msgType | |||
) |
Constructor that creates the message from a serialize data.
stream | that contains the data |
Definition at line 23 of file MessageTypes.cpp.
References prio_.
fesa::AbstractMessage::~AbstractMessage | ( | ) | [virtual] |
Destructor.
Definition at line 29 of file MessageTypes.cpp.
bool fesa::AbstractMessage::operator< | ( | const AbstractMessage & | msg | ) | const [inline] |
This operator is used to compare priorities (needed because this class is a element of a priority queue).
the | message to be checked |
Definition at line 78 of file MessageTypes.h.
References prio_.
void fesa::AbstractMessage::serialize | ( | std::ostream & | stream | ) | [virtual] |
this method serializes the information in the message into a stream
the | serialized message |
Reimplemented in fesa::AutomaticNotificationMessage, fesa::ManualNotificationMessage, fesa::CommandMessage, and fesa::OnDemandMessage.
Definition at line 33 of file MessageTypes.cpp.
References msgType_, fesa::NUMBER_SEPARATOR, and prio_.
Referenced by fesa::IpcMsgQueue::postMsg().
type of the message
Definition at line 75 of file MessageTypes.h.
Referenced by fesa::NotificationConsumer::run(), and serialize().
uint32_t fesa::AbstractMessage::prio_ |
priority of the message
Definition at line 70 of file MessageTypes.h.
Referenced by AbstractMessage(), operator<(), fesa::IpcMsgQueue::postMsg(), fesa::NotificationProducer::sendManualNotification(), fesa::OnDemandProducerImpl::sendMessage(), and serialize().