]> git.mxchange.org Git - flightgear.git/blob - src/ATC/MetarPropertiesATISInformationProvider.hxx
TACAN: fix receiving mobile TACAN.
[flightgear.git] / src / ATC / MetarPropertiesATISInformationProvider.hxx
1 /*
2 Provide Data for the ATIS Encoder from metarproperties
3 Copyright (C) 2014 Torsten Dreyer
4
5 This program is free software; you can redistribute it and/or
6 modify it under the terms of the GNU General Public License
7 as published by the Free Software Foundation; either version 2
8 of the License, or (at your option) any later version.
9
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13 GNU General Public License for more details.
14
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18 */
19
20 #ifndef __METARPROPERTIES_ATIS_ENCODER_HXX
21 #define __METARPROPERTIES_ATIS_ENCODER_HXX
22
23 /* ATIS encoder from metarproperties */
24
25 #include <simgear/props/props.hxx>
26
27 #include <string>
28 #include "ATISEncoder.hxx"
29
30 class MetarPropertiesATISInformationProvider : public ATISInformationProvider
31 {
32 public:
33     MetarPropertiesATISInformationProvider( SGPropertyNode_ptr metar );
34     virtual ~MetarPropertiesATISInformationProvider();
35
36 protected:
37     virtual bool isValid();
38     virtual std::string airportId();
39     virtual long getTime();
40     virtual int getWindDeg();
41     virtual int getWindSpeedKt();
42     virtual int getGustsKt();
43     virtual int getQnh();
44     virtual bool isCavok();
45     virtual int getVisibilityMeters();
46     virtual std::string getPhenomena();
47     virtual CloudEntries getClouds();
48     virtual int getTemperatureDeg();
49     virtual int getDewpointDeg();
50     virtual std::string getTrend();
51 #if 0
52     virtual std::string getStationId();
53     virtual std::string getAtisId();
54     virtual std::string getTime();
55     virtual std::string getApproachType();
56     virtual std::string getLandingRunway();
57     virtual std::string getTakeoffRunway();
58     virtual std::string getTransitionLevel();
59     virtual std::string getWindDirection();
60     virtual std::string getWindspeedKnots();
61     virtual std::string getGustsKnots();
62     virtual std::string getVisibilityMetric();
63     virtual std::string getPhenomena();
64     virtual std::string getClouds();
65     virtual std::string getCavok();
66     virtual std::string getTemperatureDeg();
67     virtual std::string getDewpointDeg();
68     virtual std::string getQnh();
69     virtual std::string getTrend();
70 #endif
71 private:
72     SGPropertyNode_ptr _metar;
73 };
74
75 #endif