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.
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.
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.
16 #ifndef _DYNAMIC_LOADER_HXX_
17 #define _DYNAMIC_LOADER_HXX_
19 #include <simgear/xml/easyxml.hxx>
21 #include "dynamics.hxx"
23 class FGAirportDynamicsXMLLoader : public XMLVisitor {
25 FGAirportDynamicsXMLLoader(FGAirportDynamics* dyn);
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);
38 FGAirportDynamics* _dynamics;