fesa::CommandMessage Class Reference

This messageType can be used to send any type of command and up to 2 arguments as string. More...

#include <MessageTypes.h>

Inheritance diagram for fesa::CommandMessage:
fesa::AbstractMessage

List of all members.

Public Member Functions

void serialize (std::ostream &stream)
 Serializes command and two parameters into data_ member variable.
 CommandMessage (const std::string &command, const std::string &parameter1, const std::string &parameter2, uint32_t &prio)
 Constructor that creates command message containing one command and two parameters.
 CommandMessage (std::istream &stream)
 Constructor that creates command message from abstract message.

Public Attributes

std::string command_
 command that is send within the command message
std::string parameter1_
 First parameter that is send within the command message.
std::string parameter2_
 second parameter that is send within the command message

Detailed Description

This messageType can be used to send any type of command and up to 2 arguments as string.

Definition at line 188 of file MessageTypes.h.


Constructor & Destructor Documentation

fesa::CommandMessage::CommandMessage ( const std::string &  command,
const std::string &  parameter1,
const std::string &  parameter2,
uint32_t &  prio 
)

Constructor that creates command message containing one command and two parameters.

Parameters:
command Command
parameter1 First parameter
parameter2 Second parameter
prio The priority of this message

Definition at line 142 of file MessageTypes.cpp.

References command_, parameter1_, and parameter2_.

fesa::CommandMessage::CommandMessage ( std::istream &  stream  ) 

Constructor that creates command message from abstract message.

Parameters:
abstractMsg 

Definition at line 152 of file MessageTypes.cpp.

References command_, parameter1_, and parameter2_.


Member Function Documentation

void fesa::CommandMessage::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 163 of file MessageTypes.cpp.

References command_, parameter1_, parameter2_, and fesa::STRING_SEPARATOR.


Member Data Documentation

command that is send within the command message

Definition at line 195 of file MessageTypes.h.

Referenced by CommandMessage(), fesa::NotificationConsumer::run(), and serialize().

First parameter that is send within the command message.

Definition at line 200 of file MessageTypes.h.

Referenced by CommandMessage(), fesa::NotificationConsumer::run(), and serialize().

second parameter that is send within the command message

Definition at line 205 of file MessageTypes.h.

Referenced by CommandMessage(), 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