![]() |
VR-Link API Documentation for DIS
|
Instances of DtIffAtcNavaidsPdu are used to send information about simulated radio transponders and interrogators. More...
Inheritance diagram for DtIffAtcNavaidsPdu:
Collaboration diagram for DtIffAtcNavaidsPdu:Public Member Functions | |
| DtIffAtcNavaidsPdu (DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| Constructors. | |
| DtIffAtcNavaidsPdu (const DtNetIffAtcNavaidsPduLayer1 *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) | |
| DtIffAtcNavaidsPdu (const DtIffAtcNavaidsPdu &orig) | |
| virtual | ~DtIffAtcNavaidsPdu () |
| destructor | |
| DtIffAtcNavaidsPdu & | operator= (const DtIffAtcNavaidsPdu &orig) |
| Assignment operator. | |
| virtual void | setEmittingEntityID (const DtEntityIdentifier &entity) |
| Set/Get emitting entity identifier. | |
| virtual const DtEntityIdentifier & | emittingEntityID () const |
| virtual void | setEventID (const DtEventID &event) |
| Set/Get event identifier. | |
| virtual const DtEventID & | eventID () const |
| virtual void | setLocation (const DtVector &coords) |
| Set/Get location. | |
| virtual const DtVector & | location () const |
| virtual void | setSystemID (const DtIffAtcNavaidsSystemID &id) |
| Set/Get system ID. | |
| virtual const DtIffAtcNavaidsSystemID & | systemID () const |
| virtual void | setOperational (const DtIffAtcNavaidsOperational &oper) |
| Set/Get fundamental operational data. | |
| virtual const DtIffAtcNavaidsOperational & | operational () const |
| virtual bool | layerPresent (int layer) const |
| Query the layers field of the fundamental operational data record. | |
| virtual bool | enableLayer2 (DtU8 layerSpecificInfo, int numRecords) |
| Enable/Disable layer 2. | |
| virtual bool | disableLayer2 () |
| virtual const DtIffAtcNavaidsLayerHeader & | layer2Header () const |
| Note: the following accessor functions are for records in layer 2. | |
| virtual void | setBeamData (const DtIffAtcNavaidsBeamData &beamData) |
| Set/Get beam data. | |
| virtual const DtIffAtcNavaidsBeamData & | beamData () const |
| virtual void | setSecondaryOperational (const DtIffAtcNavaidsSecondOperational &oper) |
| Set/Get secondary operational parameters. | |
| virtual const DtIffAtcNavaidsSecondOperational & | secondaryOperational () const |
| virtual DtU16 | numParameterSets () const |
| Get the number of fundamental parameter data records from the secondary operational parameters record. | |
| virtual bool | setParmData (int parmIndex, const DtIffAtcNavaidsParameter &init) |
| Set/Get the fundamental parameter data records for the second layer. | |
| virtual bool | getParmData (int parmIndex, DtIffAtcNavaidsParameter &record) const |
| virtual void | printData () const |
| Print the data contained by this PDU. | |
| virtual void | printDataToStream (std::ostream &stream) const |
| Print the data to a stream. | |
Static Public Member Functions | |
| static DtPdu * | create (const DtNetPacket *initial, DtBufferPtr buffer=DtUSE_INTERNAL_BUFFER) |
| Create a DtIffAtcNavaidsPdu. | |
| static void | addCallback (DtExerciseConn *conn, DtIffAtcNavaidsPduCb cb, void *usr) |
| Add (register)/Remove (deregister) function to be called when pdu is received. | |
| static void | removeCallback (DtExerciseConn *conn, DtIffAtcNavaidsPduCb cb, void *usr) |
Protected Member Functions | |
| virtual DtPduKind | internalGetPduKind () const |
| Returns the internal PDU kind. | |
| virtual DtNetIffAtcNavaidsPduLayer1 * | netPduStruct () const |
| Casts the netPdu element to our network struct. | |
| virtual DtNetIffAtcNavaidsPduLayer2 * | netPduStructL2 () const |
| Casts the netPdu element to our network struct. | |
| DtIffAtcNavaidsPdu * | self () const |
| Casts the 'this' pointer for changing elements in a const function. | |
| virtual DtNetIffAtcNavaidsParameter * | parameter () const |
| Returns a pointer to the first parameter record (after static data). | |
Protected Attributes | |
| DtEntityIdentifier | myEntityID |
| Temporary objects for reference returns. | |
| DtEventID | myEventID |
| DtVector | myEntCoords |
| DtIffAtcNavaidsSystemID | mySystemID |
| DtIffAtcNavaidsOperational | myOperational |
| DtIffAtcNavaidsLayerHeader | myLayerHeader |
| DtIffAtcNavaidsBeamData | myBeamData |
| DtIffAtcNavaidsSecondOperational | mySecondOperational |
| DtIffAtcNavaidsParameter | myParameter |
Static Protected Attributes | |
| static const int | theStaticSize |
| Size of PDU with zero parameter records. | |
Instances of DtIffAtcNavaidsPdu are used to send information about simulated radio transponders and interrogators.
Constructors.
| DtIffAtcNavaidsPdu::DtIffAtcNavaidsPdu | ( | const DtNetIffAtcNavaidsPduLayer1 * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) |
| DtIffAtcNavaidsPdu::DtIffAtcNavaidsPdu | ( | const DtIffAtcNavaidsPdu & | orig | ) |
| virtual DtIffAtcNavaidsPdu::~DtIffAtcNavaidsPdu | ( | ) | [virtual] |
destructor
| static void DtIffAtcNavaidsPdu::addCallback | ( | DtExerciseConn * | conn, |
| DtIffAtcNavaidsPduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
Add (register)/Remove (deregister) function to be called when pdu is received.
| virtual const DtIffAtcNavaidsBeamData& DtIffAtcNavaidsPdu::beamData | ( | ) | const [virtual] |
| static DtPdu* DtIffAtcNavaidsPdu::create | ( | const DtNetPacket * | initial, |
| DtBufferPtr | buffer = DtUSE_INTERNAL_BUFFER |
||
| ) | [static] |
Create a DtIffAtcNavaidsPdu.
Caller is responsible for deletion.
| virtual bool DtIffAtcNavaidsPdu::disableLayer2 | ( | ) | [virtual] |
| virtual const DtEntityIdentifier& DtIffAtcNavaidsPdu::emittingEntityID | ( | ) | const [virtual] |
| virtual bool DtIffAtcNavaidsPdu::enableLayer2 | ( | DtU8 | layerSpecificInfo, |
| int | numRecords | ||
| ) | [virtual] |
Enable/Disable layer 2.
This method is also used to select the number of fundamental parameter data records for the second layer.
| virtual const DtEventID& DtIffAtcNavaidsPdu::eventID | ( | ) | const [virtual] |
| virtual bool DtIffAtcNavaidsPdu::getParmData | ( | int | parmIndex, |
| DtIffAtcNavaidsParameter & | record | ||
| ) | const [virtual] |
| virtual DtPduKind DtIffAtcNavaidsPdu::internalGetPduKind | ( | ) | const [protected, virtual] |
Returns the internal PDU kind.
Implements DtPdu.
| virtual const DtIffAtcNavaidsLayerHeader& DtIffAtcNavaidsPdu::layer2Header | ( | ) | const [virtual] |
Note: the following accessor functions are for records in layer 2.
If layer 2 is not enabled, the sets will do nothing and the gets will return undefined results. Get layer header for layer 2. This record is set automatically by the PDU class.
| virtual bool DtIffAtcNavaidsPdu::layerPresent | ( | int | layer | ) | const [virtual] |
Query the layers field of the fundamental operational data record.
| virtual const DtVector& DtIffAtcNavaidsPdu::location | ( | ) | const [virtual] |
| virtual DtNetIffAtcNavaidsPduLayer1* DtIffAtcNavaidsPdu::netPduStruct | ( | ) | const [protected, virtual] |
Casts the netPdu element to our network struct.
| virtual DtNetIffAtcNavaidsPduLayer2* DtIffAtcNavaidsPdu::netPduStructL2 | ( | ) | const [protected, virtual] |
Casts the netPdu element to our network struct.
| virtual DtU16 DtIffAtcNavaidsPdu::numParameterSets | ( | ) | const [virtual] |
Get the number of fundamental parameter data records from the secondary operational parameters record.
| virtual const DtIffAtcNavaidsOperational& DtIffAtcNavaidsPdu::operational | ( | ) | const [virtual] |
| DtIffAtcNavaidsPdu& DtIffAtcNavaidsPdu::operator= | ( | const DtIffAtcNavaidsPdu & | orig | ) |
Assignment operator.
| virtual DtNetIffAtcNavaidsParameter* DtIffAtcNavaidsPdu::parameter | ( | ) | const [protected, virtual] |
Returns a pointer to the first parameter record (after static data).
| virtual void DtIffAtcNavaidsPdu::printData | ( | ) | const [virtual] |
Print the data contained by this PDU.
Reimplemented from DtPdu.
| virtual void DtIffAtcNavaidsPdu::printDataToStream | ( | std::ostream & | stream | ) | const [virtual] |
Print the data to a stream.
Reimplemented from DtPdu.
| static void DtIffAtcNavaidsPdu::removeCallback | ( | DtExerciseConn * | conn, |
| DtIffAtcNavaidsPduCb | cb, | ||
| void * | usr | ||
| ) | [static] |
| virtual const DtIffAtcNavaidsSecondOperational& DtIffAtcNavaidsPdu::secondaryOperational | ( | ) | const [virtual] |
| DtIffAtcNavaidsPdu* DtIffAtcNavaidsPdu::self | ( | ) | const [protected] |
Casts the 'this' pointer for changing elements in a const function.
Non virtual, since you can't override based on return type.
| virtual void DtIffAtcNavaidsPdu::setBeamData | ( | const DtIffAtcNavaidsBeamData & | beamData | ) | [virtual] |
Set/Get beam data.
| virtual void DtIffAtcNavaidsPdu::setEmittingEntityID | ( | const DtEntityIdentifier & | entity | ) | [virtual] |
Set/Get emitting entity identifier.
| virtual void DtIffAtcNavaidsPdu::setEventID | ( | const DtEventID & | event | ) | [virtual] |
Set/Get event identifier.
| virtual void DtIffAtcNavaidsPdu::setLocation | ( | const DtVector & | coords | ) | [virtual] |
Set/Get location.
| virtual void DtIffAtcNavaidsPdu::setOperational | ( | const DtIffAtcNavaidsOperational & | oper | ) | [virtual] |
Set/Get fundamental operational data.
| virtual bool DtIffAtcNavaidsPdu::setParmData | ( | int | parmIndex, |
| const DtIffAtcNavaidsParameter & | init | ||
| ) | [virtual] |
Set/Get the fundamental parameter data records for the second layer.
| virtual void DtIffAtcNavaidsPdu::setSecondaryOperational | ( | const DtIffAtcNavaidsSecondOperational & | oper | ) | [virtual] |
Set/Get secondary operational parameters.
| virtual void DtIffAtcNavaidsPdu::setSystemID | ( | const DtIffAtcNavaidsSystemID & | id | ) | [virtual] |
Set/Get system ID.
| virtual const DtIffAtcNavaidsSystemID& DtIffAtcNavaidsPdu::systemID | ( | ) | const [virtual] |
DtVector DtIffAtcNavaidsPdu::myEntCoords [protected] |
DtEntityIdentifier DtIffAtcNavaidsPdu::myEntityID [protected] |
Temporary objects for reference returns.
DtEventID DtIffAtcNavaidsPdu::myEventID [protected] |
const int DtIffAtcNavaidsPdu::theStaticSize [static, protected] |
Size of PDU with zero parameter records.