VR-Link API Documentation for DIS
Public Member Functions | Protected Member Functions | Protected Attributes
DtEntityStateEncoder Class Reference

Instances of DtEntityStateEncoder are used to take state information from a DtEntityStateRepository and place it into an entity state PDU. More...

+ Inheritance diagram for DtEntityStateEncoder:
+ Collaboration diagram for DtEntityStateEncoder:

List of all members.

Public Member Functions

 DtEntityStateEncoder ()
 Constructor.
virtual ~DtEntityStateEncoder ()
 Destructor.
 DtEntityStateEncoder (const DtEntityStateEncoder &orig)
 Copy constructor.
DtEntityStateEncoderoperator= (const DtEntityStateEncoder &orig)
 Assignment operator.
virtual DtEntityStatePdustateMsg (const DtEntityStateRepository &stateRep, const DtEntityStateRepository &asSeenByRemote)
 Constructs a PDU from the state repository.

Protected Member Functions

virtual bool sendNeeded (const DtEntityStateRepository &stateRep, const DtEntityStateRepository &asSeenByRemote)
 Returns true if a PDU needs to be sent, (based on thresholds, etc) false otherwise.
virtual void fillOut (const DtEntityStateRepository &stateRep, const DtEntityStateRepository &asSeenByRemote, DtEntityStatePdu *pdu)
 Copy current ESR data to the pdu.
virtual bool artPartsNeedUpdating (const DtEntityStateRepository &stateRep, const DtEntityStateRepository &asSeenByRemote)
 Returns true if art part info is out of date, false otherwise.
virtual bool attPartsNeedUpdating (const DtEntityStateRepository &stateRep, const DtEntityStateRepository &asSeenByRemote)
 Returns true if art part info is out of date, false otherwise.
virtual void fillOutArtAndAttParts (const DtEntityStateRepository &stateRep, const DtEntityStateRepository &asSeenByRemote, DtEntityStatePdu *pdu)
 Copies current articulated and attached part info from the ESR to the PDU.

Protected Attributes

DtEntityStatePdu myEsPdu

Detailed Description

Instances of DtEntityStateEncoder are used to take state information from a DtEntityStateRepository and place it into an entity state PDU.


Constructor & Destructor Documentation

Constructor.

Destructor.

Copy constructor.


Member Function Documentation

virtual bool DtEntityStateEncoder::artPartsNeedUpdating ( const DtEntityStateRepository stateRep,
const DtEntityStateRepository asSeenByRemote 
) [protected, virtual]

Returns true if art part info is out of date, false otherwise.

virtual bool DtEntityStateEncoder::attPartsNeedUpdating ( const DtEntityStateRepository stateRep,
const DtEntityStateRepository asSeenByRemote 
) [protected, virtual]

Returns true if art part info is out of date, false otherwise.

virtual void DtEntityStateEncoder::fillOut ( const DtEntityStateRepository stateRep,
const DtEntityStateRepository asSeenByRemote,
DtEntityStatePdu pdu 
) [protected, virtual]

Copy current ESR data to the pdu.

virtual void DtEntityStateEncoder::fillOutArtAndAttParts ( const DtEntityStateRepository stateRep,
const DtEntityStateRepository asSeenByRemote,
DtEntityStatePdu pdu 
) [protected, virtual]

Copies current articulated and attached part info from the ESR to the PDU.

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

Assignment operator.

virtual bool DtEntityStateEncoder::sendNeeded ( const DtEntityStateRepository stateRep,
const DtEntityStateRepository asSeenByRemote 
) [protected, virtual]

Returns true if a PDU needs to be sent, (based on thresholds, etc) false otherwise.

virtual DtEntityStatePdu* DtEntityStateEncoder::stateMsg ( const DtEntityStateRepository stateRep,
const DtEntityStateRepository asSeenByRemote 
) [virtual]

Constructs a PDU from the state repository.

stateMsg determines whether an Entity State PDU needs to be sent and constructs one of it does.

Returns:
PDU if send is needed, and NULL if not

Member Data Documentation


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

Document ID: Generated on Mon May 14 08:06:18 EDT 2012 from SVN revision 114750
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)