MAK RTIspy API Documentation for HLA Evolved
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
DtWwwControlMsg Class Reference

The DtWwwControlMsg defines a wrapper for the WebSpy messages used for control communication between the WWW Server and the RTI Componenets. More...

+ Inheritance diagram for DtWwwControlMsg:
+ Collaboration diagram for DtWwwControlMsg:

List of all members.

Public Types

typedef std::vector< std::pair
< MAKRti::DtString,
MAKRti::DtString > > 
ParameterValuePairList

Public Member Functions

 DtWwwControlMsg (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Constructor.
 DtWwwControlMsg (unsigned long commandId, unsigned long connId, unsigned long fedexId, unsigned long targetFedId, const MAKRti::DtString &xml, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Constructor.
 DtWwwControlMsg (const DtNetWwwControlMsg *netRep, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Constructor.
virtual ~DtWwwControlMsg ()
 Destructor.
virtual DtRtiMsgclone (bool copy=true) const
 Return a copy/empty object of the same type as this.
virtual unsigned long commandId () const
 Set/Get command ID.
virtual void setCommandId (unsigned long commandId)
virtual unsigned long connectionId () const
 Set/Get target/source connection ID (if specified)
virtual void setConnectionId (unsigned long connId)
virtual unsigned long targetFederateHandle () const
 Set/Get target federate ID (if specified)
virtual void setTargetFederateHandle (unsigned long fedId)
virtual MAKRti::DtString command () const
 Set/Get the command data.
virtual void setCommand (const MAKRti::DtString &command)
virtual void printData (DtLogicalTimeFactory *logicalTimeFactory) const
 Print the data section.

Static Public Member Functions

static DtRtiMsgcreate (const DtNetMsgHeader *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Creator.
static DtRtiMsgcreate (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
static void addCallback (DtConnectionMgr *conn, DtWwwControlCb cb, void *usr)
 Callback management.
static void removeCallback (DtConnectionMgr *conn, DtWwwControlCb cb, void *usr)

Protected Member Functions

virtual DtNetWwwControlMsgnetWwwControlMsg ()
 The network representation.
virtual const DtNetWwwControlMsgnetWwwControlMsg () const
virtual DtRtiMsgKind internalDtRtiMsgKind ()
 Returns the kind of an DtWwwControlMsg Msg.
virtual char * netMsgCommand ()
 Get a pointer to the message payload.
virtual const char * netMsgCommand () const
virtual int minSize () const
 Returns minimum size of a message, including header.

Detailed Description

The DtWwwControlMsg defines a wrapper for the WebSpy messages used for control communication between the WWW Server and the RTI Componenets.

The contained data is defined by the WebSpy library based on the commandId.


Member Typedef Documentation

typedef std::vector< std::pair< MAKRti::DtString, MAKRti::DtString > > DtWwwControlMsg::ParameterValuePairList

Constructor & Destructor Documentation

DtWwwControlMsg::DtWwwControlMsg ( DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER)

Constructor.

References DtRtiMsg::initDtRtiMsg(), internalDtRtiMsgKind(), and minSize().

Referenced by clone(), and create().

DtWwwControlMsg::DtWwwControlMsg ( unsigned long  commandId,
unsigned long  connId,
unsigned long  fedexId,
unsigned long  targetFedId,
const MAKRti::DtString &  xml,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)
DtWwwControlMsg::DtWwwControlMsg ( const DtNetWwwControlMsg netRep,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)

Destructor.


Member Function Documentation

void DtWwwControlMsg::addCallback ( DtConnectionMgr conn,
DtWwwControlCb  cb,
void *  usr 
) [static]

Callback management.

References DtConnectionMgr::addMsgCallback(), and DtWwwControlMsgKind.

DtRtiMsg * DtWwwControlMsg::clone ( bool  copy = true) const [virtual]

Return a copy/empty object of the same type as this.

Implements DtRtiMsg.

References DtWwwControlMsg(), and netWwwControlMsg().

MAKRti::DtString DtWwwControlMsg::command ( ) const [virtual]
unsigned long DtWwwControlMsg::commandId ( ) const [virtual]
unsigned long DtWwwControlMsg::connectionId ( ) const [virtual]

Set/Get target/source connection ID (if specified)

References DtNetWwwControlMsg::connectionId, and netWwwControlMsg().

Referenced by DtTcpRtiConnectionMgr::establishConnection(), and DtRtiExecWebManager::issueStateRequest().

DtRtiMsg * DtWwwControlMsg::create ( const DtNetMsgHeader initial,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
) [static]

Creator.

References DtWwwControlMsg().

DtRtiMsg * DtWwwControlMsg::create ( DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER) [static]

References DtWwwControlMsg().

Returns the kind of an DtWwwControlMsg Msg.

Implements DtRtiMsg.

References DtWwwControlMsgKind.

Referenced by DtWwwControlMsg().

int DtWwwControlMsg::minSize ( ) const [protected, virtual]

Returns minimum size of a message, including header.

Referenced by DtWwwControlMsg().

char * DtWwwControlMsg::netMsgCommand ( ) [protected, virtual]

Get a pointer to the message payload.

References DtNetWwwControlMsg::commandLength, and netWwwControlMsg().

Referenced by command(), and setCommand().

const char * DtWwwControlMsg::netMsgCommand ( ) const [protected, virtual]
const DtNetWwwControlMsg * DtWwwControlMsg::netWwwControlMsg ( ) const [protected, virtual]
void DtWwwControlMsg::printData ( DtLogicalTimeFactory logicalTimeFactory) const [virtual]

Print the data section.

Reimplemented from DtRtiMsg.

References command(), commandId(), and targetFederateHandle().

void DtWwwControlMsg::removeCallback ( DtConnectionMgr conn,
DtWwwControlCb  cb,
void *  usr 
) [static]
void DtWwwControlMsg::setCommand ( const MAKRti::DtString &  command) [virtual]
void DtWwwControlMsg::setCommandId ( unsigned long  commandId) [virtual]
void DtWwwControlMsg::setConnectionId ( unsigned long  connId) [virtual]
void DtWwwControlMsg::setTargetFederateHandle ( unsigned long  fedId) [virtual]
unsigned long DtWwwControlMsg::targetFederateHandle ( ) const [virtual]

Set/Get target federate ID (if specified)

References DtNetWwwControlMsg::federateHandle, and netWwwControlMsg().

Referenced by DtRtiExecWebManager::issueStateRequest(), and printData().


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

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)