![]() |
VR-Forces Developer's Guide
|
3) Define the current frame class. This will be used for read access. Read-only implementation of DtAerodromeStateComponent providing thread-safe access to the committed frame.

Public Member Functions | |
| DtAerodromeStateComponentCurrentFrame (DtStateData *) | |
| virtual | ~DtAerodromeStateComponentCurrentFrame () override |
| virtual const DtAerodromeStateData & | frameState () const override |
| virtual const bool & | isLocal () const override |
| virtual const bool & | checkForNameReservation () const override |
| virtual const bool & | active () const override |
| virtual const DtString & | globalId () const override |
| virtual const DtUUID & | uuid () const override |
| virtual const DtString & | airportCode () const override |
| virtual const DtString & | markingText () const override |
| virtual const UInt64 | userLongLongData () const override |
| virtual const UInt32 | appearanceBits () const override |
| virtual const DtEntityType | entityType () const override |
| virtual const DtEntityType | objectType () const override |
| virtual const DtEntityIdentifier & | entityId () const override |
| virtual const DtSimulationAddress | simEngineAddress () const override |
| virtual std::vector< DtString > | runwaysArchived () const override |
| virtual unsigned char | value (const DtString &) const override |
| virtual unsigned char | runwayValue (const DtString &, const DtString &runwayName) const override |
| virtual const unsigned long long | orbatId () const override |
| virtual const DtString & | sidc () const override |
| virtual const DtForceType | forceType () const override |
| virtual const DtRunwayStateData & | runway (const DtUUID &) const override |
| virtual const DtRunwayStateData & | runway (const std::string &) const override |
| virtual const DtRunwayLightStateData & | runwayState (const std::string &) const override |
| virtual const std::map< DtUUID, DtRunwayStateData > & | runways () const override |
Public Member Functions inherited from makVrf::DtAerodromeStateComponent | |
| DtAerodromeStateComponent (DtStateData *storage) | |
| virtual DtRunwayStateData & | addRunway () |
| virtual void | removeRunway (const DtUUID &) |
| virtual DtRunwayStateData & | runway (const DtUUID &) |
| virtual DtRunwayStateData & | runway (const std::string &) |
| virtual void | setRunways (const std::map< DtUUID, DtRunwayStateData > &) |
| virtual void | restoreRunwaysFromArchive (const std::vector< DtString > &) |
| virtual void | setRunwayValue (const DtString &, unsigned char, const DtString &runwayName) |
| virtual void | setValue (const DtString &, unsigned char) |
| virtual void | restoreFromArchive (const DtString &) |
Public Member Functions inherited from makVrf::DtSimulatedObjectStateComponent | |
| DtSimulatedObjectStateComponent (DtStateData *) | |
| virtual bool | mainComponentOnLegion () const |
Public Member Functions inherited from makVrf::DtFrameStateInterface | |
| DtFrameStateInterface (DtStateData *) | |
| virtual | ~DtFrameStateInterface () |
| void | setIsWritable (bool b) |
| bool | isWritable () const |
| UInt64 | stateId () const |
| UInt64 | legionGlobalId () const |
| void | setLegionGlobalId (UInt64 d) |
| virtual bool | isModified () const |
| virtual void | clearModified () |
| virtual void | markModified () |
| virtual DtStateComponent::StateComponentType | type () const |
| virtual DtStateComponent::StateComponentType | componentType () const =0 |
| virtual const char * | stringType () const =0 |
| void | setId (UInt64 id) |
| virtual UInt64 | id () const |
| virtual void | updateStateData (DtStateData *sd) |
| virtual Legion::ReadStateInstance | readStateInstance () const |
| virtual Legion::WriteStateInstance | writeStateInstance () |
| void | emitComponentUpdated () |
| void | setMarkedForRemoval (bool b) |
| bool | markedForRemoval () const |
| bool | cleared () const |
| bool | advancedFrame () const |
| virtual void | frameAdvanced () |
| virtual void | convertToRemote () |
| virtual void | convertToLocal () |
| virtual void | aboutToBeDeleted () |
Protected Member Functions | |
| void | advanceFrame (const DtAerodromeStateData &data) |
Protected Member Functions inherited from makVrf::DtFrameStateInterface | |
| virtual void | makeWritable () |
| virtual void | makeReadOnly () |
Protected Attributes | |
| DtAerodromeStateData | myData |
Protected Attributes inherited from makVrf::DtFrameStateInterface | |
| bool | myIsModified |
| UInt64 | myId |
| UInt64 | myStateId |
| UInt64 | myLegionId |
| bool | myIsWritable |
| bool | myCleared |
| bool | myAdvancedFrame |
| bool | myMarkedForRemoval = false |
| DtStateData * | myStateData |
Friends | |
| class | DtAerodromeStateComponentImplementation |
Additional Inherited Members | |
Static Public Member Functions inherited from makVrf::DtSimulatedObjectStateComponent | |
| static DtStateComponent::StateComponentType | ComponentType () |
| static const char * | StringType () |
Public Attributes inherited from makVrf::DtSimulatedObjectStateComponent | |
| boost::signals2::signal< void(const DtUUID &, const DtUUID &, makVrf::SimStateID)> | signal_uuidChanged |
| boost::signals2::signal< void(const DtString &, const DtString &, makVrf::SimStateID)> | signal_markingTextChanged |
| boost::signals2::signal< void(int oldForce, int newForce, makVrf::SimStateID)> | signal_forceChanged |
| boost::signals2::signal< void(const DtSimulationAddress &oldAddress, const DtSimulationAddress &newAddress, makVrf::SimStateID)> | signal_simEngineAddressChanged |
Public Attributes inherited from makVrf::DtFrameStateInterface | |
| boost::signals2::signal< void(DtFrameStateInterface *)> | signal_stateComponentAboutToBeDeleted |
| boost::signals2::signal< void(const DtFrameStateInterface *)> | signal_componentModified |
| makVrf::DtAerodromeStateComponentCurrentFrame::DtAerodromeStateComponentCurrentFrame | ( | DtStateData * | ) |
Constructs the current-frame aerodrome state component with the given state data storage.
| sd | Pointer to the state data storage associated with this component. |
|
overridevirtual |
|
inlineoverridevirtual |
Current frame state only can access current frame buffers. This ensures thread safety.
|
overridevirtual |
Returns whether this aerodrome is locally owned.
|
overridevirtual |
Returns whether a name reservation check is required for this aerodrome.
|
overridevirtual |
Returns whether this aerodrome is active.
|
overridevirtual |
Returns the global identifier string for this aerodrome.
|
overridevirtual |
Returns the UUID of this aerodrome.
|
overridevirtual |
Returns the ICAO airport code for this aerodrome.
|
inlineoverridevirtual |
Returns the airport code as the marking text for this aerodrome.
|
overridevirtual |
Returns the user-defined 64-bit data value for this aerodrome.
|
overridevirtual |
Returns the packed DIS appearance bits for this aerodrome.
|
inlineoverridevirtual |
Returns the entity type (wraps objectType()).
|
overridevirtual |
Returns the DIS object type of this aerodrome.
|
overridevirtual |
Returns the DIS entity identifier for this aerodrome.
|
overridevirtual |
Returns the simulation engine address derived from the entity identifier.
|
overridevirtual |
Returns a list of archived runway state strings.
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Returns the named appearance value for this aerodrome.
| valueName | Name of the appearance attribute. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Returns the named appearance value for the specified runway.
| valueName | Name of the appearance attribute. |
| runwayName | Name of the runway. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
inlineoverridevirtual |
Aerodromes cannot be in orbat.
|
overridevirtual |
Unused for aerodromes.
|
overridevirtual |
Returns the force type (affiliation) of this aerodrome.
|
overridevirtual |
Returns a const reference to the runway identified by the given UUID.
| id | UUID of the runway. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Returns a const reference to the runway identified by the given name.
| name | Name of the runway. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Returns the runway light state data for the runway end identified by the given name.
| runwayEndName | Name of the runway end. |
Reimplemented from makVrf::DtAerodromeStateComponent.
|
overridevirtual |
Returns a const map of all runways keyed by UUID.
Reimplemented from makVrf::DtAerodromeStateComponent.
|
inlineprotected |
Copies the next-frame data into the current frame buffer; called by the implementation during frame advance.
| data | The aerodrome state data from the next frame to commit. |
|
friend |
|
protected |
Aerodrome state data buffer for the current (committed) frame.