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
makVrf::DtAerodromeStateComponent Class Reference

1) Define the interface class that will be used to represent the next and curent frames. The UNDEFINED_ macros are convenience macros that will define methods that throw exceptions (until they are implemented) Abstract interface for aerodrome (airport) state, providing access to runway and airport code data.

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

Public Member Functions

 DtAerodromeStateComponent (DtStateData *storage)
 
virtual DtRunwayStateData & addRunway ()
 
virtual void removeRunway (const DtUUID &)
 
virtual DtRunwayStateData & runway (const DtUUID &)
 
virtual DtRunwayStateData & runway (const std::string &)
 
virtual const DtRunwayStateData & runway (const DtUUID &) const
 
virtual const DtRunwayStateData & runway (const std::string &) const
 
virtual const
DtRunwayLightStateData & 
runwayState (const std::string &) const
 
virtual const std::map< DtUUID,
DtRunwayStateData > & 
runways () const
 
virtual void setRunways (const std::map< DtUUID, DtRunwayStateData > &)
 
virtual std::vector< DtString > runwaysArchived () const
 
virtual void restoreRunwaysFromArchive (const std::vector< DtString > &)
 
virtual unsigned char runwayValue (const DtString &, const DtString &runwayName) const
 
virtual void setRunwayValue (const DtString &, unsigned char, const DtString &runwayName)
 
virtual unsigned char value (const DtString &) const
 
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 ()
 

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
 
- Protected Member Functions inherited from makVrf::DtFrameStateInterface
virtual void makeWritable ()
 
virtual void makeReadOnly ()
 
- 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
 

Constructor & Destructor Documentation

makVrf::DtAerodromeStateComponent::DtAerodromeStateComponent ( DtStateData *  storage)
inline

Constructs the aerodrome state component with the given state data storage.

Parameters
storagePointer to the state data storage associated with this component.

Member Function Documentation

virtual DtRunwayStateData& makVrf::DtAerodromeStateComponent::addRunway ( )
inlinevirtual

Gets or sets the ICAO airport code identifying this aerodrome.

Gets or sets whether this aerodrome is active. Adds a new runway to this aerodrome and returns a reference to the new runway state data.

Returns
Reference to the newly created DtRunwayStateData.

Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.

virtual void makVrf::DtAerodromeStateComponent::removeRunway ( const DtUUID &  )
inlinevirtual

Removes the runway identified by the given UUID.

Parameters
idUUID of the runway to remove.

Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.

virtual DtRunwayStateData& makVrf::DtAerodromeStateComponent::runway ( const DtUUID &  )
inlinevirtual

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

Parameters
idUUID of the runway.
Returns
Reference to the matching DtRunwayStateData.

Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.

virtual DtRunwayStateData& makVrf::DtAerodromeStateComponent::runway ( const std::string &  )
inlinevirtual

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

Parameters
nameName of the runway.
Returns
Reference to the matching DtRunwayStateData.

Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.

virtual const DtRunwayStateData& makVrf::DtAerodromeStateComponent::runway ( const DtUUID &  ) const
inlinevirtual

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

Parameters
idUUID of the runway.
Returns
Const reference to the matching DtRunwayStateData.

Reimplemented in makVrf::DtAerodromeStateComponentCurrentFrame, and makVrf::DtAerodromeStateComponentNextFrame.

virtual const DtRunwayStateData& makVrf::DtAerodromeStateComponent::runway ( const std::string &  ) const
inlinevirtual

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

Parameters
nameName of the runway.
Returns
Const reference to the matching DtRunwayStateData.

Reimplemented in makVrf::DtAerodromeStateComponentCurrentFrame, and makVrf::DtAerodromeStateComponentNextFrame.

virtual const DtRunwayLightStateData& makVrf::DtAerodromeStateComponent::runwayState ( const std::string &  ) const
inlinevirtual

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

Parameters
runwayEndNameName of the runway end.
Returns
Const reference to the matching DtRunwayLightStateData.

Reimplemented in makVrf::DtAerodromeStateComponentCurrentFrame, and makVrf::DtAerodromeStateComponentNextFrame.

virtual const std::map<DtUUID, DtRunwayStateData>& makVrf::DtAerodromeStateComponent::runways ( ) const
inlinevirtual

Returns a const map of all runways keyed by UUID.

Returns
Const reference to the map of UUID to DtRunwayStateData.

Reimplemented in makVrf::DtAerodromeStateComponentCurrentFrame, and makVrf::DtAerodromeStateComponentNextFrame.

virtual void makVrf::DtAerodromeStateComponent::setRunways ( const std::map< DtUUID, DtRunwayStateData > &  )
inlinevirtual

Replaces all runways with the provided map.

Parameters
runwaysMap of UUID to DtRunwayStateData to set.

Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.

virtual std::vector<DtString> makVrf::DtAerodromeStateComponent::runwaysArchived ( ) const
inlinevirtual

Returns a list of archived runway state strings.

Returns
Vector of serialized runway state strings.

Reimplemented in makVrf::DtAerodromeStateComponentCurrentFrame, and makVrf::DtAerodromeStateComponentNextFrame.

virtual void makVrf::DtAerodromeStateComponent::restoreRunwaysFromArchive ( const std::vector< DtString > &  )
inlinevirtual

Restores all runways from the provided list of archived state strings.

Parameters
archivedRunwaysVector of serialized runway state strings to restore.

Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.

virtual unsigned char makVrf::DtAerodromeStateComponent::runwayValue ( const DtString &  ,
const DtString &  runwayName 
) const
inlinevirtual

Returns the named appearance value for the specified runway.

Parameters
valueNameName of the appearance attribute.
runwayNameName of the runway.
Returns
The appearance value as an unsigned char.

Reimplemented in makVrf::DtAerodromeStateComponentCurrentFrame, and makVrf::DtAerodromeStateComponentNextFrame.

virtual void makVrf::DtAerodromeStateComponent::setRunwayValue ( const DtString &  ,
unsigned  char,
const DtString &  runwayName 
)
inlinevirtual

Sets the named appearance value for the specified runway.

Parameters
valueNameName of the appearance attribute.
valueThe appearance value to set.
runwayNameName of the runway.

Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.

virtual unsigned char makVrf::DtAerodromeStateComponent::value ( const DtString &  ) const
inlinevirtual

Returns the named appearance value for this aerodrome.

Parameters
valueNameName of the appearance attribute.
Returns
The appearance value as an unsigned char.

Reimplemented in makVrf::DtAerodromeStateComponentCurrentFrame, and makVrf::DtAerodromeStateComponentNextFrame.

virtual void makVrf::DtAerodromeStateComponent::setValue ( const DtString &  ,
unsigned  char 
)
inlinevirtual

Sets the named appearance value for this aerodrome.

Parameters
valueNameName of the appearance attribute.
valueThe appearance value to set.

Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.

virtual void makVrf::DtAerodromeStateComponent::restoreFromArchive ( const DtString &  )
inlinevirtual

Restores this aerodrome's state from the given archived state string.

Parameters
archivedStateSerialized state string to restore from.

Reimplemented in makVrf::DtAerodromeStateComponentNextFrame.


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)