VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrf::DtAerodromeStateComponentCurrentFrame Class Reference

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.

Inheritance diagram for makVrf::DtAerodromeStateComponentCurrentFrame:
Inheritance graph
[legend]

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
 

Constructor & Destructor Documentation

makVrf::DtAerodromeStateComponentCurrentFrame::DtAerodromeStateComponentCurrentFrame ( DtStateData *  )

Constructs the current-frame aerodrome state component with the given state data storage.

Parameters
sdPointer to the state data storage associated with this component.
virtual makVrf::DtAerodromeStateComponentCurrentFrame::~DtAerodromeStateComponentCurrentFrame ( )
overridevirtual

Member Function Documentation

virtual const DtAerodromeStateData& makVrf::DtAerodromeStateComponentCurrentFrame::frameState ( ) const
inlineoverridevirtual

Current frame state only can access current frame buffers. This ensures thread safety.

virtual const bool& makVrf::DtAerodromeStateComponentCurrentFrame::isLocal ( ) const
overridevirtual

Returns whether this aerodrome is locally owned.

virtual const bool& makVrf::DtAerodromeStateComponentCurrentFrame::checkForNameReservation ( ) const
overridevirtual

Returns whether a name reservation check is required for this aerodrome.

virtual const bool& makVrf::DtAerodromeStateComponentCurrentFrame::active ( ) const
overridevirtual

Returns whether this aerodrome is active.

virtual const DtString& makVrf::DtAerodromeStateComponentCurrentFrame::globalId ( ) const
overridevirtual

Returns the global identifier string for this aerodrome.

virtual const DtUUID& makVrf::DtAerodromeStateComponentCurrentFrame::uuid ( ) const
overridevirtual

Returns the UUID of this aerodrome.

virtual const DtString& makVrf::DtAerodromeStateComponentCurrentFrame::airportCode ( ) const
overridevirtual

Returns the ICAO airport code for this aerodrome.

virtual const DtString& makVrf::DtAerodromeStateComponentCurrentFrame::markingText ( ) const
inlineoverridevirtual

Returns the airport code as the marking text for this aerodrome.

virtual const UInt64 makVrf::DtAerodromeStateComponentCurrentFrame::userLongLongData ( ) const
overridevirtual

Returns the user-defined 64-bit data value for this aerodrome.

virtual const UInt32 makVrf::DtAerodromeStateComponentCurrentFrame::appearanceBits ( ) const
overridevirtual

Returns the packed DIS appearance bits for this aerodrome.

virtual const DtEntityType makVrf::DtAerodromeStateComponentCurrentFrame::entityType ( ) const
inlineoverridevirtual

Returns the entity type (wraps objectType()).

virtual const DtEntityType makVrf::DtAerodromeStateComponentCurrentFrame::objectType ( ) const
overridevirtual

Returns the DIS object type of this aerodrome.

virtual const DtEntityIdentifier& makVrf::DtAerodromeStateComponentCurrentFrame::entityId ( ) const
overridevirtual

Returns the DIS entity identifier for this aerodrome.

virtual const DtSimulationAddress makVrf::DtAerodromeStateComponentCurrentFrame::simEngineAddress ( ) const
overridevirtual

Returns the simulation engine address derived from the entity identifier.

virtual std::vector<DtString> makVrf::DtAerodromeStateComponentCurrentFrame::runwaysArchived ( ) const
overridevirtual

Returns a list of archived runway state strings.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual unsigned char makVrf::DtAerodromeStateComponentCurrentFrame::value ( const DtString &  ) const
overridevirtual

Returns the named appearance value for this aerodrome.

Parameters
valueNameName of the appearance attribute.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual unsigned char makVrf::DtAerodromeStateComponentCurrentFrame::runwayValue ( const DtString &  ,
const DtString &  runwayName 
) const
overridevirtual

Returns the named appearance value for the specified runway.

Parameters
valueNameName of the appearance attribute.
runwayNameName of the runway.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual const unsigned long long makVrf::DtAerodromeStateComponentCurrentFrame::orbatId ( ) const
inlineoverridevirtual

Aerodromes cannot be in orbat.

virtual const DtString& makVrf::DtAerodromeStateComponentCurrentFrame::sidc ( ) const
overridevirtual

Unused for aerodromes.

virtual const DtForceType makVrf::DtAerodromeStateComponentCurrentFrame::forceType ( ) const
overridevirtual

Returns the force type (affiliation) of this aerodrome.

virtual const DtRunwayStateData& makVrf::DtAerodromeStateComponentCurrentFrame::runway ( const DtUUID &  ) const
overridevirtual

Returns a const reference to the runway identified by the given UUID.

Parameters
idUUID of the runway.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual const DtRunwayStateData& makVrf::DtAerodromeStateComponentCurrentFrame::runway ( const std::string &  ) const
overridevirtual

Returns a const reference to the runway identified by the given name.

Parameters
nameName of the runway.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual const DtRunwayLightStateData& makVrf::DtAerodromeStateComponentCurrentFrame::runwayState ( const std::string &  ) const
overridevirtual

Returns the runway light state data for the runway end identified by the given name.

Parameters
runwayEndNameName of the runway end.

Reimplemented from makVrf::DtAerodromeStateComponent.

virtual const std::map<DtUUID, DtRunwayStateData>& makVrf::DtAerodromeStateComponentCurrentFrame::runways ( ) const
overridevirtual

Returns a const map of all runways keyed by UUID.

Reimplemented from makVrf::DtAerodromeStateComponent.

void makVrf::DtAerodromeStateComponentCurrentFrame::advanceFrame ( const DtAerodromeStateData &  data)
inlineprotected

Copies the next-frame data into the current frame buffer; called by the implementation during frame advance.

Parameters
dataThe aerodrome state data from the next frame to commit.

Friends And Related Function Documentation

Member Data Documentation

DtAerodromeStateData makVrf::DtAerodromeStateComponentCurrentFrame::myData
protected

Aerodrome state data buffer for the current (committed) frame.


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

Document ID: Generated on Thu Oct 15 21:27:02 EDT 2026 from SVN revision 296421
Copyright © 2005-2026 MAK Technologies. All Rights Reserved (www.mak.com)