VR-Forces 4.0.4 Class Documentation
Public Member Functions | Static Public Member Functions | Protected Attributes
DtIfObjectIndexMessage Class Reference

Class DtIfObjectIndexMessage is the message content that contains information the names of the sim engine's local objects. More...

Inheritance diagram for DtIfObjectIndexMessage:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtIfObjectIndexMessage ()
 default constructor
 DtIfObjectIndexMessage (const DtString &simAddress, const DtNameToObjectIdMap &objectNames, const DtStringSet &objectIds)
 constructor
 DtIfObjectIndexMessage (const DtIfObjectIndexMessage &orig)
 copy constructor
const DtIfObjectIndexMessageoperator= (const DtIfObjectIndexMessage &orig)
 assignment operator; same as copy costructor.
virtual ~DtIfObjectIndexMessage ()
 destructor
virtual int type () const
virtual DtSimInterfaceContentclone () 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
 See mySimAddress.
virtual void setObjectNames (const DtNameToObjectIdMap &objectNames)
 See myObjectNames.
virtual const DtNameToObjectIdMapobjectNames () const
 See myObjectNames.
virtual void setObjectIds (const DtStringSet &objectIds)
 See myObjectIds.
virtual const DtStringSetobjectIds () const
 See myObjectIds.

Static Public Member Functions

static DtSimInterfaceContentcreator ()
 Creator function. Returns new instance of this class.

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.

Detailed Description

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.


Constructor & Destructor Documentation

default constructor

DtIfObjectIndexMessage::DtIfObjectIndexMessage ( const DtString simAddress,
const DtNameToObjectIdMap objectNames,
const DtStringSet objectIds 
)

constructor

copy constructor

destructor


Member Function Documentation

const DtIfObjectIndexMessage& DtIfObjectIndexMessage::operator= ( const DtIfObjectIndexMessage orig)

assignment operator; same as copy costructor.

Creator function. Returns new instance of this class.

virtual int DtIfObjectIndexMessage::type ( ) const [virtual]
Returns:
DtIfObjectIndexDataType (defined in ddmMessageTypes.h)

Implements DtSimInterfaceContent.

virtual void DtIfObjectIndexMessage::setSimAddress ( const DtString simAddress) [virtual]
virtual DtString DtIfObjectIndexMessage::simAddress ( ) const [virtual]
virtual void DtIfObjectIndexMessage::setObjectNames ( const DtNameToObjectIdMap objectNames) [virtual]
virtual const DtNameToObjectIdMap& DtIfObjectIndexMessage::objectNames ( ) const [virtual]
virtual void DtIfObjectIndexMessage::setObjectIds ( const DtStringSet objectIds) [virtual]
virtual const DtStringSet& DtIfObjectIndexMessage::objectIds ( ) const [virtual]

Make a copy of this content.

Returns a pointer to a newly created copy of this class.

Implements DtSimInterfaceContent.

virtual DtString DtIfObjectIndexMessage::stringRep ( ) const [virtual]

Get a readable string representation of this content.

virtual int DtIfObjectIndexMessage::netRepSize ( ) const [virtual]
Returns:
Size of the serialized representation of this admin content.

Reimplemented from DtSimInterfaceContent.

virtual bool DtIfObjectIndexMessage::setFromNet ( const char *  contentBuffer,
unsigned  contentSize 
) [virtual]

Decodes content from buffer.

Reimplemented from DtSimInterfaceContent.

virtual bool DtIfObjectIndexMessage::setToNet ( ) [virtual]

Encodes content into buffer.

Reimplemented from DtSimInterfaceContent.


Member Data Documentation

Sim address of this sim engine.

This is used when the message is received to filter out our own messages.

Map of object names to object ids. Used to search by names, or find an objectId for a name.

Set of object ids. Used for searching by Ids.


The documentation for this class was generated from the following file:

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)