![]() |
VR-Link API Documentation for DIS
|
Instances of DtRadioReceiverEncoder are used to take state information from a DtRadioReceiverRepository and place it into a radio receiver PDU. More...
Inheritance diagram for DtRadioReceiverEncoder:
Collaboration diagram for DtRadioReceiverEncoder:Public Member Functions | |
| DtRadioReceiverEncoder () | |
| Constructor. | |
| virtual | ~DtRadioReceiverEncoder () |
| Destructor. | |
| DtRadioReceiverEncoder (const DtRadioReceiverEncoder &orig) | |
| Copy constructor. | |
| DtRadioReceiverEncoder & | operator= (const DtRadioReceiverEncoder &orig) |
| Assignment operator. | |
| virtual DtReceiverPdu * | stateMsg (const DtRadioReceiverRepository &stateRep, const DtRadioReceiverRepository &asSeenByRemote) |
| Constructs a PDU from the state repository. | |
| DtCLONE_ENCODER (DtRadioReceiverEncoder) | |
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. | |
Protected Member Functions | |
| virtual bool | sendNeeded (const DtRadioReceiverRepository &stateRep, const DtRadioReceiverRepository &asSeenByRemote) |
| Returns true if a PDU needs to be sent, (based on thresholds, etc) false otherwise. | |
Protected Attributes | |
| DtReceiverPdu | myPdu |
Protected Attributes inherited from DtStateEncoder | |
| bool | myForceSendNeeded |
Instances of DtRadioReceiverEncoder are used to take state information from a DtRadioReceiverRepository and place it into a radio receiver PDU.
| DtRadioReceiverEncoder::DtRadioReceiverEncoder | ( | ) |
Constructor.
|
virtual |
Destructor.
| DtRadioReceiverEncoder::DtRadioReceiverEncoder | ( | const DtRadioReceiverEncoder & | orig | ) |
Copy constructor.
| DtRadioReceiverEncoder::DtCLONE_ENCODER | ( | DtRadioReceiverEncoder | ) |
| DtRadioReceiverEncoder& DtRadioReceiverEncoder::operator= | ( | const DtRadioReceiverEncoder & | orig | ) |
Assignment operator.
|
protectedvirtual |
Returns true if a PDU needs to be sent, (based on thresholds, etc) false otherwise.
|
virtual |
Constructs a PDU from the state repository.
stateMsg determines whether a Receiver PDU needs to be sent and constructs one of it does.
|
protected |