![]() |
VR-Link API Documentation for DIS
|
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. | |
| virtual | ~DtAggregateStateEncoder () |
| Destructor. | |
| DtAggregateStateEncoder (const DtAggregateStateEncoder &orig) | |
| Copy constructor. | |
| DtAggregateStateEncoder & | operator= (const DtAggregateStateEncoder &orig) |
| Assignment operator. | |
| virtual DtAggregateStatePdu * | stateMsg (const DtAggregateStateRepository &stateRep, const DtAggregateStateRepository &asSeenByRemote) |
| Constructs a PDU from the state repository. | |
| DtCLONE_ENCODER (DtAggregateStateEncoder) | |
Public Member Functions inherited from DtStateEncoder | |
| DtStateEncoder () | |
| Default constructor. | |
| virtual | ~DtStateEncoder () |
| Destructor. | |
| DtStateEncoder (const DtStateEncoder &orig) | |
| Copy constructor. | |
| DtStateEncoder & | operator= (const DtStateEncoder &orig) |
| Assignment operator. | |
| void | setSendNeeded () |
| Sets myForceSendNeeded to true. | |
| virtual DtPduEncoder * | clone () const =0 |
| clone. | |
| virtual void | encode (DtPdu *pdu) |
| This is a dummy method for backwards compatibility with DIS encoders. | |
| 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. | |
| virtual bool | sendNeededAttributeRecords (const DtStateRepository &stateRep, const DtStateRepository &asSeenByRemote) const |
| In order to modify records in place, and have them sent, we need to compare the stateRep with the As seen by remote. | |
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. | |
| virtual void | fillOut (const DtAggregateStateRepository &stateRep, const DtAggregateStateRepository &asSeenByRemote, DtAggregateStatePdu *pdu) |
| Fill out a state message which reflects a state repository. | |
Protected Attributes | |
| DtAggregateStatePdu | myAsPdu |
Protected Attributes inherited from DtStateEncoder | |
| bool | myForceSendNeeded |
Instances of DtAggregateStateEncoder are used to take state information from an aggregate state repository and place it into an aggregate state PDU.
| DtAggregateStateEncoder::DtAggregateStateEncoder | ( | ) |
Constructor.
|
virtual |
Destructor.
| DtAggregateStateEncoder::DtAggregateStateEncoder | ( | const DtAggregateStateEncoder & | orig | ) |
Copy constructor.
| DtAggregateStateEncoder::DtCLONE_ENCODER | ( | DtAggregateStateEncoder | ) |
|
protectedvirtual |
Fill out a state message which reflects a state repository.
| DtAggregateStateEncoder& DtAggregateStateEncoder::operator= | ( | const DtAggregateStateEncoder & | orig | ) |
Assignment operator.
|
protectedvirtual |
Determine if a state message needs to be sent.
|
virtual |
Constructs a PDU from the state repository.
stateMsg determines whether an Aggregate PDU needs to be sent and constructs one of it does.
|
protected |