14#include <simgear/props/props.hxx>
22 static std::string
getSpokenNumber(
int number,
bool leadingZero =
false,
int digits = 1);
35 return 100 * 100l * day + 100l * hour + minute;
37 inline int getAtisTimeDay(
long atisTime) {
return atisTime / (100l * 100l); }
38 inline int getAtisTimeHour(
long atisTime) {
return (atisTime % (100l * 100l)) / 100l; }
68 virtual std::string
getAtisId(SGPropertyNode_ptr);
70 virtual std::string
getTime(SGPropertyNode_ptr);
80 virtual std::string
getCavok(SGPropertyNode_ptr);
84 virtual std::string
getClouds(SGPropertyNode_ptr);
88 virtual std::string
getQnh(SGPropertyNode_ptr);
91 virtual std::string
getInhg(SGPropertyNode_ptr);
92 virtual std::string
getTrend(SGPropertyNode_ptr);
112 static bool contains(
const std::string& s,
const std::string& substring)
114 return s.find(substring) != std::string::npos;
116 static bool equals(
const std::string& s1,
const std::string& s2)
122 bool (*fp)(
const std::string&,
const std::string&),
123 const std::string&
name);
SGSharedPtr< FGAirport > FGAirportRef
static std::string getSpokenNumber(std::string number)
static std::string getSpokenAltitude(int altitude)
static std::string getSpokenDigit(int i)
virtual std::string getCavok(SGPropertyNode_ptr)
virtual std::string getInhg(SGPropertyNode_ptr)
ATISInformationProvider * _atis
virtual std::string getAtisId(SGPropertyNode_ptr)
virtual std::string getVisibilityMiles(SGPropertyNode_ptr)
static bool equals(const std::string &s1, const std::string &s2)
std::string processTokenToken(SGPropertyNode_ptr baseNode)
virtual std::string getVisibilityMetric(SGPropertyNode_ptr)
virtual std::string getCloudsBrief(SGPropertyNode_ptr)
virtual std::string getQnh(SGPropertyNode_ptr)
virtual std::string getApproachType(SGPropertyNode_ptr)
virtual std::string getInhgFraction(SGPropertyNode_ptr)
std::string processIfToken(SGPropertyNode_ptr baseNode)
std::map< std::string, handler_t > HandlerMap
virtual std::string getPhenomena(SGPropertyNode_ptr)
virtual std::string getAirportName(SGPropertyNode_ptr)
std::string processTextToken(SGPropertyNode_ptr baseNode)
std::string processTokens(SGPropertyNode_ptr baseNode)
virtual std::string getLandingRunway(SGPropertyNode_ptr)
std::string(ATISEncoder::* handler_t)(SGPropertyNode_ptr baseNode)
virtual std::string getTakeoffRunway(SGPropertyNode_ptr)
bool checkCondition(SGPropertyNode_ptr node, bool notInverted, bool(*fp)(const std::string &, const std::string &), const std::string &name)
std::string processToken(SGPropertyNode_ptr baseNode)
virtual std::string getClouds(SGPropertyNode_ptr)
virtual std::string encodeATIS(ATISInformationProvider *atisInformationProvider)
virtual std::string getDewpointDeg(SGPropertyNode_ptr)
virtual std::string getTransitionLevel(SGPropertyNode_ptr)
virtual std::string getWindMaxDirection(SGPropertyNode_ptr)
virtual std::string getTemperatureDeg(SGPropertyNode_ptr)
virtual std::string getTime(SGPropertyNode_ptr)
virtual std::string getInhgInteger(SGPropertyNode_ptr)
SGPropertyNode_ptr atisSchemaNode
virtual std::string getWindDirection(SGPropertyNode_ptr)
virtual std::string getWindMinDirection(SGPropertyNode_ptr)
virtual std::string getGustsKnots(SGPropertyNode_ptr)
static bool contains(const std::string &s, const std::string &substring)
virtual std::string getWindspeedKnots(SGPropertyNode_ptr)
virtual std::string getTrend(SGPropertyNode_ptr)
bool checkEmptyCondition(SGPropertyNode_ptr node, bool isEmpty)