16
16
#ifndef _XML_LOADER_HXX_
17
17
#define _XML_LOADER_HXX_
19
#include <simgear/xml/easyxml.hxx>
21
19
class FGAirportDynamics;
22
20
class FGRunwayPreference;
23
class XMLVisitor; // ffrom easyxml.hxx
30
30
static void load(FGRunwayPreference* p);
31
static void load(FGAirportDynamics* d);
31
static void load(FGAirportDynamics* d);
32
static void load(FGSidStar* s);
35
* Search the scenery for a file name of the form:
36
* I/C/A/ICAO.filename.xml
37
* and parse it as an XML property list, passing the data to the supplied
38
* visitor. If no such file could be found, returns false, otherwise returns
39
* true. Other failures (malformed XML, etc) with throw an exception.
41
static bool loadAirportXMLDataIntoVisitor(const std::string& aICAO,
42
const std::string& aFileName, XMLVisitor& aVisitor);
45
* Search the scenery for a file name of the form:
46
* I/C/A/ICAO.filename.xml
47
* and return the corresponding SGPath if found (and true),
48
* or false and invalid path if no matching data could be found
50
static bool findAirportData(const std::string& aICAO,
51
const std::string& aFileName, SGPath& aPath);