fesa::AutomaticNotificationMessage Class Reference

Message type to automatically notify the server side via Notification ID. More...

#include <MessageTypes.h>

Inheritance diagram for fesa::AutomaticNotificationMessage:
fesa::AbstractMessage

List of all members.

Public Member Functions

void serialize (std::ostream &stream)
 Serializes content of multiplexing context and notification ID into data_ member variable.
 AutomaticNotificationMessage (const uint32_t &notificationID, 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
MultiplexingContextmuxContext_
 member variable that stores the multiplexing context

Detailed Description

Message type to automatically notify the server side via Notification ID.

Definition at line 87 of file MessageTypes.h.


Constructor & Destructor Documentation

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.

Parameters:
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.

Parameters:
stream that contains the data

Definition at line 47 of file MessageTypes.cpp.

References notificationID_.


Member Function Documentation

void fesa::AutomaticNotificationMessage::serialize ( std::ostream &  stream  )  [virtual]

Serializes content of multiplexing context and notification ID into data_ member variable.

Parameters:
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 Data Documentation

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().


The documentation for this class was generated from the following files:

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1