FlightGear next
XMLLoader Class Reference

#include <xmlloader.hxx>

Public Member Functions

 XMLLoader ()
 
 ~XMLLoader ()
 

Static Public Member Functions

static void load (FGRunwayPreference *p)
 
static void load (FGGroundNetwork *net)
 
static void load (FGSidStar *s)
 
static void loadFromStream (FGGroundNetwork *net, std::istream &inData)
 
static void loadFromPath (FGGroundNetwork *net, const SGPath &path)
 
static bool loadAirportXMLDataIntoVisitor (const std::string &aICAO, const std::string &aFileName, XMLVisitor &aVisitor)
 Search the scenery for a file name of the form: I/C/A/ICAO.filename.xml and parse it as an XML property list, passing the data to the supplied visitor.
 
static bool findAirportData (const std::string &aICAO, const std::string &aFileName, SGPath &aPath)
 Search the scenery for a file name of the form: I/C/A/ICAO.filename.xml and return the corresponding SGPath if found (and true), or false and invalid path if no matching data could be found.
 

Detailed Description

Definition at line 24 of file xmlloader.hxx.

Constructor & Destructor Documentation

◆ XMLLoader()

XMLLoader::XMLLoader ( )

Definition at line 44 of file xmlloader.cxx.

◆ ~XMLLoader()

XMLLoader::~XMLLoader ( )

Definition at line 45 of file xmlloader.cxx.

Member Function Documentation

◆ findAirportData()

bool XMLLoader::findAirportData ( const std::string & aICAO,
const std::string & aFileName,
SGPath & aPath )
static

Search the scenery for a file name of the form: I/C/A/ICAO.filename.xml and return the corresponding SGPath if found (and true), or false and invalid path if no matching data could be found.

Definition at line 106 of file xmlloader.cxx.

◆ load() [1/3]

void XMLLoader::load ( FGGroundNetwork * net)
static

Definition at line 47 of file xmlloader.cxx.

◆ load() [2/3]

void XMLLoader::load ( FGRunwayPreference * p)
static

Definition at line 101 of file xmlloader.cxx.

◆ load() [3/3]

static void XMLLoader::load ( FGSidStar * s)
static

◆ loadAirportXMLDataIntoVisitor()

bool XMLLoader::loadAirportXMLDataIntoVisitor ( const std::string & aICAO,
const std::string & aFileName,
XMLVisitor & aVisitor )
static

Search the scenery for a file name of the form: I/C/A/ICAO.filename.xml and parse it as an XML property list, passing the data to the supplied visitor.

If no such file could be found, returns false, otherwise returns true. Other failures (malformed XML, etc) with throw an exception.

Definition at line 148 of file xmlloader.cxx.

◆ loadFromPath()

void XMLLoader::loadFromPath ( FGGroundNetwork * net,
const SGPath & path )
static

Definition at line 86 of file xmlloader.cxx.

◆ loadFromStream()

void XMLLoader::loadFromStream ( FGGroundNetwork * net,
std::istream & inData )
static

Definition at line 72 of file xmlloader.cxx.


The documentation for this class was generated from the following files: