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, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
31 #include <simgear/environment/metar.hxx>
38 class FGMetar : public SGMetar, public SGReferenced {
40 FGMetar(const string& icao);
42 long getAge_min() const;
43 time_t getTime() const { return _time; }
44 double getRain() const { return _rain / 3.0; }
45 double getHail() const { return _hail / 3.0; }
46 double getSnow() const { return _snow / 3.0; }
47 bool getSnowCover() const { return _snow_cover; }
55 #endif // _FGMETAR_HXX