VR-Forces 4.1.1 Class Documentation
List of all members | 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]

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.
- Public Member Functions inherited from DtSimInterfaceContent
virtual ~DtSimInterfaceContent ()
virtual bool update (const DtSimInterfaceContent *data)
virtual char * netRep ()
virtual void printDataToString (DtString &str)
virtual void setUseSessionId (bool yesNo)
virtual bool useSessionId () const

Static Public Member Functions

static DtSimInterfaceContentcreator ()
 Creator function. Returns new instance of this class.
- Static Public Member Functions inherited from DtSimInterfaceContent
static DtSimInterfaceContentcreateInterfaceContent (int type)
static void addInterfaceContentCreatorFcn (int type, DtInterfaceContentCreatorFcn fcn)
static void setFactory (DtInterfaceContentFactory *factory)
static DtInterfaceContentFactoryfactory ()

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 DtSimInterfaceContentoperator= (const DtSimInterfaceContent &orig)
virtual char * createNetworkBuffer ()
- Static Protected Attributes inherited from DtSimInterfaceContent
static DtInterfaceContentFactorymyFactory

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

DtIfObjectIndexMessage::DtIfObjectIndexMessage ( )

default constructor

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

constructor

DtIfObjectIndexMessage::DtIfObjectIndexMessage ( const DtIfObjectIndexMessage orig)

copy constructor

virtual DtIfObjectIndexMessage::~DtIfObjectIndexMessage ( )
virtual

destructor

Member Function Documentation

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

assignment operator; same as copy costructor.

static DtSimInterfaceContent* DtIfObjectIndexMessage::creator ( )
static

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
virtual DtSimInterfaceContent* DtIfObjectIndexMessage::clone ( ) 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

DtString DtIfObjectIndexMessage::mySimAddress
protected

Sim address of this sim engine.

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

DtNameToObjectIdMap DtIfObjectIndexMessage::myObjectNames
protected

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

DtStringSet DtIfObjectIndexMessage::myObjectIds
protected

Set of object ids. Used for searching by Ids.


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

Document ID: Generated on Mon Apr 8 19:24:01 EDT 2013 from SVN revision 125877
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)