![]() |
MAK RTIspy API Documentation for HLA 1516
|
Inheritance diagram for DtReconnectMsg:
Collaboration diagram for DtReconnectMsg:Public Types | |
| enum | DtReconnectStatus { DtReconnectRequest = 0, DtReconnectAccepted, DtReconnectDenied } |
Public Member Functions | |
| DtReconnectMsg (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructor. | |
| DtReconnectMsg (const DtNetReconnectMsg *netRep, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructor. | |
| DtReconnectMsg (DtHandle oldConnId, DtHandle newConnId, DtFederateHandle fedId, DtReconnectStatus status, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructor. | |
| virtual | ~DtReconnectMsg () |
| Destructor. | |
| virtual DtRtiMsg * | clone (bool copy=true) const |
| Return a copy/empty object of the same type as this. | |
| virtual void | set (DtHandle oldConnId, DtHandle newConnId, DtFederateHandle fedId, DtReconnectStatus status) |
| Set all fields simultaneously. | |
| virtual DtHandle | oldConnectionHandle () const |
| virtual void | setOldConnectionHandle (DtHandle handle) |
| virtual DtHandle | newConnectionHandle () const |
| Set / get new connection handle. | |
| virtual void | setNewConnectionHandle (DtHandle handle) |
| virtual DtReconnectStatus | reconnectStatus () const |
| Set / get reconnect message type. | |
| virtual void | setReconnectStatus (DtReconnectStatus status) |
| virtual DtFederateHandle | federateHandle () const |
| Set get federate id. | |
| virtual void | setFederateHandle (DtFederateHandle handle) |
| Set/Get federate handle. | |
| virtual void | printData (DtLogicalTimeFactory *logicalTimeFactory) const |
| Print the data section. | |
Static Public Member Functions | |
| static DtRtiMsg * | create (const DtNetMsgHeader *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| Creator. | |
| static DtRtiMsg * | create (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| static void | addCallback (DtConnectionMgr *conn, DtReconnectMsgCb cb, void *usr, bool isMomCallback=false) |
| Callback management. | |
| static void | removeCallback (DtConnectionMgr *conn, DtReconnectMsgCb cb, void *usr, bool isMomCallback=false) |
Protected Member Functions | |
| virtual DtNetReconnectMsg * | netReconnectMsg () |
| The network representation. | |
| virtual const DtNetReconnectMsg * | netReconnectMsg () const |
| virtual DtRtiMsgKind | internalDtRtiMsgKind () |
| Returns the kind of an Reconnect Msg. | |
| virtual int | minSize () const |
| Returns minimum size of a message, including header. | |
| virtual DtReconnectMsg * | self () const |
| Casts away const-ness. | |
| DtReconnectMsg::DtReconnectMsg | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) |
Constructor.
References DtReconnectRequest, DtRtiMsg::initDtRtiMsg(), internalDtRtiMsgKind(), minSize(), and setReconnectStatus().
| DtReconnectMsg::DtReconnectMsg | ( | const DtNetReconnectMsg * | netRep, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
Constructor.
References DtNetReconnectMsg::header, and DtRtiMsg::initDtRtiMsg().
| DtReconnectMsg::DtReconnectMsg | ( | DtHandle | oldConnId, |
| DtHandle | newConnId, | ||
| DtFederateHandle | fedId, | ||
| DtReconnectStatus | status, | ||
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
Constructor.
References DtRtiMsg::initDtRtiMsg(), internalDtRtiMsgKind(), minSize(), and DtRtiMsg::status().
| DtReconnectMsg::~DtReconnectMsg | ( | ) | [virtual] |
Destructor.
| void DtReconnectMsg::addCallback | ( | DtConnectionMgr * | conn, |
| DtReconnectMsgCb | cb, | ||
| void * | usr, | ||
| bool | isMomCallback = false |
||
| ) | [static] |
Callback management.
References DtConnectionMgr::addMsgCallback(), and DtReconnectMsgKind.
Referenced by DtRtiExec::DtRtiExec().
| DtRtiMsg * DtReconnectMsg::clone | ( | bool | copy = true | ) | const [virtual] |
Return a copy/empty object of the same type as this.
Implements DtRtiMsg.
References DtReconnectMsg(), and netReconnectMsg().
| DtRtiMsg * DtReconnectMsg::create | ( | const DtNetMsgHeader * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) | [static] |
Creator.
References DtReconnectMsg().
| DtRtiMsg * DtReconnectMsg::create | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) | [static] |
References DtReconnectMsg().
| DtFederateHandle DtReconnectMsg::federateHandle | ( | ) | const [virtual] |
Set get federate id.
Reimplemented from DtRtiMsg.
References DtNetReconnectMsg::fedId, and netReconnectMsg().
Referenced by printData(), DtRtiExec::processReconnect(), and DtRtiExecTrackingFilter::processReconnectMsg().
| DtRtiMsgKind DtReconnectMsg::internalDtRtiMsgKind | ( | ) | [protected, virtual] |
Returns the kind of an Reconnect Msg.
Implements DtRtiMsg.
References DtReconnectMsgKind.
Referenced by DtReconnectMsg().
| int DtReconnectMsg::minSize | ( | ) | const [protected, virtual] |
Returns minimum size of a message, including header.
Referenced by DtReconnectMsg().
| DtNetReconnectMsg * DtReconnectMsg::netReconnectMsg | ( | ) | [protected, virtual] |
The network representation.
Referenced by clone(), federateHandle(), newConnectionHandle(), oldConnectionHandle(), reconnectStatus(), setFederateHandle(), setNewConnectionHandle(), setOldConnectionHandle(), and setReconnectStatus().
| const DtNetReconnectMsg * DtReconnectMsg::netReconnectMsg | ( | ) | const [protected, virtual] |
| DtHandle DtReconnectMsg::newConnectionHandle | ( | ) | const [virtual] |
Set / get new connection handle.
References netReconnectMsg(), and DtNetReconnectMsg::newConnId.
Referenced by printData(), DtRtiExec::processReconnect(), and DtRtiExecTrackingFilter::processReconnectMsg().
| DtHandle DtReconnectMsg::oldConnectionHandle | ( | ) | const [virtual] |
References netReconnectMsg(), and DtNetReconnectMsg::oldConnId.
Referenced by printData(), DtRtiExec::processReconnect(), and DtRtiExecTrackingFilter::processReconnectMsg().
| void DtReconnectMsg::printData | ( | DtLogicalTimeFactory * | logicalTimeFactory | ) | const [virtual] |
Print the data section.
Reimplemented from DtRtiMsg.
References DtReconnectAccepted, DtReconnectDenied, DtReconnectRequest, federateHandle(), newConnectionHandle(), oldConnectionHandle(), and reconnectStatus().
| DtReconnectMsg::DtReconnectStatus DtReconnectMsg::reconnectStatus | ( | ) | const [virtual] |
Set / get reconnect message type.
References netReconnectMsg(), and DtNetReconnectMsg::reconStatus.
Referenced by printData(), DtRtiExec::processReconnect(), and DtRtiExecTrackingFilter::processReconnectMsg().
| void DtReconnectMsg::removeCallback | ( | DtConnectionMgr * | conn, |
| DtReconnectMsgCb | cb, | ||
| void * | usr, | ||
| bool | isMomCallback = false |
||
| ) | [static] |
References DtReconnectMsgKind, and DtConnectionMgr::removeMsgCallback().
Referenced by DtRtiExec::~DtRtiExec().
| DtReconnectMsg * DtReconnectMsg::self | ( | ) | const [inline, protected, virtual] |
Casts away const-ness.
| void DtReconnectMsg::set | ( | DtHandle | oldConnId, |
| DtHandle | newConnId, | ||
| DtFederateHandle | fedId, | ||
| DtReconnectStatus | status | ||
| ) | [virtual] |
Set all fields simultaneously.
References setFederateHandle(), setNewConnectionHandle(), setOldConnectionHandle(), and setReconnectStatus().
| void DtReconnectMsg::setFederateHandle | ( | DtFederateHandle | handle | ) | [virtual] |
Set/Get federate handle.
Reimplemented from DtRtiMsg.
References DtNetReconnectMsg::fedId, and netReconnectMsg().
Referenced by set().
| void DtReconnectMsg::setNewConnectionHandle | ( | DtHandle | handle | ) | [virtual] |
References netReconnectMsg(), and DtNetReconnectMsg::newConnId.
Referenced by set().
| void DtReconnectMsg::setOldConnectionHandle | ( | DtHandle | handle | ) | [virtual] |
References netReconnectMsg(), and DtNetReconnectMsg::oldConnId.
Referenced by set().
| void DtReconnectMsg::setReconnectStatus | ( | DtReconnectMsg::DtReconnectStatus | status | ) | [virtual] |
References netReconnectMsg(), and DtNetReconnectMsg::reconStatus.
Referenced by DtReconnectMsg(), DtRtiExecTrackingFilter::processReconnectMsg(), and set().