fesa::OnDemandMessage Class Reference

Message type to allow the user to do an OnDemand event. More...

#include <MessageTypes.h>

Inheritance diagram for fesa::OnDemandMessage:
fesa::AbstractMessage

List of all members.

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_

Detailed Description

Message type to allow the user to do an OnDemand event.

Definition at line 234 of file MessageTypes.h.


Constructor & Destructor Documentation

fesa::OnDemandMessage::OnDemandMessage ( const std::string &  cycleName,
const char *  payload,
uint32_t  payloadSize,
uint32_t &  prio 
)

Constructor that creates onDemand message.

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

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

Parameters:
abstractMsg 

Definition at line 200 of file MessageTypes.cpp.

References cycleName_, payload_, and payloadSize_.

fesa::OnDemandMessage::~OnDemandMessage (  ) 

Destructor.

Definition at line 209 of file MessageTypes.cpp.

References payload_.


Member Function Documentation

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

Serializes command and two parameters into data_ member variable.

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


Member Data Documentation

Definition at line 238 of file MessageTypes.h.

Referenced by OnDemandMessage(), serialize(), and fesa::OnDemandEventSource::wait().

Definition at line 240 of file MessageTypes.h.

Referenced by OnDemandMessage(), serialize(), and fesa::OnDemandEventSource::wait().


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

Generated on 18 Jan 2013 for Fesa by  doxygen 1.6.1