Debian Codegraph @

src/Airports/runwayprefloader.hxx

raw symbols SCIP
1 /*
2 * SPDX-License-Identifier: GPL-2.0-or-later
3 */
4
5 #pragma once
6
7 #include <string>
8 #include <time.h>
9
10 #include <simgear/compiler.h>
11 #include <simgear/xml/easyxml.hxx>
12
13 #include "runwayprefs.hxx"
14
15
16 class FGRunwayPreferenceXMLLoader : public XMLVisitor
17 {
18 public:
19 explicit FGRunwayPreferenceXMLLoader(FGRunwayPreference* p);
20
21 protected:
22 virtual void startXML();
23 virtual void endXML();
24 virtual void startElement(const char* name, const XMLAttributes& atts);
25 virtual void endElement(const char* name);
26 virtual void data(const char* s, int len);
27 virtual void pi(const char* target, const char* data);
28 virtual void warning(const char* message, int line, int column);
29 virtual void error(const char* message, int line, int column);
30
31 time_t processTime(const std::string& tme);
32
33 private:
34 FGRunwayPreference* _pref;
35
36 std::string value;
37
38 std::string scheduleName;
39 ScheduleTime currTimes; // Needed for parsing;
40
41 RunwayList rwyList;
42 RunwayGroup rwyGroup;
43 };