VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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 | Private Member Functions
DtReflectedSearchLight Class Reference

Instances of DtReflectedSearchLight are used to represent a simulated HLAobjectRoot.EmbeddedSystem.AimableSystem.SearchLight object reflected across a network.

Inheritance diagram for DtReflectedSearchLight:
Inheritance graph
[legend]

Public Types

typedef
DtSearchLightStateRepository *(* 
DtStateRepCreator )()
 
typedef
DtSearchLightStateRepository *(* 
DtStateRepCreator )()
 

Public Member Functions

 DtReflectedSearchLight (DtExerciseConn *conn, const DtEntityIdentifier &id)
 
virtual ~DtReflectedSearchLight () override
 
virtual
DtSearchLightStateRepository * 
searchLightStateRep () const
 
virtual
DtSearchLightStateRepository * 
slsr () const
 
virtual DtStateRepository * stateRep () const override
 
virtual DtSearchLightDecoder * decoder ()
 
virtual const DtObjectId & id () const
 
virtual const
DtGlobalObjectDesignator & 
globalId () const override
 
virtual DtReflectedSearchLight * next () const
 
virtual DtReflectedSearchLight * prev () const
 
virtual DtReflectedSearchLight * wrapNext () const
 
virtual DtReflectedSearchLight * wrapPrev () const
 
virtual void addPostUpdateCallback (DtSearchLightCallbackFunction cb, void *userData)
 
virtual void removePostUpdateCallback (DtSearchLightCallbackFunction cb, void *userData)
 
virtual void setHashKey (const DtString &uniqueVal)
 
virtual const DtBaseHashKey & hashKey () const override
 
virtual DtString idString () const override
 
virtual void processStateMessage (const DtStateMsg &msg) override
 
virtual void processSearchLightState (const DtAimableSystemPdu &pdu)
 
 DtReflectedSearchLight (DtHlaObject *obj, DtExerciseConn *exConn)
 
virtual ~DtReflectedSearchLight () override
 
virtual
DtSearchLightStateRepository * 
searchLightStateRep () const
 
virtual
DtSearchLightStateRepository * 
slsr () const
 
virtual DtReflectedSearchLight * next () const
 
virtual DtReflectedSearchLight * prev () const
 
virtual DtReflectedSearchLight * wrapNext () const
 
virtual DtReflectedSearchLight * wrapPrev () const
 
virtual void addPostUpdateCallback (DtSearchLightCallbackFunction cb, void *userData)
 
virtual void removePostUpdateCallback (DtSearchLightCallbackFunction cb, void *userData)
 

Static Public Member Functions

static void setStateRepCreator (DtStateRepCreator creator)
 
static DtStateRepCreator stateRepCreator (void)
 
static DtStateRepCreator setStateRepCreator (DtStateRepCreator creator)
 

Protected Member Functions

 DtReflectedSearchLight (const DtReflectedSearchLight &orig)
 
DtReflectedSearchLight & operator= (const DtReflectedSearchLight &orig)
 

Protected Attributes

DtStringHashKey myHashKey
 
DtEntityIdentifier myId
 
DtSearchLightStateRepository * myStateRep
 
DtSearchLightDecoder * myDecoder
 

Static Protected Attributes

static DtStateRepCreator theStateRepCreator
 

Private Member Functions

 DtReflectedSearchLight (const DtReflectedSearchLight &orig)
 
DtReflectedSearchLight & operator= (const DtReflectedSearchLight &orig)
 

Member Typedef Documentation

typedef DtSearchLightStateRepository*(* DtReflectedSearchLight::DtStateRepCreator)()

Function prototype for functions that create DtSearchLightStateRepository.

typedef DtSearchLightStateRepository*(* DtReflectedSearchLight::DtStateRepCreator)()

Function prototype for functions that create a DtSearchLightStateRepository.

Constructor & Destructor Documentation

DtReflectedSearchLight::DtReflectedSearchLight ( DtExerciseConn *  conn,
const DtEntityIdentifier &  id 
)

Constructor.

virtual DtReflectedSearchLight::~DtReflectedSearchLight ( )
overridevirtual

Destructor.

DtReflectedSearchLight::DtReflectedSearchLight ( const DtReflectedSearchLight &  orig)
private

copy constructor – not implemented

DtReflectedSearchLight::DtReflectedSearchLight ( DtHlaObject *  obj,
DtExerciseConn *  exConn 
)

Constructor.

virtual DtReflectedSearchLight::~DtReflectedSearchLight ( )
overridevirtual

Destructor.

DtReflectedSearchLight::DtReflectedSearchLight ( const DtReflectedSearchLight &  orig)
protected

Copy Constructor not implemented.

Member Function Documentation

DtReflectedSearchLight& DtReflectedSearchLight::operator= ( const DtReflectedSearchLight &  orig)
private

assignment operator – not implemented

DtSearchLightStateRepository * DtReflectedSearchLight::searchLightStateRep ( ) const
inlinevirtual

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

References myStateRep.

Referenced by slsr().

