![]() |
VR-Forces 4.6 Class Documentation
|
Class DtIfObjectIndexMessage is the message content that contains information the names of the sim engine's local objects. More...

Public Member Functions | |
| DtIfObjectIndexMessage () | |
| default constructor | |
| DtIfObjectIndexMessage (const DtString &simAddress, const DtNameToObjectIdMap &objectNames, const DtStringSet &objectIds) | |
| constructor | |
| DtIfObjectIndexMessage (const DtIfObjectIndexMessage &orig) | |
| copy constructor | |
| const DtIfObjectIndexMessage & | operator= (const DtIfObjectIndexMessage &orig) |
| assignment operator; same as copy costructor. | |
| virtual | ~DtIfObjectIndexMessage () |
| destructor | |
| virtual int | type () const |
| virtual DtSimInterfaceContent * | clone () const |
| Make a copy of this content. | |
| virtual DtString | stringRep () const |
| Get a readable string representation of this content. | |
| virtual int | netRepSize () const |
| virtual bool | setFromNet (const char *contentBuffer, unsigned contentSize) |
| Decodes content from buffer. | |
| virtual bool | setToNet () |
| Encodes content into buffer. | |
| virtual void | setSimAddress (const DtString &simAddress) |
| See mySimAddress. | |
| virtual DtString | simAddress () const |
| virtual void | setObjectNames (const DtNameToObjectIdMap &objectNames) |
| See myObjectNames. | |
| virtual const DtNameToObjectIdMap & | objectNames () const |
| virtual void | setObjectIds (const DtStringSet &objectIds) |
| See myObjectIds. | |
| virtual const DtStringSet & | objectIds () const |
Public Member Functions inherited from DtSimInterfaceContent | |
| virtual | ~DtSimInterfaceContent () |
| virtual bool | update (const DtSimInterfaceContent *data) |
| virtual char * | netRep () |
| virtual void | printContentType (DtString &str) |
| virtual void | printDataToString (DtString &str) |
| virtual void | setUseSessionId (bool yesNo) |
| virtual bool | useSessionId () const |
Static Public Member Functions | |
| static DtSimInterfaceContent * | creator () |
| Creator function. Returns new instance of this class. | |
Static Public Member Functions inherited from DtSimInterfaceContent | |
| static DtSimInterfaceContent * | createInterfaceContent (int type) |
| static void | addInterfaceContentCreatorFcn (int type, DtInterfaceContentCreatorFcn fcn) |
| static void | setFactory (DtInterfaceContentFactory *factory) |
| static DtInterfaceContentFactory * | factory () |
| static void | registerContentTypePrinter (DtSimInterfaceContentTypePrinterFcn printFcn) |
Protected Attributes | |
| DtString | mySimAddress |
| Sim address of this sim engine. | |
| DtNameToObjectIdMap | myObjectNames |
| Map of object names to object ids. Used to search by names, or find an objectId for a name. | |
| DtStringSet | myObjectIds |
| Set of object ids. Used for searching by Ids. | |
Protected Attributes inherited from DtSimInterfaceContent | |
| char * | myNetRep |
| bool | myUseSessionId |
Additional Inherited Members | |
Protected Member Functions inherited from DtSimInterfaceContent | |
| DtSimInterfaceContent () | |
| DtSimInterfaceContent (const DtSimInterfaceContent &orig) | |
| const DtSimInterfaceContent & | operator= (const DtSimInterfaceContent &orig) |
| virtual char * | createNetworkBuffer () |
Static Protected Attributes inherited from DtSimInterfaceContent | |
| static DtInterfaceContentFactory * | myFactory |
| static DtSimInterfaceContentTypePrinterFcn | theContentTypePrinterFcn |
Class DtIfObjectIndexMessage is the message content that contains information the names of the sim engine's local objects.
This is used to ensure sim engines do not get hung up on organization manager operations they may never be able to complete.
| DtIfObjectIndexMessage::DtIfObjectIndexMessage | ( | ) |
default constructor
| DtIfObjectIndexMessage::DtIfObjectIndexMessage | ( | const DtString & | simAddress, |
| const DtNameToObjectIdMap & | objectNames, | ||
| const DtStringSet & | objectIds | ||
| ) |
constructor
| DtIfObjectIndexMessage::DtIfObjectIndexMessage | ( | const DtIfObjectIndexMessage & | orig | ) |
copy constructor
|
virtual |
destructor
| const DtIfObjectIndexMessage& DtIfObjectIndexMessage::operator= | ( | const DtIfObjectIndexMessage & | orig | ) |
assignment operator; same as copy costructor.
|
static |
Creator function. Returns new instance of this class.
|
virtual |
Implements DtSimInterfaceContent.
|
virtual |
See mySimAddress.
|
virtual |
|
virtual |
See myObjectNames.
|
virtual |
|
virtual |
See myObjectIds.
|
virtual |
|
virtual |
Make a copy of this content.
Returns a pointer to a newly created copy of this class.
Implements DtSimInterfaceContent.
|
virtual |
Get a readable string representation of this content.
|
virtual |
Reimplemented from DtSimInterfaceContent.
|
virtual |
Decodes content from buffer.
Reimplemented from DtSimInterfaceContent.
|
virtual |
Encodes content into buffer.
Reimplemented from DtSimInterfaceContent.
|
protected |
Sim address of this sim engine.
This is used when the message is received to filter out our own messages.
|
protected |
Map of object names to object ids. Used to search by names, or find an objectId for a name.
|
protected |
Set of object ids. Used for searching by Ids.