VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes
DtReflectedPointObject Class Reference

Instances of DtReflectedPointObject represent Point Object simulated by remote applications. More...

+ Inheritance diagram for DtReflectedPointObject:
+ Collaboration diagram for DtReflectedPointObject:

Public Types

typedef DtPointObjectRepository *(* DtStateRepCreator )()
 Function prototype for functions that create DtPointObjectRepositories.

Public Member Functions

 DtReflectedPointObject (DtExerciseConn *conn, const DtEntityIdentifier &id)
 Constructor.
virtual ~DtReflectedPointObject ()
 Destructor.
virtual DtPointObjectRepositorypointObjectStateRep () const
 Get the point object's state repository.
virtual DtPointObjectRepositoryposr () const
 Synonym for pointObjectStateRep().
virtual DtStateRepositorystateRep () const
 Returns a pointer to the StateRepository through which you can inspect current state information.
virtual void processStateMessage (const DtStateMsg &msg)
 Overrides the implementation of the base class.
virtual DtReflectedPointObjectnext () const
 Get the next remote point object.
virtual DtReflectedPointObjectprev () const
 Get the previous remote point object.
virtual DtReflectedPointObjectwrapNext () const
 Get the next remote point object.
virtual DtReflectedPointObjectwrapPrev () const
 Get the previous remote point object.
virtual void addPostUpdateCallback (DtPointObjectCallbackFunction cb, void *usr)
 point object state callback registration/deregistration.
virtual void removePostUpdateCallback (DtPointObjectCallbackFunction cb, void *usr)
virtual const DtBaseHashKeyhashKey () const
 Get a hash key for this object.
virtual DtString idString () const
 Get a string identification of this object.
virtual const
DtGlobalObjectDesignator
globalId () const
 Get the point object entityId.
- Public Member Functions inherited from DtReflectedObject
 DtReflectedObject (DtExerciseConn *conn)
 constructor
virtual ~DtReflectedObject ()
 destructor
virtual DtStateRepositorysr () const
 Synonym for stateRep().
virtual DtTime lastTimeUpdated () const
 Returns the value of wallclock time at the time an update was last received for the entity.
virtual DtTime lastSimTimeUpdated () const
 Returns the value of sim time at the time an update was last received for the entity.
virtual DtTime lastReceivedTimeStamp () const
 Returns the value in seconds past the hour of the timeStamp from the last received PDU.
virtual void baseAddPostUpdateCallback (DtReflectedObjectCallbackFunction cb, void *userData)
 Object state callback registration/deregistration.
virtual void baseRemovePostUpdateCallback (DtReflectedObjectCallbackFunction cb, void *userData)
virtual DtReflectedObjectnextObj () const
 Get the next remote object.
virtual DtReflectedObjectprevObj () const
 Get the previous remote object.
virtual DtReflectedObjectwrapNextObj () const
 Get the next remote object.
virtual DtReflectedObjectwrapPrevObj () const
 Get the previous remote object.
- Public Member Functions inherited from DtListedObj
 DtListedObj ()
 Constructor.
virtual ~DtListedObj ()
 Destructor.

Static Public Member Functions

static void setStateRepCreator (DtStateRepCreator creator)
 Give us a function to be used for creating SRs.
static DtStateRepCreator stateRepCreator ()

Protected Member Functions

 DtReflectedPointObject (const DtReflectedPointObject &)
 Copy constructor - not implemented.
DtReflectedPointObjectoperator= (const DtReflectedPointObject &)
 Assignment operator - not implemented.
- Protected Member Functions inherited from DtReflectedObject
 DtReflectedObject (const DtReflectedObject &orig)
 copy constructor – not implemented
DtReflectedObjectoperator= (const DtReflectedObject &orig)
 assignment operator – not implemented
virtual void processPostUpdateCallbacks ()
 Process the post update callbacks.

Protected Attributes

DtEntityIdentifierHashKey myHashKey
DtString myIdString
DtPointObjectRepositorymyStateRepository
DtPointObjectDecodermyDecoder
- Protected Attributes inherited from DtReflectedObject
DtExerciseConnmyExConn
DtIntrusiveList myStateUpdateCallbacks
DtTime myLastTimeUpdated
DtTime myLastSimTimeUpdated
DtTime myLastReceivedTimeStamp
- Protected Attributes inherited from DtListedObj
DtListmyList
DtListItemmyItem

