FlightGear next
ATISEncoder Class Reference

#include <ATISEncoder.hxx>

Inherits ATCSpeech.

Public Member Functions

 ATISEncoder ()
 
virtual ~ATISEncoder ()
 
virtual std::string encodeATIS (ATISInformationProvider *atisInformationProvider)
 

Protected Types

typedef std::string(ATISEncoder::* handler_t) (SGPropertyNode_ptr baseNode)
 
typedef std::map< std::string, handler_tHandlerMap
 

Protected Member Functions

virtual std::string getAtisId (SGPropertyNode_ptr)
 
virtual std::string getAirportName (SGPropertyNode_ptr)
 
virtual std::string getTime (SGPropertyNode_ptr)
 
virtual std::string getApproachType (SGPropertyNode_ptr)
 
virtual std::string getLandingRunway (SGPropertyNode_ptr)
 
virtual std::string getTakeoffRunway (SGPropertyNode_ptr)
 
virtual std::string getTransitionLevel (SGPropertyNode_ptr)
 
virtual std::string getWindDirection (SGPropertyNode_ptr)
 
virtual std::string getWindMinDirection (SGPropertyNode_ptr)
 
virtual std::string getWindMaxDirection (SGPropertyNode_ptr)
 
virtual std::string getWindspeedKnots (SGPropertyNode_ptr)
 
virtual std::string getGustsKnots (SGPropertyNode_ptr)
 
virtual std::string getCavok (SGPropertyNode_ptr)
 
virtual std::string getVisibilityMetric (SGPropertyNode_ptr)
 
virtual std::string getVisibilityMiles (SGPropertyNode_ptr)
 
virtual std::string getPhenomena (SGPropertyNode_ptr)
 
virtual std::string getClouds (SGPropertyNode_ptr)
 
virtual std::string getCloudsBrief (SGPropertyNode_ptr)
 
virtual std::string getTemperatureDeg (SGPropertyNode_ptr)
 
virtual std::string getDewpointDeg (SGPropertyNode_ptr)
 
virtual std::string getQnh (SGPropertyNode_ptr)
 
virtual std::string getInhgInteger (SGPropertyNode_ptr)
 
virtual std::string getInhgFraction (SGPropertyNode_ptr)
 
virtual std::string getInhg (SGPropertyNode_ptr)
 
virtual std::string getTrend (SGPropertyNode_ptr)
 
std::string processTokens (SGPropertyNode_ptr baseNode)
 
std::string processToken (SGPropertyNode_ptr baseNode)
 
std::string processTextToken (SGPropertyNode_ptr baseNode)
 
std::string processTokenToken (SGPropertyNode_ptr baseNode)
 
std::string processIfToken (SGPropertyNode_ptr baseNode)
 
bool checkEmptyCondition (SGPropertyNode_ptr node, bool isEmpty)
 
bool checkCondition (SGPropertyNode_ptr node, bool notInverted, bool(*fp)(const std::string &, const std::string &), const std::string &name)
 

Static Protected Member Functions

static bool contains (const std::string &s, const std::string &substring)
 
static bool equals (const std::string &s1, const std::string &s2)
 

Protected Attributes

HandlerMap handlerMap
 
SGPropertyNode_ptr atisSchemaNode
 
FGAirportRef airport
 
ATISInformationProvider_atis {nullptr}
 

Additional Inherited Members

- Static Public Member Functions inherited from ATCSpeech
static std::string getSpokenDigit (int i)
 
static std::string getSpokenNumber (std::string number)
 
static std::string getSpokenNumber (int number, bool leadingZero=false, int digits=1)
 
static std::string getSpokenAltitude (int altitude)
 

Detailed Description

Definition at line 60 of file ATISEncoder.hxx.

Member Typedef Documentation

◆ handler_t

typedef std::string(ATISEncoder::* ATISEncoder::handler_t) (SGPropertyNode_ptr baseNode)
protected

Definition at line 94 of file ATISEncoder.hxx.

◆ HandlerMap

typedef std::map<std::string, handler_t> ATISEncoder::HandlerMap
protected

Definition at line 95 of file ATISEncoder.hxx.

Constructor & Destructor Documentation

◆ ATISEncoder()

ATISEncoder::ATISEncoder ( )

Definition at line 125 of file ATISEncoder.cxx.

◆ ~ATISEncoder()

ATISEncoder::~ATISEncoder ( )
virtual

Definition at line 159 of file ATISEncoder.cxx.

Member Function Documentation

◆ checkCondition()

bool ATISEncoder::checkCondition ( SGPropertyNode_ptr node,
bool notInverted,
bool(* fp )(const std::string &, const std::string &),
const std::string & name )
protected

Definition at line 346 of file ATISEncoder.cxx.

◆ checkEmptyCondition()

bool ATISEncoder::checkEmptyCondition ( SGPropertyNode_ptr node,
bool isEmpty )
protected

Definition at line 336 of file ATISEncoder.cxx.

◆ contains()

static bool ATISEncoder::contains ( const std::string & s,
const std::string & substring )
inlinestaticprotected

