MAK RTIspy API Documentation for HLA 1.3
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions
DtWwwControlRspMsg Class Reference

The DtWwwControlRspMsg defines a wrapper for the WebSpy messages in response to DtWwwControlMsgs. More...

+ Inheritance diagram for DtWwwControlRspMsg:
+ Collaboration diagram for DtWwwControlRspMsg:

List of all members.

Public Types

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

Public Member Functions

 DtWwwControlRspMsg (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Constructor.
 DtWwwControlRspMsg (unsigned long commandId, unsigned long connId, unsigned long fedexId, unsigned long fedId, const MAKRti::DtString &xml, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Constructor.
 DtWwwControlRspMsg (const DtNetWwwControlMsg *netRep, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Constructor.
virtual ~DtWwwControlRspMsg ()
 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 sourceFederateHandle () const
 Set/Get target/source federate ID (if specified)
virtual void setSourceFederateHandle (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, DtWwwControlRspCb cb, void *usr)
 Callback management.
static void removeCallback (DtConnectionMgr *conn, DtWwwControlRspCb cb, void *usr)

Protected Member Functions

virtual DtNetWwwControlMsgnetWwwControlRspMsg ()
 The network representation.
virtual const DtNetWwwControlMsgnetWwwControlRspMsg () const
virtual DtRtiMsgKind internalDtRtiMsgKind ()
 Returns the kind of an DtWwwControlRspMsg 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 DtWwwControlRspMsg defines a wrapper for the WebSpy messages in response to DtWwwControlMsgs.

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 > > DtWwwControlRspMsg::ParameterValuePairList

Constructor & Destructor Documentation

DtWwwControlRspMsg::DtWwwControlRspMsg ( DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER)

Constructor.

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

Referenced by clone(), and create().

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

Destructor.


Member Function Documentation

void DtWwwControlRspMsg::addCallback ( DtConnectionMgr conn,
DtWwwControlRspCb  cb,
void *  usr 
) [static]

Callback management.

References DtConnectionMgr::addMsgCallback(), and DtWwwControlRspMsgKind.

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

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

Implements DtRtiMsg.

References DtWwwControlRspMsg(), and netWwwControlRspMsg().

MAKRti::DtString DtWwwControlRspMsg::command ( ) const [virtual]

Set/Get the command data.

References netMsgCommand().

Referenced by DtWwwClientProtocol::parseControlMsg(), and printData().

unsigned long DtWwwControlRspMsg::commandId ( ) const [virtual]
unsigned long DtWwwControlRspMsg::connectionId ( ) const [virtual]
DtRtiMsg * DtWwwControlRspMsg::create ( const DtNetMsgHeader initial,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
) [static]

Creator.

References DtWwwControlRspMsg().

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

References DtWwwControlRspMsg().

Returns the kind of an DtWwwControlRspMsg Msg.

Implements DtRtiMsg.

References DtWwwControlRspMsgKind.

Referenced by DtWwwControlRspMsg().

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

Returns minimum size of a message, including header.

Referenced by DtWwwControlRspMsg().

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

Get a pointer to the message payload.

References DtNetWwwControlMsg::commandLength, and netWwwControlRspMsg().

Referenced by command(), and setCommand().

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

Print the data section.

Reimplemented from DtRtiMsg.

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

void DtWwwControlRspMsg::removeCallback ( DtConnectionMgr conn,
DtWwwControlRspCb  cb,
void *  usr 
) [static]
void DtWwwControlRspMsg::setCommand ( const MAKRti::DtString &  command) [virtual]
void DtWwwControlRspMsg::setCommandId ( unsigned long  commandId) [virtual]
void DtWwwControlRspMsg::setConnectionId ( unsigned long  connId) [virtual]
void DtWwwControlRspMsg::setSourceFederateHandle ( unsigned long  fedId) [virtual]
unsigned long DtWwwControlRspMsg::sourceFederateHandle ( ) const [virtual]

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

References DtNetWwwControlMsg::federateHandle, and netWwwControlRspMsg().

Referenced by printData(), and DtRtiexecObserverForWebService::processControlRspMsg().


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)