Static Protected Attributes

static DtStateRepCreator theStateRepCreator

Detailed Description

Instances of DtReflectedPointObject represent Point Object simulated by remote applications.

State data can be viewed through its state repository.

Member Typedef Documentation

typedef DtPointObjectRepository*(* DtReflectedPointObject::DtStateRepCreator)()

Function prototype for functions that create DtPointObjectRepositories.

Constructor & Destructor Documentation

DtReflectedPointObject::DtReflectedPointObject ( DtExerciseConn conn,
const DtEntityIdentifier id 
)

Constructor.

virtual DtReflectedPointObject::~DtReflectedPointObject ( )
virtual

Destructor.

DtReflectedPointObject::DtReflectedPointObject ( const DtReflectedPointObject )
protected

Copy constructor - not implemented.

Member Function Documentation

virtual void DtReflectedPointObject::addPostUpdateCallback ( DtPointObjectCallbackFunction  cb,
void *  usr 
)
virtual

point object state callback registration/deregistration.

virtual const DtGlobalObjectDesignator& DtReflectedPointObject::globalId ( ) const
virtual

Get the point object entityId.

For DIS, it's the same as its DtEntityIdentifier.

Implements DtReflectedObject.

virtual const DtBaseHashKey& DtReflectedPointObject::hashKey ( ) const
inlinevirtual

Get a hash key for this object.

Implements DtReflectedObject.

virtual DtString DtReflectedPointObject::idString ( ) const
inlinevirtual

Get a string identification of this object.

Implements DtReflectedObject.

virtual DtReflectedPointObject* DtReflectedPointObject::next ( ) const
virtual

Get the next remote point object.

Reimplemented from DtListedObj.

DtReflectedPointObject& DtReflectedPointObject::operator= ( const DtReflectedPointObject )
protected

Assignment operator - not implemented.

virtual DtPointObjectRepository* DtReflectedPointObject::pointObjectStateRep ( ) const
inlinevirtual

Get the point object's state repository.

virtual DtPointObjectRepository* DtReflectedPointObject::posr ( ) const
inlinevirtual

Synonym for pointObjectStateRep().

virtual DtReflectedPointObject* DtReflectedPointObject::prev ( ) const
virtual

Get the previous remote point object.

Reimplemented from DtListedObj.

virtual void DtReflectedPointObject::processStateMessage ( const DtStateMsg msg)
virtual

Overrides the implementation of the base class.

Processes a point object PDU.

Reimplemented from DtReflectedObject.

virtual void DtReflectedPointObject::removePostUpdateCallback ( DtPointObjectCallbackFunction  cb,
void *  usr 
)
virtual
static void DtReflectedPointObject::setStateRepCreator ( DtStateRepCreator  creator)
static

Give us a function to be used for creating SRs.

virtual DtStateRepository* DtReflectedPointObject::stateRep ( ) const
inlinevirtual

Returns a pointer to the StateRepository through which you can inspect current state information.

Implementation for abstract base class.

Implements DtReflectedObject.

static DtStateRepCreator DtReflectedPointObject::stateRepCreator ( )
static
virtual DtReflectedPointObject* DtReflectedPointObject::wrapNext ( ) const
virtual

Get the next remote point object.

If at the end, it will cycle back to the first remote point object.

Reimplemented from DtListedObj.

virtual DtReflectedPointObject* DtReflectedPointObject::wrapPrev ( ) const
virtual

Get the previous remote point object.

If at the beginning, it will cycle back to the last remote point object.

Reimplemented from DtListedObj.

Member Data Documentation

DtPointObjectDecoder* DtReflectedPointObject::myDecoder
protected
DtEntityIdentifierHashKey DtReflectedPointObject::myHashKey
protected
DtString DtReflectedPointObject::myIdString
protected
DtPointObjectRepository* DtReflectedPointObject::myStateRepository
protected
DtStateRepCreator DtReflectedPointObject::theStateRepCreator
staticprotected

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

Document ID: Generated on Mon Jun 22 21:18:40 EDT 2020 from SVN revision 213785
Copyright © 2005-2018 MAK Technologies. All Rights Reserved (www.mak.com)