VR-Link API Documentation for DIS
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes
DtIffStateEncoder Class Reference

Instances of DtIffStateEncoder are used to take state information from a DtIffStateRepository and place it into an IFF PDU. More...

+ Inheritance diagram for DtIffStateEncoder:
+ Collaboration diagram for DtIffStateEncoder:

Public Member Functions

 DtIffStateEncoder ()
 Constructor.
virtual ~DtIffStateEncoder ()
 Destructor.
 DtIffStateEncoder (const DtIffStateEncoder &orig)
 Copy constructor.
DtIffStateEncoderoperator= (const DtIffStateEncoder &orig)
 Assignment operator.
virtual DtIffAtcNavaidsPdustateMsg (const DtIffStateRepository &stateRep, const DtIffStateRepository &asSeenByRemote)
 Constructs a PDU from the state repository.
- Public Member Functions inherited from DtStateEncoder
 DtStateEncoder ()
 Default constructor.
virtual ~DtStateEncoder ()
 Destructor.
 DtStateEncoder (const DtStateEncoder &orig)
 Copy constructor.
DtStateEncoderoperator= (const DtStateEncoder &orig)
 Assignment operator.
void setSendNeeded ()
 Sets myForceSendNeeded to true.

Protected Member Functions

virtual bool sendNeeded (const DtIffStateRepository &stateRep, const DtIffStateRepository &asSeenByRemote)
 Returns true if a PDU needs to be sent, (based on thresholds, etc) false otherwise.
virtual void fillOut (const DtIffStateRepository &stateRep, const DtIffStateRepository &asSeenByRemote, DtIffAtcNavaidsPdu *pdu)
 Fill out a state message which reflects a state repository.

Protected Attributes

DtIffAtcNavaidsPdu myAsPdu
- Protected Attributes inherited from DtStateEncoder
bool myForceSendNeeded

Detailed Description

Instances of DtIffStateEncoder are used to take state information from a DtIffStateRepository and place it into an IFF PDU.

Constructor & Destructor Documentation

DtIffStateEncoder::DtIffStateEncoder ( )

Constructor.

virtual DtIffStateEncoder::~DtIffStateEncoder ( )
virtual

Destructor.

DtIffStateEncoder::DtIffStateEncoder ( const DtIffStateEncoder orig)

Copy constructor.

Member Function Documentation

virtual void DtIffStateEncoder::fillOut ( const DtIffStateRepository stateRep,
const DtIffStateRepository asSeenByRemote,
DtIffAtcNavaidsPdu pdu 
)
protectedvirtual

Fill out a state message which reflects a state repository.

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

Assignment operator.

virtual bool DtIffStateEncoder::sendNeeded ( const DtIffStateRepository stateRep,
const DtIffStateRepository asSeenByRemote 
)
protectedvirtual

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

virtual DtIffAtcNavaidsPdu* DtIffStateEncoder::stateMsg ( const DtIffStateRepository stateRep,
const DtIffStateRepository asSeenByRemote 
)
virtual

Constructs a PDU from the state repository.

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

Returns
PDU if send is needed, and NULL if not

Member Data Documentation

DtIffAtcNavaidsPdu DtIffStateEncoder::myAsPdu
protected

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

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)