]> git.mxchange.org Git - flightgear.git/blob - src/Airports/runwayprefloader.hxx
Thomas Foerster:
[flightgear.git] / src / Airports / runwayprefloader.hxx
1 #ifndef _RUNWAY_PREF_LOADER_HXX_
2 #define _RUNWAY_PREF_LOADER_HXX_
3
4 #include <time.h>
5 #include <string>
6
7 #include <simgear/compiler.h>
8 #include <simgear/xml/easyxml.hxx>
9
10 #include "runwayprefs.hxx"
11
12 SG_USING_STD(string);
13
14 class FGRunwayPreferenceXMLLoader : public XMLVisitor {
15 public:
16     FGRunwayPreferenceXMLLoader(FGRunwayPreference* p);
17
18 protected:
19     virtual void startXML (); 
20     virtual void endXML   ();
21     virtual void startElement (const char * name, const XMLAttributes &atts);
22     virtual void endElement (const char * name);
23     virtual void data (const char * s, int len);
24     virtual void pi (const char * target, const char * data);
25     virtual void warning (const char * message, int line, int column);
26     virtual void error (const char * message, int line, int column);
27
28     time_t processTime(const string &tme);
29
30 private:
31     FGRunwayPreference* _pref;
32
33     string value;
34
35     string scheduleName;
36     ScheduleTime currTimes; // Needed for parsing;
37
38     RunwayList  rwyList;
39     RunwayGroup rwyGroup;
40 };
41
42 #endif