MAK RTIspy API Documentation for HLA 1516
Public Member Functions | Static Public Member Functions | Protected Member Functions
DtJoinLightWeightMsg Class Reference
+ Inheritance diagram for DtJoinLightWeightMsg:
+ Collaboration diagram for DtJoinLightWeightMsg:

List of all members.

Public Member Functions

 DtJoinLightWeightMsg (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Constructor.
 DtJoinLightWeightMsg (MAKRti::DtString const &fedTypeValue, MAKRti::DtString const &fedExNameValue, MAKRti::DtString const &fedNameValue, MAKRti::DtString const &federateHostNameValue, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 DtJoinLightWeightMsg (const DtNetJoinLightWeightMsg *netRepMsg, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER)
 Constructor.
virtual ~DtJoinLightWeightMsg ()
 Destructor.
virtual DtRtiMsgclone (bool copy=true) const
 Return a copy/empty object of the same type as this.
virtual void set (MAKRti::DtString const &fedTypeValue, MAKRti::DtString const &fedExNameValue, MAKRti::DtString const &fedNameValue, MAKRti::DtString const &federateHostNameValue)
 Set all fields simultaneously.
virtual void setFederateType (MAKRti::DtString const &type)
 Set federate type.
virtual MAKRti::DtString federateType () const
 Get federate type.
virtual void setFullFedExName (MAKRti::DtString const &name)
 Set full name of federation execution.
virtual MAKRti::DtString fullFedExName () const
 Get full name of federation execution.
virtual void setFederateName (MAKRti::DtString const &name)
 Set federate name.
virtual MAKRti::DtString federateName () const
 Get federate name.
virtual void setFederateHostName (MAKRti::DtString const &name)
 Set fed host name.
virtual MAKRti::DtString federateHostName () const
 Get fed host name.
virtual void setIpAddress (const MAKRti::DtInetAddr &ip)
 Set federate IP address ( by default message will contain address of primary interface )
virtual MAKRti::DtInetAddr ipAddress () const
 Get federate IP address.
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)
 Creator.
static void addCallback (DtConnectionMgr *conn, DtJoinLightWeightCb cb, void *usr)
 Callback management.
static void removeCallback (DtConnectionMgr *conn, DtJoinLightWeightCb cb, void *usr)

Protected Member Functions

virtual DtNetJoinLightWeightMsgnetJoinLightWeightMsg ()
 The network representation.
virtual const
DtNetJoinLightWeightMsg
netJoinLightWeightMsg () const
virtual DtRtiMsgKind internalDtRtiMsgKind ()
 Returns the kind of an Join Msg.
virtual int minSize () const
 Returns minimum size of a message, including header.
virtual int setMinSizes (MAKRti::DtString const &federateType, MAKRti::DtString const &fedExName, MAKRti::DtString const &federateName, MAKRti::DtString const &federateHostName)
 Sets the field sizes for the variant components and returns the minimum size needed for the message, including header DOES NOT allocate memory for the components.
virtual void setFederateTypeSize (unsigned long size)
 Set/Get fed type size.
virtual unsigned long federateTypeSize () const
virtual void setFederateNameSize (unsigned long size)
 Set/Get fed name size.
virtual unsigned long federateNameSize () const
virtual void setFedExNameSize (unsigned long size)
 Set/Get fedEx name size.
virtual unsigned long fedExNameSize () const
virtual void setFederateHostNameSize (unsigned long size)
 Set Get size of federate host name.
virtual unsigned long federateHostNameSize () const
virtual const char * federateTypePtr () const
 Return pointer to component location in message.
virtual const char * federateNamePtr () const
virtual const char * fedExNamePtr () const
virtual const char * federateHostNamePtr () const
virtual char * federateTypePtr ()
virtual char * federateNamePtr ()
virtual char * fedExNamePtr ()
virtual char * federateHostNamePtr ()
virtual DtJoinLightWeightMsgself () const
 Casts away const-ness.

Constructor & Destructor Documentation

DtJoinLightWeightMsg::DtJoinLightWeightMsg ( DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER)
DtJoinLightWeightMsg::DtJoinLightWeightMsg ( MAKRti::DtString const &  fedTypeValue,
MAKRti::DtString const &  fedExNameValue,
MAKRti::DtString const &  fedNameValue,
MAKRti::DtString const &  federateHostNameValue,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)
DtJoinLightWeightMsg::DtJoinLightWeightMsg ( const DtNetJoinLightWeightMsg netRepMsg,
DtBufferPtr  buffer = DtUSE_INTERNAL_BUFFER 
)

Destructor.


Member Function Documentation

void DtJoinLightWeightMsg::addCallback ( DtConnectionMgr conn,
DtJoinLightWeightCb  cb,
void *  usr 
) [static]

Callback management.

References DtConnectionMgr::addMsgCallback(), and DtJoinLightWeightMsgKind.

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

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

Implements DtRtiMsg.

References DtJoinLightWeightMsg(), and netJoinLightWeightMsg().

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

Creator.

References DtJoinLightWeightMsg().

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

Creator.

References DtJoinLightWeightMsg().

MAKRti::DtString DtJoinLightWeightMsg::federateHostName ( ) const [virtual]

Get fed host name.

References federateHostNamePtr(), and federateHostNameSize().

Referenced by printData().

const char * DtJoinLightWeightMsg::federateHostNamePtr ( ) const [protected, virtual]
char * DtJoinLightWeightMsg::federateHostNamePtr ( ) [protected, virtual]
unsigned long DtJoinLightWeightMsg::federateHostNameSize ( ) const [protected, virtual]
MAKRti::DtString DtJoinLightWeightMsg::federateName ( ) const [virtual]

Get federate name.

References federateNamePtr(), and federateNameSize().

Referenced by printData().

const char * DtJoinLightWeightMsg::federateNamePtr ( ) const [protected, virtual]
char * DtJoinLightWeightMsg::federateNamePtr ( ) [protected, virtual]

References fedExNamePtr(), and fedExNameSize().

unsigned long DtJoinLightWeightMsg::federateNameSize ( ) const [protected, virtual]
MAKRti::DtString DtJoinLightWeightMsg::federateType ( ) const [virtual]

Get federate type.

References federateTypePtr(), and federateTypeSize().

Referenced by printData().

const char * DtJoinLightWeightMsg::federateTypePtr ( ) const [protected, virtual]

Return pointer to component location in message.

References federateHostNamePtr(), and federateHostNameSize().

Referenced by federateType(), and setFederateType().

char * DtJoinLightWeightMsg::federateTypePtr ( ) [protected, virtual]
unsigned long DtJoinLightWeightMsg::federateTypeSize ( ) const [protected, virtual]
const char * DtJoinLightWeightMsg::fedExNamePtr ( ) const [protected, virtual]
char * DtJoinLightWeightMsg::fedExNamePtr ( ) [protected, virtual]
unsigned long DtJoinLightWeightMsg::fedExNameSize ( ) const [protected, virtual]
MAKRti::DtString DtJoinLightWeightMsg::fullFedExName ( ) const [virtual]

Get full name of federation execution.

References fedExNamePtr(), and fedExNameSize().

Referenced by printData().

Returns the kind of an Join Msg.

Implements DtRtiMsg.

References DtJoinLightWeightMsgKind.

Referenced by DtJoinLightWeightMsg().

MAKRti::DtInetAddr DtJoinLightWeightMsg::ipAddress ( ) const [virtual]

Get federate IP address.

References netJoinLightWeightMsg().

Referenced by printData().

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

Returns minimum size of a message, including header.

Referenced by DtJoinLightWeightMsg(), and set().

void DtJoinLightWeightMsg::printData ( DtLogicalTimeFactory logicalTimeFactory) const [virtual]

Print the data section.

Reimplemented from DtRtiMsg.

References federateHostName(), federateName(), federateType(), fullFedExName(), and ipAddress().

void DtJoinLightWeightMsg::removeCallback ( DtConnectionMgr conn,
DtJoinLightWeightCb  cb,
void *  usr 
) [static]
DtJoinLightWeightMsg * DtJoinLightWeightMsg::self ( ) const [inline, protected, virtual]

Casts away const-ness.

void DtJoinLightWeightMsg::set ( MAKRti::DtString const &  fedTypeValue,
MAKRti::DtString const &  fedExNameValue,
MAKRti::DtString const &  fedNameValue,
MAKRti::DtString const &  federateHostNameValue 
) [virtual]
void DtJoinLightWeightMsg::setFederateHostName ( MAKRti::DtString const &  name) [virtual]
void DtJoinLightWeightMsg::setFederateHostNameSize ( unsigned long  size) [protected, virtual]

Set Get size of federate host name.

References DtNetJoinLightWeightMsg::fedHostNameSize, and netJoinLightWeightMsg().

Referenced by setFederateHostName(), and setMinSizes().

void DtJoinLightWeightMsg::setFederateName ( MAKRti::DtString const &  name) [virtual]
void DtJoinLightWeightMsg::setFederateNameSize ( unsigned long  size) [protected, virtual]

Set/Get fed name size.

References DtNetJoinLightWeightMsg::fedNameSize, and netJoinLightWeightMsg().

Referenced by setFederateName(), and setMinSizes().

void DtJoinLightWeightMsg::setFederateType ( MAKRti::DtString const &  type) [virtual]
void DtJoinLightWeightMsg::setFederateTypeSize ( unsigned long  size) [protected, virtual]

Set/Get fed type size.

References DtNetJoinLightWeightMsg::fedTypeSize, and netJoinLightWeightMsg().

Referenced by setFederateType(), and setMinSizes().

void DtJoinLightWeightMsg::setFedExNameSize ( unsigned long  size) [protected, virtual]

Set/Get fedEx name size.

References DtNetJoinLightWeightMsg::fedExNameSize, and netJoinLightWeightMsg().

Referenced by setMinSizes().

void DtJoinLightWeightMsg::setFullFedExName ( MAKRti::DtString const &  name) [virtual]
void DtJoinLightWeightMsg::setIpAddress ( const MAKRti::DtInetAddr &  ip) [virtual]

Set federate IP address ( by default message will contain address of primary interface )

References DtNetJoinLightWeightMsg::inetAddrFamily, netJoinLightWeightMsg(), and DtNetJoinLightWeightMsg::sourceIP.

Referenced by DtJoinLightWeightMsg(), DtPartnerMgr::sendJoinMessage(), and set().

int DtJoinLightWeightMsg::setMinSizes ( MAKRti::DtString const &  federateType,
MAKRti::DtString const &  fedExName,
MAKRti::DtString const &  federateName,
MAKRti::DtString const &  federateHostName 
) [protected, virtual]

Sets the field sizes for the variant components and returns the minimum size needed for the message, including header DOES NOT allocate memory for the components.

References DtJoinLightWeightMsg(), setFederateHostNameSize(), setFederateNameSize(), setFederateTypeSize(), and setFedExNameSize().

Referenced by DtJoinLightWeightMsg(), and set().


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)