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

Instances of DtAggregateStateEncoder are used to take state information from an aggregate state repository and place it into an aggregate state PDU. More...

+ Inheritance diagram for DtAggregateStateEncoder:
+ Collaboration diagram for DtAggregateStateEncoder:

Public Member Functions

 DtAggregateStateEncoder ()
 Constructor. More...
 
virtual ~DtAggregateStateEncoder ()
 Destructor. More...
 
 DtAggregateStateEncoder (const DtAggregateStateEncoder &orig)
 Copy constructor. More...
 
DtAggregateStateEncoder & operator= (const DtAggregateStateEncoder &orig)
 Assignment operator. More...
 
virtual DtAggregateStatePdu * stateMsg (const DtAggregateStateRepository &stateRep, const DtAggregateStateRepository &asSeenByRemote)
 Constructs a PDU from the state repository. More...
 
 DtCLONE_ENCODER (DtAggregateStateEncoder)
 
- Public Member Functions inherited from DtStateEncoder
 DtStateEncoder ()
 Default constructor. More...
 
virtual ~DtStateEncoder ()
 Destructor. More...
 
 DtStateEncoder (const DtStateEncoder &orig)
 Copy constructor. More...
 
DtStateEncoder & operator= (const DtStateEncoder &orig)
 Assignment operator. More...
 
virtual void setSendNeeded ()
 Sets myForceSendNeeded to true. More...
 
virtual DtU32 changedState () const
 
virtual void clearChangedState ()
 
virtual bool isChangedStateBit (DtU32 st) const
 
virtual void resetChangedStateBit (DtU32 st)
 
virtual void setChangedStateBit (DtU32 st)
 
virtual DtPduEncoder * clone () const =0
 clone. More...
 
virtual void encode (DtPdu *pdu)
 This is a dummy method for backwards compatibility with DIS encoders. More...
 
virtual void fillOutAttributeRecords (const DtStateRepository &stateRep, DtPduWithAttributeRecordSets *pdu, const DtEntityIdentifier &id, bool clearBeforeAdding=true)
 DIS 7 requires filling the Attribute Records for a coupled Attribute PDU. More...
 
virtual bool sendNeededAttributeRecords (const DtStateRepository &stateRep, const DtStateRepository &asSeenByRemote)
 In order to modify records in place, and have them sent, we need to compare the stateRep with the As seen by remote. More...
 
- Public Member Functions inherited from DtPduEncoder
virtual ~DtPduEncoder ()
 

Protected Member Functions

virtual bool sendNeeded (const DtAggregateStateRepository &stateRep, const DtAggregateStateRepository &asSeenByRemote)
 Determine if a state message needs to be sent. More...
 
virtual bool netnNeedsUpdating (const DtAggregateStateRepository &stateRep, const DtAggregateStateRepository &asSeenByRemote)
 Determine if NETN aggregate attributes need to be sent. More...
 
virtual void fillOut (const DtAggregateStateRepository &stateRep, const DtAggregateStateRepository &asSeenByRemote, DtAggregateStatePdu *pdu)
 Fill out a state message which reflects a state repository. More...
 
virtual void fillOutNetnAttributes (const DtAggregateStateRepository &stateRep, const DtAggregateStateRepository &asSeenByRemote)
 Filling out the attribute records with NETN values. More...
 

Protected Attributes

DtAggregateStatePdu myAsPdu
 
bool myFilloutNetnAttributeRecords
 
- Protected Attributes inherited from DtStateEncoder
bool myForceSendNeeded
 
DtU32 myChangedState
 

Detailed Description

Instances of DtAggregateStateEncoder are used to take state information from an aggregate state repository and place it into an aggregate state PDU.

Constructor & Destructor Documentation

DtAggregateStateEncoder::DtAggregateStateEncoder ( )

Constructor.

virtual DtAggregateStateEncoder::~DtAggregateStateEncoder ( )
virtual

Destructor.

DtAggregateStateEncoder::DtAggregateStateEncoder ( const DtAggregateStateEncoder &  orig)

Copy constructor.

Member Function Documentation

DtAggregateStateEncoder::DtCLONE_ENCODER ( DtAggregateStateEncoder  )
virtual void DtAggregateStateEncoder::fillOut ( const DtAggregateStateRepository &  stateRep,
const DtAggregateStateRepository &  asSeenByRemote,
DtAggregateStatePdu *  pdu 
)
protectedvirtual

Fill out a state message which reflects a state repository.

virtual void DtAggregateStateEncoder::fillOutNetnAttributes ( const DtAggregateStateRepository &  stateRep,
const DtAggregateStateRepository &  asSeenByRemote 
)
protectedvirtual

Filling out the attribute records with NETN values.

virtual bool DtAggregateStateEncoder::netnNeedsUpdating ( const DtAggregateStateRepository &  stateRep,
const DtAggregateStateRepository &  asSeenByRemote 
)
protectedvirtual

Determine if NETN aggregate attributes need to be sent.

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

Assignment operator.

virtual bool DtAggregateStateEncoder::sendNeeded ( const DtAggregateStateRepository &  stateRep,
const DtAggregateStateRepository &  asSeenByRemote 
)
protectedvirtual

Determine if a state message needs to be sent.

virtual DtAggregateStatePdu* DtAggregateStateEncoder::stateMsg ( const DtAggregateStateRepository &  stateRep,
const DtAggregateStateRepository &  asSeenByRemote 
)
virtual

Constructs a PDU from the state repository.

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

Returns
PDU if send is needed, and NULL if not

Member Data Documentation

DtAggregateStatePdu DtAggregateStateEncoder::myAsPdu
protected
bool DtAggregateStateEncoder::myFilloutNetnAttributeRecords
protected

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

Document ID: Generated on Mon Sep 28 00:09:32 EDT 2026 from SVN revision 295353
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)