1 // metar interface class
3 // Written by Melchior FRANZ, started January 2005.
5 // Copyright (C) 2005 Melchior FRANZ - mfranz@aon.at
7 // This program is free software; you can redistribute it and/or
8 // modify it under the terms of the GNU General Public License as
9 // published by the Free Software Foundation; either version 2 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 // General Public License for more details.
17 // You should have received a copy of the GNU General Public License
18 // along with this program; if not, write to the Free Software
19 // Foundation, 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
31 #include <simgear/environment/metar.hxx>
38 class FGMetar : public SGMetar {
40 FGMetar(const string& icao, const string& proxy = "", const string& port = "",
41 const string &auth = "");
43 long getAge_min() const;
44 time_t getTime() const { return _time; }
45 double getRain() const { return _rain / 3.0; }
46 double getHail() const { return _hail / 3.0; }
47 double getSnow() const { return _snow / 3.0; }
48 bool getSnowCover() const { return _snow_cover; }
56 #endif // _FGMETAR_HXX