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 _RUNWAY_PREF_LOADER_HXX_
17 #define _RUNWAY_PREF_LOADER_HXX_
22 #include <simgear/compiler.h>
23 #include <simgear/xml/easyxml.hxx>
25 #include "runwayprefs.hxx"
29 class FGRunwayPreferenceXMLLoader : public XMLVisitor {
31 FGRunwayPreferenceXMLLoader(FGRunwayPreference* p);
34 virtual void startXML ();
35 virtual void endXML ();
36 virtual void startElement (const char * name, const XMLAttributes &atts);
37 virtual void endElement (const char * name);
38 virtual void data (const char * s, int len);
39 virtual void pi (const char * target, const char * data);
40 virtual void warning (const char * message, int line, int column);
41 virtual void error (const char * message, int line, int column);
43 time_t processTime(const string &tme);
46 FGRunwayPreference* _pref;
51 ScheduleTime currTimes; // Needed for parsing;