2 Provide Data for the ATIS Encoder from metarproperties
3 Copyright (C) 2014 Torsten Dreyer
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.
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.
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.
20 #ifndef __CURRENTWEATHER_ATIS_ENCODER_HXX
21 #define __CURRENTWEATHER_ATIS_ENCODER_HXX
23 /* ATIS encoder from current weather */
26 #include "ATISEncoder.hxx"
28 class CurrentWeatherATISInformationProvider : public ATISInformationProvider
31 CurrentWeatherATISInformationProvider( const std::string & airportId );
32 virtual ~CurrentWeatherATISInformationProvider();
35 virtual bool isValid();
36 virtual std::string airportId();
37 virtual long getTime();
38 virtual int getWindDeg();
39 virtual int getWindMinDeg() { return getWindDeg(); }
40 virtual int getWindMaxDeg() { return getWindDeg(); }
41 virtual int getWindSpeedKt();
42 virtual int getGustsKt();
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();
52 std::string _airportId;
53 SGPropertyNode_ptr _environment;