![]() |
MAK RTIspy API Documentation for HLA 1516
|
Inheritance diagram for DtRegObjMsg:
Collaboration diagram for DtRegObjMsg:Public Member Functions | |
| DtRegObjMsg (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructor. | |
| DtRegObjMsg (DtObjectInstanceHandle objHandleValue, const char *objNameValue, DtObjectClassHandle classHandleValue, const DtAttributeHandleSet &attrSet, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| DtRegObjMsg (const DtNetRegObjMsg *netRepMsg, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructor. | |
| virtual | ~DtRegObjMsg () |
| Destructor. | |
| virtual DtRtiMsg * | clone (bool copy=true) const |
| Return a copy/empty object of the same type as this. | |
| virtual void | set (DtObjectInstanceHandle objHandleValue, const char *objNameValue, DtObjectClassHandle classHandleValue, const DtAttributeHandleSet &attrSet) |
| Set all fields simultaneously. | |
| virtual void | setClassHandle (DtObjectClassHandle hand) |
| Set/Get class handle. | |
| virtual DtObjectClassHandle | classHandle () const |
| virtual void | setObjHandle (DtObjectInstanceHandle id) |
| Set/Get object handle. | |
| virtual DtObjectInstanceHandle | objHandle () const |
| virtual void | setObjName (const char *name) |
| Set/Get object name. | |
| virtual const char * | objName () const |
| virtual void | setAttrHandles (const DtAttributeHandleSet &attrs) |
| Set/Get attribute handles. | |
| virtual const DtAttributeHandleSet & | attrHandles () 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. | |
| static DtRtiMsg * | create (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| Creator. | |
| static void | addCallback (DtConnectionMgr *conn, DtRegObjCb cb, void *usr) |
| Callback management. | |
| static void | removeCallback (DtConnectionMgr *conn, DtRegObjCb cb, void *usr) |
Protected Member Functions | |
| virtual DtNetRegObjMsg * | netRegObjMsg () |
| The network representation. | |
| virtual const DtNetRegObjMsg * | netRegObjMsg () const |
| virtual DtRtiMsgKind | internalDtRtiMsgKind () |
| Returns the kind of an RegObj Msg. | |
| virtual int | minSize () const |
| Returns minimum size of a message, including header. | |
| virtual char * | namePtr () |
| Returns pointer to the name in the netMsg. | |
| virtual unsigned long | nameFieldSize () const |
| Returns size of name field. | |
| virtual DtRegObjMsg * | self () const |
| Casts away const-ness. | |
Protected Attributes | |
| int | myDirty |
| DtAttributeHandleSet * | myAttrs |
| MAKRti::DtString | myName |
| DtRegObjMsg::DtRegObjMsg | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) |
Constructor.
References DtRtiMsg::initDtRtiMsg(), internalDtRtiMsgKind(), and minSize().
| DtRegObjMsg::DtRegObjMsg | ( | DtObjectInstanceHandle | objHandleValue, |
| const char * | objNameValue, | ||
| DtObjectClassHandle | classHandleValue, | ||
| const DtAttributeHandleSet & | attrSet, | ||
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| DtRegObjMsg::DtRegObjMsg | ( | const DtNetRegObjMsg * | netRepMsg, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
Constructor.
References DtNetRegObjMsg::header, DtRtiMsg::initDtRtiMsg(), myName, namePtr(), and netRegObjMsg().
| DtRegObjMsg::~DtRegObjMsg | ( | ) | [virtual] |
Destructor.
References myAttrs.
| void DtRegObjMsg::addCallback | ( | DtConnectionMgr * | conn, |
| DtRegObjCb | cb, | ||
| void * | usr | ||
| ) | [static] |
Callback management.
References DtConnectionMgr::addMsgCallback(), and DtRegObjMsgKind.
Referenced by DtObjectMgr::DtObjectMgr().
| const DtAttributeHandleSet & DtRegObjMsg::attrHandles | ( | ) | const [virtual] |
References DtAttributeHandleSet::decode(), DtNetRegObjMsg::handleSet, myAttrs, myDirty, and netRegObjMsg().
Referenced by printData(), and DtObjectMgr::processRegister().
| DtObjectClassHandle DtRegObjMsg::classHandle | ( | ) | const [virtual] |
References DtNetRegObjMsg::handle, and netRegObjMsg().
Referenced by printData(), and DtObjectMgr::processRegister().
| DtRtiMsg * DtRegObjMsg::clone | ( | bool | copy = true | ) | const [virtual] |
Return a copy/empty object of the same type as this.
Implements DtRtiMsg.
References DtRegObjMsg(), and netRegObjMsg().
| DtRtiMsg * DtRegObjMsg::create | ( | const DtNetMsgHeader * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) | [static] |
Creator.
References DtRegObjMsg().
| DtRtiMsg * DtRegObjMsg::create | ( | DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER | ) | [static] |
Creator.
References DtRegObjMsg().
| DtRtiMsgKind DtRegObjMsg::internalDtRtiMsgKind | ( | ) | [protected, virtual] |
Returns the kind of an RegObj Msg.
Implements DtRtiMsg.
References DtRegObjMsgKind.
Referenced by DtRegObjMsg().
| int DtRegObjMsg::minSize | ( | ) | const [protected, virtual] |
Returns minimum size of a message, including header.
Referenced by DtRegObjMsg().
| unsigned long DtRegObjMsg::nameFieldSize | ( | ) | const [protected, virtual] |
Returns size of name field.
References DtNetRegObjMsg::nameSize, and netRegObjMsg().
Referenced by setObjName().
| char * DtRegObjMsg::namePtr | ( | ) | [protected, virtual] |
Returns pointer to the name in the netMsg.
References DtNetRegObjMsg::handleSet, and netRegObjMsg().
Referenced by DtRegObjMsg(), and setObjName().
| DtNetRegObjMsg * DtRegObjMsg::netRegObjMsg | ( | ) | [protected, virtual] |
The network representation.
Referenced by attrHandles(), classHandle(), clone(), DtRegObjMsg(), nameFieldSize(), namePtr(), objHandle(), setAttrHandles(), setClassHandle(), setObjHandle(), and setObjName().
| const DtNetRegObjMsg * DtRegObjMsg::netRegObjMsg | ( | ) | const [protected, virtual] |
| DtObjectInstanceHandle DtRegObjMsg::objHandle | ( | ) | const [virtual] |
References DtNetRegObjMsg::id, and netRegObjMsg().
Referenced by printData(), and DtObjectMgr::processRegister().
| const char * DtRegObjMsg::objName | ( | ) | const [virtual] |
References myName.
Referenced by printData(), and DtObjectMgr::processRegister().
| void DtRegObjMsg::printData | ( | DtLogicalTimeFactory * | logicalTimeFactory | ) | const [virtual] |
Print the data section.
Reimplemented from DtRtiMsg.
References attrHandles(), classHandle(), objHandle(), objName(), and DtRtiMsg::print().
| void DtRegObjMsg::removeCallback | ( | DtConnectionMgr * | conn, |
| DtRegObjCb | cb, | ||
| void * | usr | ||
| ) | [static] |
References DtRegObjMsgKind, and DtConnectionMgr::removeMsgCallback().
Referenced by DtObjectMgr::~DtObjectMgr().
| DtRegObjMsg * DtRegObjMsg::self | ( | ) | const [inline, protected, virtual] |
Casts away const-ness.
| void DtRegObjMsg::set | ( | DtObjectInstanceHandle | objHandleValue, |
| const char * | objNameValue, | ||
| DtObjectClassHandle | classHandleValue, | ||
| const DtAttributeHandleSet & | attrSet | ||
| ) | [virtual] |
Set all fields simultaneously.
References setAttrHandles(), setClassHandle(), setObjHandle(), and setObjName().
Referenced by DtObjectMgr::sendRegisterMsg().
| void DtRegObjMsg::setAttrHandles | ( | const DtAttributeHandleSet & | attrs | ) | [virtual] |
Set/Get attribute handles.
References myDirty, and netRegObjMsg().
Referenced by DtRegObjMsg(), and set().
| void DtRegObjMsg::setClassHandle | ( | DtObjectClassHandle | hand | ) | [virtual] |
Set/Get class handle.
References DtNetRegObjMsg::handle, and netRegObjMsg().
Referenced by DtRegObjMsg(), and set().
| void DtRegObjMsg::setObjHandle | ( | DtObjectInstanceHandle | id | ) | [virtual] |
Set/Get object handle.
References DtNetRegObjMsg::id, and netRegObjMsg().
Referenced by DtRegObjMsg(), and set().
| void DtRegObjMsg::setObjName | ( | const char * | name | ) | [virtual] |
Set/Get object name.
References rti1516e::insertBytes(), myName, nameFieldSize(), namePtr(), DtNetRegObjMsg::nameSize, and netRegObjMsg().
Referenced by DtRegObjMsg(), and set().
DtAttributeHandleSet* DtRegObjMsg::myAttrs [protected] |
Referenced by attrHandles(), and ~DtRegObjMsg().
int DtRegObjMsg::myDirty [protected] |
Referenced by attrHandles(), and setAttrHandles().
MAKRti::DtString DtRegObjMsg::myName [protected] |
Referenced by DtRegObjMsg(), objName(), and setObjName().