Message type to automatically notify the server side via Notification ID. More...
#include <MessageTypes.h>
Public Member Functions | |
void | serialize (std::ostream &stream) |
Serializes content of multiplexing context and notification ID into data_ member variable. | |
AutomaticNotificationMessage (const uint32_t ¬ificationID, MultiplexingContext *muxContext, uint32_t &prio) | |
Constructor that creates automatic notification message from notification ID, multiplexing context and priority. | |
AutomaticNotificationMessage (std::istream &stream) | |
Constructor that creates the message from a serialize data. | |
Public Attributes | |
uint32_t | notificationID_ |
member variable that stores the notification ID | |
MultiplexingContext * | muxContext_ |
member variable that stores the multiplexing context |
Message type to automatically notify the server side via Notification ID.
Definition at line 87 of file MessageTypes.h.
fesa::AutomaticNotificationMessage::AutomaticNotificationMessage | ( | const uint32_t & | notificationID, | |
MultiplexingContext * | muxContext, | |||
uint32_t & | prio | |||
) |
Constructor that creates automatic notification message from notification ID, multiplexing context and priority.
notificationID | identifier of the notification | |
muxContext | Multiplexing context | |
prio | Priority of message |
Definition at line 41 of file MessageTypes.cpp.
fesa::AutomaticNotificationMessage::AutomaticNotificationMessage | ( | std::istream & | stream | ) |
Constructor that creates the message from a serialize data.
stream | that contains the data |
Definition at line 47 of file MessageTypes.cpp.
References notificationID_.
void fesa::AutomaticNotificationMessage::serialize | ( | std::ostream & | stream | ) | [virtual] |
Serializes content of multiplexing context and notification ID into data_ member variable.
the | serialized message |
Reimplemented from fesa::AbstractMessage.
Definition at line 54 of file MessageTypes.cpp.
References muxContext_, notificationID_, fesa::NUMBER_SEPARATOR, and fesa::MultiplexingContext::serialize().
member variable that stores the multiplexing context
Definition at line 99 of file MessageTypes.h.
Referenced by fesa::NotificationConsumer::run(), and serialize().
member variable that stores the notification ID
Definition at line 94 of file MessageTypes.h.
Referenced by AutomaticNotificationMessage(), fesa::NotificationConsumer::run(), and serialize().