]> git.mxchange.org Git - flightgear.git/blob - src/Airports/dynamicloader.hxx
Merge branch 'next' into durk-atc
[flightgear.git] / src / Airports / dynamicloader.hxx
1 // This program is free software; you can redistribute it and/or
2 // modify it under the terms of the GNU General Public License as
3 // published by the Free Software Foundation; either version 2 of the
4 // License, or (at your option) any later version.
5 //
6 // This program is distributed in the hope that it will be useful, but
7 // WITHOUT ANY WARRANTY; without even the implied warranty of
8 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
9 // General Public License for more details.
10 //
11 // You should have received a copy of the GNU General Public License
12 // along with this program; if not, write to the Free Software
13 // Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
14 //
15
16 #ifndef _DYNAMIC_LOADER_HXX_
17 #define _DYNAMIC_LOADER_HXX_
18
19 #include <simgear/xml/easyxml.hxx>
20
21 #include "dynamics.hxx"
22
23 class FGAirportDynamicsXMLLoader : public XMLVisitor {
24 public:
25     FGAirportDynamicsXMLLoader(FGAirportDynamics* dyn);
26
27 protected:
28     virtual void startXML (); 
29     virtual void endXML   ();
30     virtual void startElement (const char * name, const XMLAttributes &atts);
31     virtual void endElement (const char * name);
32     virtual void data (const char * s, int len);
33     virtual void pi (const char * target, const char * data);
34     virtual void warning (const char * message, int line, int column);
35     virtual void error (const char * message, int line, int column);
36
37 private:
38     FGAirportDynamics* _dynamics;
39     string value;
40 };
41
42 #endif