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
DtRunwayEncoder Class Reference

Instances of DtRunwayEncoder encode data from DtAerodromeStateRepository objects to the net structures to be sent to the network. More...

+ Inheritance diagram for DtRunwayEncoder:
+ Collaboration diagram for DtRunwayEncoder:

Public Member Functions

 DtRunwayEncoder ()
 Default constructor. More...
 
virtual ~DtRunwayEncoder ()
 Destructor. More...
 
 DtRunwayEncoder (const DtRunwayEncoder &orig)
 Copy constructor. More...
 
DtRunwayEncoderoperator= (const DtRunwayEncoder &orig)
 Assignment operator. More...
 
virtual DtRunwayPdustateMsg (const DtRunwayStateRepository &stateRep, const DtRunwayStateRepository &asSeenByRemote)
 Constructs a PDU from the state repository. More...
 
virtual void setFinalPdu ()
 Sets the Final PDU status bit to indicate this is the last PDU for this object. More...
 
- Public Member Functions inherited from DtStateEncoder
 DtStateEncoder ()
 Default constructor. More...
 
virtual ~DtStateEncoder ()
 Destructor. More...
 
 DtStateEncoder (const DtStateEncoder &orig)
 Copy constructor. More...
 
DtStateEncoderoperator= (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 DtPduEncoderclone () 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 DtRunwayStateRepository &stateRep, const DtRunwayStateRepository &asSeenByRemote)
 
virtual void fillOut (const DtRunwayStateRepository &stateRep, const DtRunwayStateRepository &asSeenByRemote, DtRunwayPdu *pdu)
 

Protected Attributes

DtRunwayPdu myPdu
 
- Protected Attributes inherited from DtStateEncoder
bool myForceSendNeeded
 
DtU32 myChangedState
 

Detailed Description

Instances of DtRunwayEncoder encode data from DtAerodromeStateRepository objects to the net structures to be sent to the network.

Constructor & Destructor Documentation

DtRunwayEncoder::DtRunwayEncoder ( )

Default constructor.

virtual DtRunwayEncoder::~DtRunwayEncoder ( )
virtual

Destructor.

DtRunwayEncoder::DtRunwayEncoder ( const DtRunwayEncoder orig)

Copy constructor.

Member Function Documentation

virtual void DtRunwayEncoder::fillOut ( const DtRunwayStateRepository stateRep,
const DtRunwayStateRepository asSeenByRemote,
DtRunwayPdu pdu 
)
protectedvirtual
DtRunwayEncoder& DtRunwayEncoder::operator= ( const DtRunwayEncoder orig)

Assignment operator.

virtual bool DtRunwayEncoder::sendNeeded ( const DtRunwayStateRepository stateRep,
const DtRunwayStateRepository asSeenByRemote 
)
protectedvirtual
virtual void DtRunwayEncoder::setFinalPdu ( )
virtual

Sets the Final PDU status bit to indicate this is the last PDU for this object.

virtual DtRunwayPdu* DtRunwayEncoder::stateMsg ( const DtRunwayStateRepository stateRep,
const DtRunwayStateRepository asSeenByRemote 
)
virtual

Constructs a PDU from the state repository.

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

Returns
PDU if send is needed, and NULL if not

Member Data Documentation

DtRunwayPdu DtRunwayEncoder::myPdu
protected

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

Document ID: Generated on Wed Mar 27 02:04:30 EDT 2024 from SVN revision 264570
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)