DtSearchLightStateRepository * DtReflectedSearchLight::slsr ( ) const
inlinevirtual

Synonym for searchLightStateRep().

References searchLightStateRep().

virtual DtStateRepository* DtReflectedSearchLight::stateRep ( ) const
overridevirtual

Returns a pointer to the StateRepository - through which you can inspect current state information. Implementation for abstract base class. Calls asr().

virtual DtSearchLightDecoder* DtReflectedSearchLight::decoder ( )
virtual

Returns a pointer to the Decoder being used to decode state messages into our SR.

virtual const DtObjectId& DtReflectedSearchLight::id ( ) const
virtual

Get the objects's id. (For DIS, DtObjectId is DtEntityIdentifier).

virtual const DtGlobalObjectDesignator& DtReflectedSearchLight::globalId ( ) const
overridevirtual

Get the objects's global object designator - for DIS, it's the same as its DtEntityIdentifier.

virtual DtReflectedSearchLight* DtReflectedSearchLight::next ( ) const
virtual

Get the next and previous elements in the reflected aggregate list.

virtual DtReflectedSearchLight* DtReflectedSearchLight::prev ( ) const
virtual
virtual DtReflectedSearchLight* DtReflectedSearchLight::wrapNext ( ) const
virtual

Get the next and previous elements, wrap at the ends of the list.

virtual DtReflectedSearchLight* DtReflectedSearchLight::wrapPrev ( ) const
virtual
virtual void DtReflectedSearchLight::addPostUpdateCallback ( DtSearchLightCallbackFunction  cb,
void *  userData 
)
virtual

Entity state callback registration/deregistration.

virtual void DtReflectedSearchLight::removePostUpdateCallback ( DtSearchLightCallbackFunction  cb,
void *  userData 
)
virtual
virtual void DtReflectedSearchLight::setHashKey ( const DtString &  uniqueVal)
virtual

Sets the hash key from a unique string value.

virtual const DtBaseHashKey& DtReflectedSearchLight::hashKey ( ) const
overridevirtual

Get a hash key for this object - Key must be set before use.

virtual DtString DtReflectedSearchLight::idString ( ) const
overridevirtual

Get a string identification of this object.

virtual void DtReflectedSearchLight::processStateMessage ( const DtStateMsg &  msg)
overridevirtual

Implementation for abstract base class.

virtual void DtReflectedSearchLight::processSearchLightState ( const DtAimableSystemPdu &  pdu)
virtual

Process an state PDU. Also calls down to base class processStateMessage().

static void DtReflectedSearchLight::setStateRepCreator ( DtStateRepCreator  creator)
static

Give us a function to be used for creating SRs.

static DtStateRepCreator DtReflectedSearchLight::stateRepCreator ( void  )
static
virtual DtSearchLightStateRepository* DtReflectedSearchLight::searchLightStateRep ( ) const
virtual

Returns the SearchLight's state repository.

virtual DtSearchLightStateRepository* DtReflectedSearchLight::slsr ( ) const
virtual

Shorter version of searchLightStateRep.

virtual DtReflectedSearchLight* DtReflectedSearchLight::next ( ) const
virtual

Returns the next reflected SearchLight in the DtReflectedSearchLightList.

virtual DtReflectedSearchLight* DtReflectedSearchLight::prev ( ) const
virtual

Returns the previous reflected SearchLight in the DtReflectedSearchLightList.

virtual DtReflectedSearchLight* DtReflectedSearchLight::wrapNext ( ) const
virtual

Returns the next reflected SearchLight. Will cycle back to the first remote SearchLight in the DtReflectedSearchLightList.

virtual DtReflectedSearchLight* DtReflectedSearchLight::wrapPrev ( ) const
virtual

Returns the previous reflected SearchLight. Will cycle back to the first remote SearchLight in the DtReflectedSearchLightList.

virtual void DtReflectedSearchLight::addPostUpdateCallback ( DtSearchLightCallbackFunction  cb,
void *  userData 
)
virtual

Add a callback that is called when the DtReflectedSearchLight is updated.

virtual void DtReflectedSearchLight::removePostUpdateCallback ( DtSearchLightCallbackFunction  cb,
void *  userData 
)
virtual

Remove the callback that is called when the DtReflectedSearchLight is updated.

static DtStateRepCreator DtReflectedSearchLight::setStateRepCreator ( DtStateRepCreator  creator)
static

Set the function to be called for creating state repositories.

DtReflectedSearchLight& DtReflectedSearchLight::operator= ( const DtReflectedSearchLight &  orig)
protected

Assignment operator not implemented.

Member Data Documentation

static DtStateRepCreator DtReflectedSearchLight::theStateRepCreator
staticprotected

The function called to create state repositories.

DtStringHashKey DtReflectedSearchLight::myHashKey
protected
DtEntityIdentifier DtReflectedSearchLight::myId
protected
DtSearchLightStateRepository* DtReflectedSearchLight::myStateRep
protected

Referenced by searchLightStateRep().

DtSearchLightDecoder* DtReflectedSearchLight::myDecoder
protected

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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)