FlightGear next
Environment::BasicRealWxController Class Reference

Inherits Environment::RealWxController.

Inherited by Environment::NoaaMetarRealWxController.

Public Types

typedef std::vector< LiveMetarProperties_ptrMetarPropertiesList
 

Public Member Functions

 BasicRealWxController (SGPropertyNode_ptr rootNode, MetarRequester *metarRequester)
 
virtual ~BasicRealWxController ()
 
void bind () override
 
void init () override
 
void reinit () override
 
void shutdown () override
 
void unbind () override
 
void update (double dt) override
 
void addMetarAtPath (const std::string &propPath, const std::string &icao)
 Create a metar-property binding at the specified property path, and initiate a request for the specified station-ID (which may be empty).
 
void removeMetarAtPath (const std::string &propPath)
 
MetarPropertiesList::iterator findMetarAtPath (const std::string &propPath)
 
- Public Member Functions inherited from Environment::RealWxController
virtual ~RealWxController ()
 

Protected Member Functions

void checkNearbyMetar ()
 
long getMetarMaxAgeMin () const
 

Protected Attributes

SGPropertyNode_ptr _rootNode
 
SGPropertyNode_ptr _ground_elevation_n
 
SGPropertyNode_ptr _max_age_n
 
bool _enabled
 
bool _wasEnabled
 
simgear::TiedPropertyList _tiedProperties
 
MetarPropertiesList _metarProperties
 
MetarRequester_requester
 

Additional Inherited Members

- Static Public Member Functions inherited from Environment::RealWxController
static RealWxControllercreateInstance (SGPropertyNode_ptr rootNode)
 

Detailed Description

Definition at line 147 of file realwx_ctrl.cxx.

Member Typedef Documentation

◆ MetarPropertiesList

Constructor & Destructor Documentation

◆ BasicRealWxController()

Environment::BasicRealWxController::BasicRealWxController ( SGPropertyNode_ptr rootNode,
MetarRequester * metarRequester )

Definition at line 234 of file realwx_ctrl.cxx.

◆ ~BasicRealWxController()

Environment::BasicRealWxController::~BasicRealWxController ( )
virtual

Definition at line 247 of file realwx_ctrl.cxx.

Member Function Documentation

◆ addMetarAtPath()

void Environment::BasicRealWxController::addMetarAtPath ( const std::string & propPath,
const std::string & icao )

Create a metar-property binding at the specified property path, and initiate a request for the specified station-ID (which may be empty).

If the property path is already mapped, the station ID will be updated.

Definition at line 315 of file realwx_ctrl.cxx.

◆ bind()

void Environment::BasicRealWxController::bind ( )
override

Definition at line 287 of file realwx_ctrl.cxx.

◆ checkNearbyMetar()

void Environment::BasicRealWxController::checkNearbyMetar ( )
protected

Definition at line 363 of file realwx_ctrl.cxx.

◆ findMetarAtPath()

BasicRealWxController::MetarPropertiesList::iterator Environment::BasicRealWxController::findMetarAtPath ( const std::string & propPath)

Definition at line 347 of file realwx_ctrl.cxx.

◆ getMetarMaxAgeMin()

long Environment::BasicRealWxController::getMetarMaxAgeMin ( ) const
inlineprotected

Definition at line 177 of file realwx_ctrl.cxx.

◆ init()

void Environment::BasicRealWxController::init ( )
override

Definition at line 253 of file realwx_ctrl.cxx.

◆ reinit()

void Environment::BasicRealWxController::reinit ( )
override

Definition at line 275 of file realwx_ctrl.cxx.

◆ removeMetarAtPath()

void Environment::BasicRealWxController::removeMetarAtPath ( const std::string & propPath)

Definition at line 336 of file realwx_ctrl.cxx.

◆ shutdown()

void Environment::BasicRealWxController::shutdown ( )
override

Definition at line 282 of file realwx_ctrl.cxx.

◆ unbind()

void Environment::BasicRealWxController::unbind ( )
override

Definition at line 293 of file realwx_ctrl.cxx.

◆ update()

void Environment::BasicRealWxController::update ( double dt)
override

Definition at line 298 of file realwx_ctrl.cxx.

Member Data Documentation

◆ _enabled

bool Environment::BasicRealWxController::_enabled
protected

Definition at line 183 of file realwx_ctrl.cxx.

◆ _ground_elevation_n

SGPropertyNode_ptr Environment::BasicRealWxController::_ground_elevation_n
protected

Definition at line 180 of file realwx_ctrl.cxx.

◆ _max_age_n

SGPropertyNode_ptr Environment::BasicRealWxController::_max_age_n
protected

Definition at line 181 of file realwx_ctrl.cxx.

◆ _metarProperties

MetarPropertiesList Environment::BasicRealWxController::_metarProperties
protected

Definition at line 186 of file realwx_ctrl.cxx.

◆ _requester

MetarRequester* Environment::BasicRealWxController::_requester
protected

Definition at line 187 of file realwx_ctrl.cxx.

◆ _rootNode

SGPropertyNode_ptr Environment::BasicRealWxController::_rootNode
protected

Definition at line 179 of file realwx_ctrl.cxx.

◆ _tiedProperties

simgear::TiedPropertyList Environment::BasicRealWxController::_tiedProperties
protected

Definition at line 185 of file realwx_ctrl.cxx.

◆ _wasEnabled

bool Environment::BasicRealWxController::_wasEnabled
protected

Definition at line 184 of file realwx_ctrl.cxx.


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