![]() |
MAK RTIspy API Documentation for HLA Evolved
|
Inheritance diagram for DtCreateMsg:
Collaboration diagram for DtCreateMsg:Public Member Functions | |
| DtCreateMsg (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructor. | |
| DtCreateMsg (unsigned long ID, const MAKRti::DtString &fedExNameVal, const std::vector< unsigned int > &moduleCrcs, MAKRti::DtFomType fedType, const std::vector< MAKRti::DtString > &moduleNames, const MAKRti::DtString &momModule, const MAKRti::DtString &timeImplNameVal=MAKRti::DtString::nullString(), DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| DtCreateMsg (const DtNetCreateMsg *netRepMsg, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructor. | |
| virtual | ~DtCreateMsg () |
| Destructor. | |
| virtual DtRtiMsg * | clone (bool copy=true) const |
| Return a copy/empty object of the same type as this. | |
| virtual void | set (unsigned long ID, unsigned int momModuleCrc, const MAKRti::DtString &fedExNameVal, const std::vector< unsigned int > &moduleCrcs, MAKRti::DtFomType fedType, const std::vector< MAKRti::DtString > &moduleNames, const MAKRti::DtString &momModule, const MAKRti::DtString &timeImplNameVal) |
| Set all fields in this msg. | |
| void | setSourceID (const unsigned long ID) |
| Set/Get Source ID. | |
| unsigned long | sourceID () const |
| void | setMomModuleCrc (unsigned int theMomModuleCrc) |
| Set/Get MOM Module CRC. | |
| unsigned int | momModuleCrc () const |
| virtual void | setFullFedExName (const MAKRti::DtString &name) |
| Set/Get full name of federation execution. | |
| virtual const MAKRti::DtString | fullFedExName () const |
| virtual void | setTimeImplName (const MAKRti::DtString &name) |
| Set/Get TimeImplName. | |
| virtual MAKRti::DtString | timeImplName () const |
| virtual void | setFomModuleNames (const std::vector< MAKRti::DtString > &moduleNames) |
| Set/Get FedFileName. | |
| virtual void | getFomModuleNames (std::vector< MAKRti::DtString > &modules) const |
| virtual void | setFedFileType (MAKRti::DtFomType fedType) |
| Set/Get FED file type. | |
| virtual MAKRti::DtFomType | fedFileType () const |
| virtual bool | hasMOMModule () |
| Whether there is a MOM module for this federation. | |
| virtual void | setMOMModuleName (const MAKRti::DtString &name) |
| Set / Get momModuleName. | |
| virtual MAKRti::DtString | MOMmoduleName () const |
| virtual void | setCrcsOfFedFiles (const std::vector< unsigned int > &moduleCrcs) |
| Set/ Get a hashes (crcs) of the fed files. | |
| virtual void | getCRCsOfFedFiles (std::vector< unsigned int > &crcOfFedFiles) const |
| 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 for receiving. | |
| static DtRtiMsg * | create (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| Creator for sending. | |
| static void | addCallback (DtConnectionMgr *conn, DtCreateCb cb, void *usr) |
| Callback management. | |
| static void | removeCallback (DtConnectionMgr *conn, DtCreateCb cb, void *usr) |
Protected Member Functions | |
| virtual DtNetCreateMsg * | netCreateMsg () |
| The network representation. | |
| virtual const DtNetCreateMsg * | netCreateMsg () const |
| virtual DtRtiMsgKind | internalDtRtiMsgKind () |
| Returns the kind of an Create Msg. | |
| virtual int | minSize () const |
| Returns minimum size of a message, including header. | |
| virtual int | setMinSizes (const MAKRti::DtString &fedExNameVal, const MAKRti::DtString &timeImplNameVal, const MAKRti::DtString &momModuleNameVal, const std::vector< MAKRti::DtString > &fomModuleNamesVal, const std::vector< unsigned int > &moduleCrcs) |
| 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 | setFedExNameSize (unsigned long size) |
| Set/Get fedEx name size. | |
| virtual unsigned long | fedExNameSize () const |
| virtual void | setTimeImplNameSize (unsigned long size) |
| Set/Get time implementation name size. | |
| virtual unsigned long | timeImplNameSize () const |
| virtual void | setFomModuleNameSize (unsigned long size) |
| Set/Get fomModules Names size. | |
| virtual unsigned long | fomModuleNameSize () const |
| virtual void | setSizeOfMOMModuleName (unsigned long size) |
| virtual unsigned long | sizeOfMOMModuleName () const |
| virtual void | setNumOfCrcs (unsigned int theNumOfCrcs) |
| virtual unsigned long | numOfCrcs () const |
| virtual const char * | fedExNamePtr () const |
| Return pointer to component location in message. | |
| virtual const char * | timeImplNamePtr () const |
| virtual const char * | fomModuleNamesPtr () const |
| virtual const char * | momModuleNamePtr () const |
| virtual const DtNetU32 * | crcsOfFomModulesPtr () const |
| virtual char * | fedExNamePtr () |
| Return pointer to component location in message. | |
| virtual char * | timeImplNamePtr () |
| virtual char * | fomModuleNamesPtr () |
| virtual char * | momModuleNamePtr () |
| virtual DtNetU32 * | crcsOfFomModulesPtr () |
| virtual DtCreateMsg * | self () const |
| Casts away const-ness. | |
| DtCreateMsg::DtCreateMsg | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) |
Constructor.
References DtRtiMsg::initDtRtiMsg(), internalDtRtiMsgKind(), and minSize().
| DtCreateMsg::DtCreateMsg | ( | unsigned long | ID, |
| const MAKRti::DtString & | fedExNameVal, | ||
| const std::vector< unsigned int > & | moduleCrcs, | ||
| MAKRti::DtFomType | fedType, | ||
| const std::vector< MAKRti::DtString > & | moduleNames, | ||
| const MAKRti::DtString & | momModule, | ||
| const MAKRti::DtString & | timeImplNameVal = MAKRti::DtString::nullString(), |
||
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| DtCreateMsg::DtCreateMsg | ( | const DtNetCreateMsg * | netRepMsg, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
Constructor.
References DtNetCreateMsg::header, and DtRtiMsg::initDtRtiMsg().
| DtCreateMsg::~DtCreateMsg | ( | ) | [virtual] |
Destructor.
| void DtCreateMsg::addCallback | ( | DtConnectionMgr * | conn, |
| DtCreateCb | cb, | ||
| void * | usr | ||
| ) | [static] |
Callback management.
References DtConnectionMgr::addMsgCallback(), and DtCreateMsgKind.
Referenced by DtRtiExec::DtRtiExec().
| DtRtiMsg * DtCreateMsg::clone | ( | bool | copy = true | ) | const [virtual] |
Return a copy/empty object of the same type as this.
Implements DtRtiMsg.
References DtCreateMsg(), and netCreateMsg().
| const DtNetU32 * DtCreateMsg::crcsOfFomModulesPtr | ( | ) | const [protected, virtual] |
References netCreateMsg().
Referenced by fedExNamePtr(), getCRCsOfFedFiles(), and setCrcsOfFedFiles().
| DtNetU32 * DtCreateMsg::crcsOfFomModulesPtr | ( | ) | [protected, virtual] |
References netCreateMsg().
| DtRtiMsg * DtCreateMsg::create | ( | const DtNetMsgHeader * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) | [static] |
Creator for receiving.
References DtCreateMsg().
| DtRtiMsg * DtCreateMsg::create | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) | [static] |
Creator for sending.
References DtCreateMsg().
| const char * DtCreateMsg::fedExNamePtr | ( | ) | const [protected, virtual] |
Return pointer to component location in message.
References crcsOfFomModulesPtr(), and numOfCrcs().
Referenced by fullFedExName(), setFullFedExName(), and timeImplNamePtr().
| char * DtCreateMsg::fedExNamePtr | ( | ) | [protected, virtual] |
Return pointer to component location in message.
References crcsOfFomModulesPtr(), and numOfCrcs().
| unsigned long DtCreateMsg::fedExNameSize | ( | ) | const [protected, virtual] |
References DtNetCreateMsg::fedExNameSize, and netCreateMsg().
Referenced by fullFedExName(), setFullFedExName(), and timeImplNamePtr().
| MAKRti::DtFomType DtCreateMsg::fedFileType | ( | ) | const [virtual] |
References DtNetCreateMsg::fedType, and netCreateMsg().
Referenced by DtRtiExec::processCreate().
| unsigned long DtCreateMsg::fomModuleNameSize | ( | ) | const [protected, virtual] |
References DtNetCreateMsg::fomModuleNamesSize, and netCreateMsg().
Referenced by momModuleNamePtr(), and setFomModuleNames().
| const char * DtCreateMsg::fomModuleNamesPtr | ( | ) | const [protected, virtual] |
References timeImplNamePtr(), and timeImplNameSize().
Referenced by getFomModuleNames(), momModuleNamePtr(), and setFomModuleNames().
| char * DtCreateMsg::fomModuleNamesPtr | ( | ) | [protected, virtual] |
References timeImplNamePtr(), and timeImplNameSize().
| const MAKRti::DtString DtCreateMsg::fullFedExName | ( | ) | const [virtual] |
References fedExNamePtr(), and fedExNameSize().
Referenced by printData(), and DtRtiExec::processCreate().
| void DtCreateMsg::getCRCsOfFedFiles | ( | std::vector< unsigned int > & | crcOfFedFiles | ) | const [virtual] |
References crcsOfFomModulesPtr(), and numOfCrcs().
Referenced by printData(), and DtRtiExec::processCreate().
| void DtCreateMsg::getFomModuleNames | ( | std::vector< MAKRti::DtString > & | modules | ) | const [virtual] |
References fomModuleNamesPtr(), netCreateMsg(), and DtNetCreateMsg::numFomModules.
Referenced by printData(), and DtRtiExec::processCreate().
| bool DtCreateMsg::hasMOMModule | ( | ) | [virtual] |
Whether there is a MOM module for this federation.
References DtNetCreateMsg::momModuleSize, and netCreateMsg().
| DtRtiMsgKind DtCreateMsg::internalDtRtiMsgKind | ( | ) | [protected, virtual] |
Returns the kind of an Create Msg.
Implements DtRtiMsg.
References DtCreateMsgKind.
Referenced by DtCreateMsg().
| int DtCreateMsg::minSize | ( | ) | const [protected, virtual] |
Returns minimum size of a message, including header.
Referenced by DtCreateMsg(), and set().
| unsigned int DtCreateMsg::momModuleCrc | ( | ) | const |
References DtNetCreateMsg::momModuleCrc, and netCreateMsg().
Referenced by DtRtiExec::processCreate().
| MAKRti::DtString DtCreateMsg::MOMmoduleName | ( | ) | const [virtual] |
References momModuleNamePtr(), and sizeOfMOMModuleName().
Referenced by printData(), and DtRtiExec::processCreate().
| const char * DtCreateMsg::momModuleNamePtr | ( | ) | const [protected, virtual] |
References fomModuleNameSize(), and fomModuleNamesPtr().
Referenced by MOMmoduleName(), and setMOMModuleName().
| char * DtCreateMsg::momModuleNamePtr | ( | ) | [protected, virtual] |
References fomModuleNameSize(), and fomModuleNamesPtr().
| DtNetCreateMsg * DtCreateMsg::netCreateMsg | ( | ) | [protected, virtual] |
The network representation.
Referenced by clone(), crcsOfFomModulesPtr(), fedExNameSize(), fedFileType(), fomModuleNameSize(), getFomModuleNames(), hasMOMModule(), momModuleCrc(), numOfCrcs(), set(), setFedExNameSize(), setFedFileType(), setFomModuleNames(), setFomModuleNameSize(), setFullFedExName(), setMomModuleCrc(), setMOMModuleName(), setNumOfCrcs(), setSizeOfMOMModuleName(), setSourceID(), setTimeImplName(), setTimeImplNameSize(), sizeOfMOMModuleName(), sourceID(), and timeImplNameSize().
| const DtNetCreateMsg * DtCreateMsg::netCreateMsg | ( | ) | const [protected, virtual] |
| unsigned long DtCreateMsg::numOfCrcs | ( | ) | const [protected, virtual] |
References netCreateMsg(), and DtNetCreateMsg::numOfCrcs.
Referenced by fedExNamePtr(), getCRCsOfFedFiles(), and setCrcsOfFedFiles().
| void DtCreateMsg::printData | ( | DtLogicalTimeFactory * | logicalTimeFactory | ) | const [virtual] |
Print the data section.
Reimplemented from DtRtiMsg.
References fullFedExName(), getCRCsOfFedFiles(), getFomModuleNames(), MOMmoduleName(), sourceID(), and timeImplName().
| void DtCreateMsg::removeCallback | ( | DtConnectionMgr * | conn, |
| DtCreateCb | cb, | ||
| void * | usr | ||
| ) | [static] |
References DtCreateMsgKind, and DtConnectionMgr::removeMsgCallback().
Referenced by DtRtiExec::~DtRtiExec().
| DtCreateMsg * DtCreateMsg::self | ( | ) | const [inline, protected, virtual] |
Casts away const-ness.
| void DtCreateMsg::set | ( | unsigned long | ID, |
| unsigned int | momModuleCrc, | ||
| const MAKRti::DtString & | fedExNameVal, | ||
| const std::vector< unsigned int > & | moduleCrcs, | ||
| MAKRti::DtFomType | fedType, | ||
| const std::vector< MAKRti::DtString > & | moduleNames, | ||
| const MAKRti::DtString & | momModule, | ||
| const MAKRti::DtString & | timeImplNameVal | ||
| ) | [virtual] |
Set all fields in this msg.
References rti1516e::insertBytes(), minSize(), netCreateMsg(), setCrcsOfFedFiles(), setFedFileType(), setFomModuleNames(), setFullFedExName(), setMinSizes(), setMomModuleCrc(), setMOMModuleName(), setSourceID(), and setTimeImplName().
Referenced by DtRtiExecFederateMgr::sendCreateMsg().
| void DtCreateMsg::setCrcsOfFedFiles | ( | const std::vector< unsigned int > & | moduleCrcs | ) | [virtual] |
Set/ Get a hashes (crcs) of the fed files.
References crcsOfFomModulesPtr(), rti1516e::insertBytes(), numOfCrcs(), and setNumOfCrcs().
Referenced by DtCreateMsg(), and set().
| void DtCreateMsg::setFedExNameSize | ( | unsigned long | size | ) | [protected, virtual] |
Set/Get fedEx name size.
References DtNetCreateMsg::fedExNameSize, and netCreateMsg().
Referenced by setMinSizes().
| void DtCreateMsg::setFedFileType | ( | MAKRti::DtFomType | fedType | ) | [virtual] |
Set/Get FED file type.
References DtNetCreateMsg::fedType, and netCreateMsg().
Referenced by DtCreateMsg(), and set().
| void DtCreateMsg::setFomModuleNames | ( | const std::vector< MAKRti::DtString > & | moduleNames | ) | [virtual] |
Set/Get FedFileName.
References fomModuleNameSize(), fomModuleNamesPtr(), DtNetCreateMsg::fomModuleNamesSize, rti1516e::insertBytes(), netCreateMsg(), and DtNetCreateMsg::numFomModules.
Referenced by DtCreateMsg(), and set().
| void DtCreateMsg::setFomModuleNameSize | ( | unsigned long | size | ) | [protected, virtual] |
Set/Get fomModules Names size.
References DtNetCreateMsg::fomModuleNamesSize, and netCreateMsg().
Referenced by setMinSizes().
| void DtCreateMsg::setFullFedExName | ( | const MAKRti::DtString & | name | ) | [virtual] |
Set/Get full name of federation execution.
References fedExNamePtr(), DtNetCreateMsg::fedExNameSize, fedExNameSize(), rti1516e::insertBytes(), and netCreateMsg().
Referenced by DtCreateMsg(), and set().
| int DtCreateMsg::setMinSizes | ( | const MAKRti::DtString & | fedExNameVal, |
| const MAKRti::DtString & | timeImplNameVal, | ||
| const MAKRti::DtString & | momModuleNameVal, | ||
| const std::vector< MAKRti::DtString > & | fomModuleNamesVal, | ||
| const std::vector< unsigned int > & | moduleCrcs | ||
| ) | [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 setFedExNameSize(), setFomModuleNameSize(), setNumOfCrcs(), and setTimeImplNameSize().
Referenced by DtCreateMsg(), and set().
| void DtCreateMsg::setMomModuleCrc | ( | unsigned int | theMomModuleCrc | ) |
Set/Get MOM Module CRC.
References DtNetCreateMsg::momModuleCrc, and netCreateMsg().
Referenced by set().
| void DtCreateMsg::setMOMModuleName | ( | const MAKRti::DtString & | name | ) | [virtual] |
Set / Get momModuleName.
References rti1516e::insertBytes(), momModuleNamePtr(), DtNetCreateMsg::momModuleSize, netCreateMsg(), and sizeOfMOMModuleName().
Referenced by DtCreateMsg(), and set().
| void DtCreateMsg::setNumOfCrcs | ( | unsigned int | theNumOfCrcs | ) | [protected, virtual] |
References netCreateMsg(), and DtNetCreateMsg::numOfCrcs.
Referenced by setCrcsOfFedFiles(), and setMinSizes().
| void DtCreateMsg::setSizeOfMOMModuleName | ( | unsigned long | size | ) | [protected, virtual] |
References DtNetCreateMsg::momModuleSize, and netCreateMsg().
| void DtCreateMsg::setSourceID | ( | const unsigned long | ID | ) |
Set/Get Source ID.
References netCreateMsg(), and DtNetCreateMsg::sourceID.
Referenced by DtCreateMsg(), and set().
| void DtCreateMsg::setTimeImplName | ( | const MAKRti::DtString & | name | ) | [virtual] |
Set/Get TimeImplName.
References rti1516e::insertBytes(), netCreateMsg(), timeImplNamePtr(), DtNetCreateMsg::timeImplNameSize, and timeImplNameSize().
Referenced by DtCreateMsg(), and set().
| void DtCreateMsg::setTimeImplNameSize | ( | unsigned long | size | ) | [protected, virtual] |
Set/Get time implementation name size.
References netCreateMsg(), and DtNetCreateMsg::timeImplNameSize.
Referenced by setMinSizes().
| unsigned long DtCreateMsg::sizeOfMOMModuleName | ( | ) | const [protected, virtual] |
References DtNetCreateMsg::momModuleSize, and netCreateMsg().
Referenced by MOMmoduleName(), and setMOMModuleName().
| unsigned long DtCreateMsg::sourceID | ( | ) | const |
References netCreateMsg(), and DtNetCreateMsg::sourceID.
Referenced by printData(), and DtRtiExec::processCreate().
| MAKRti::DtString DtCreateMsg::timeImplName | ( | ) | const [virtual] |
References timeImplNamePtr(), and timeImplNameSize().
Referenced by printData(), and DtRtiExec::processCreate().
| const char * DtCreateMsg::timeImplNamePtr | ( | ) | const [protected, virtual] |
References fedExNamePtr(), and fedExNameSize().
Referenced by fomModuleNamesPtr(), setTimeImplName(), and timeImplName().
| char * DtCreateMsg::timeImplNamePtr | ( | ) | [protected, virtual] |
References fedExNamePtr(), and fedExNameSize().
| unsigned long DtCreateMsg::timeImplNameSize | ( | ) | const [protected, virtual] |
References netCreateMsg(), and DtNetCreateMsg::timeImplNameSize.
Referenced by fomModuleNamesPtr(), setTimeImplName(), and timeImplName().