Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

rwil::EncapsulatingMessage Class Reference

Creates a message containing all the data of the old message and a new parameter "message". More...

#include <Message.h>

Inheritance diagram for rwil::EncapsulatingMessage::

rwil::Message rwil::FailedAfterRetryingMessage List of all members.

Public Methods

 EncapsulatingMessage (std::string encapsulateCommand, const Message &oldMessage)
 Creates a message with a new parameter "message" and the data from an old message the timestamp is set to now. More...

 EncapsulatingMessage (std::string encapsulateCommand, const Message &oldMessage, time_t when)
 Creates a message with a new parameter "message" and the data from an old message. The timestamp is set the when. More...


Detailed Description

Creates a message containing all the data of the old message and a new parameter "message".

Definition at line 95 of file Message.h.


Constructor & Destructor Documentation

rwil::EncapsulatingMessage::EncapsulatingMessage std::string    encapsulateCommand,
const Message   oldMessage
 

Creates a message with a new parameter "message" and the data from an old message the timestamp is set to now.

Parameters:
encapsulateCommand  The value of the new parameter named "message"
oldMessage  Message with old data to copy.

Definition at line 45 of file Message.cpp.

References rwil::Message::SetParam().

00045                                                                                                     : Message(oldMessage.GetMap())
00046   {
00047     this->SetParam("message", encapsulateCommand);
00048   }

rwil::EncapsulatingMessage::EncapsulatingMessage std::string    encapsulateCommand,
const Message   oldMessage,
time_t    when
 

Creates a message with a new parameter "message" and the data from an old message. The timestamp is set the when.

Parameters:
encapsulateCommand  The value of the new parameter named "message"
oldMesage  Message with the old data to copy
when  Timestamp of the message

Definition at line 49 of file Message.cpp.

References rwil::Message::SetParam().

00049                                                                                                                   : Message(oldMessage.GetMap(), when)
00050   {
00051     this->SetParam("message", encapsulateCommand);
00052   }


The documentation for this class was generated from the following files:
Generated on Tue Apr 9 13:53:08 2002 for RWIL - Real World Interface Library by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001