Definition at line 112 of file ATISEncoder.hxx.

◆ encodeATIS()

string ATISEncoder::encodeATIS ( ATISInformationProvider * atisInformationProvider)
virtual

Definition at line 187 of file ATISEncoder.cxx.

◆ equals()

static bool ATISEncoder::equals ( const std::string & s1,
const std::string & s2 )
inlinestaticprotected

Definition at line 116 of file ATISEncoder.hxx.

◆ getAirportName()

string ATISEncoder::getAirportName ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 384 of file ATISEncoder.cxx.

◆ getApproachType()

string ATISEncoder::getApproachType ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 402 of file ATISEncoder.cxx.

◆ getAtisId()

string ATISEncoder::getAtisId ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 374 of file ATISEncoder.cxx.

◆ getCavok()

string ATISEncoder::getCavok ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 496 of file ATISEncoder.cxx.

◆ getClouds()

string ATISEncoder::getClouds ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 535 of file ATISEncoder.cxx.

◆ getCloudsBrief()

string ATISEncoder::getCloudsBrief ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 551 of file ATISEncoder.cxx.

◆ getDewpointDeg()

string ATISEncoder::getDewpointDeg ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 571 of file ATISEncoder.cxx.

◆ getGustsKnots()

string ATISEncoder::getGustsKnots ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 490 of file ATISEncoder.cxx.

◆ getInhg()

string ATISEncoder::getInhg ( SGPropertyNode_ptr node)
protectedvirtual

Definition at line 594 of file ATISEncoder.cxx.

◆ getInhgFraction()

string ATISEncoder::getInhgFraction ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 587 of file ATISEncoder.cxx.

◆ getInhgInteger()

string ATISEncoder::getInhgInteger ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 581 of file ATISEncoder.cxx.

◆ getLandingRunway()

string ATISEncoder::getLandingRunway ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 415 of file ATISEncoder.cxx.

◆ getPhenomena()

string ATISEncoder::getPhenomena ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 530 of file ATISEncoder.cxx.

◆ getQnh()

string ATISEncoder::getQnh ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 576 of file ATISEncoder.cxx.

◆ getTakeoffRunway()

string ATISEncoder::getTakeoffRunway ( SGPropertyNode_ptr p)
protectedvirtual

Definition at line 427 of file ATISEncoder.cxx.

◆ getTemperatureDeg()

string ATISEncoder::getTemperatureDeg ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 566 of file ATISEncoder.cxx.

◆ getTime()

string ATISEncoder::getTime ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 389 of file ATISEncoder.cxx.

◆ getTransitionLevel()

string ATISEncoder::getTransitionLevel ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 433 of file ATISEncoder.cxx.

◆ getTrend()

string ATISEncoder::getTrend ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 602 of file ATISEncoder.cxx.

◆ getVisibilityMetric()

string ATISEncoder::getVisibilityMetric ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 503 of file ATISEncoder.cxx.

◆ getVisibilityMiles()

string ATISEncoder::getVisibilityMiles ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 516 of file ATISEncoder.cxx.

◆ getWindDirection()

string ATISEncoder::getWindDirection ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 467 of file ATISEncoder.cxx.

◆ getWindMaxDirection()

string ATISEncoder::getWindMaxDirection ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 480 of file ATISEncoder.cxx.

◆ getWindMinDirection()

string ATISEncoder::getWindMinDirection ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 475 of file ATISEncoder.cxx.

◆ getWindspeedKnots()

string ATISEncoder::getWindspeedKnots ( SGPropertyNode_ptr )
protectedvirtual

Definition at line 485 of file ATISEncoder.cxx.

◆ processIfToken()

string ATISEncoder::processIfToken ( SGPropertyNode_ptr baseNode)
protected

Definition at line 265 of file ATISEncoder.cxx.

◆ processTextToken()

string ATISEncoder::processTextToken ( SGPropertyNode_ptr baseNode)
protected

Definition at line 249 of file ATISEncoder.cxx.

◆ processToken()

string ATISEncoder::processToken ( SGPropertyNode_ptr baseNode)
protected

Definition at line 238 of file ATISEncoder.cxx.

◆ processTokens()

string ATISEncoder::processTokens ( SGPropertyNode_ptr baseNode)
protected

Definition at line 227 of file ATISEncoder.cxx.

◆ processTokenToken()

string ATISEncoder::processTokenToken ( SGPropertyNode_ptr baseNode)
protected

Definition at line 254 of file ATISEncoder.cxx.

Member Data Documentation

◆ _atis

ATISInformationProvider* ATISEncoder::_atis {nullptr}
protected

Definition at line 126 of file ATISEncoder.hxx.

◆ airport

FGAirportRef ATISEncoder::airport
protected

Definition at line 125 of file ATISEncoder.hxx.

◆ atisSchemaNode

SGPropertyNode_ptr ATISEncoder::atisSchemaNode
protected

Definition at line 98 of file ATISEncoder.hxx.

◆ handlerMap

HandlerMap ATISEncoder::handlerMap
protected

Definition at line 96 of file ATISEncoder.hxx.


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