#include "runwayprefloader.hxx"
#include "dynamics.hxx"
+#include "simple.hxx"
#include "runwayprefs.hxx"
using std::string;
XMLLoader::XMLLoader() {}
XMLLoader::~XMLLoader() {}
-void XMLLoader::load(FGAirportDynamics* d) {
+void XMLLoader::load(FGAirportDynamics* d)
+{
FGAirportDynamicsXMLLoader visitor(d);
- if(loadAirportXMLDataIntoVisitor(d->getId(), "groundnet", visitor)) {
+ if(loadAirportXMLDataIntoVisitor(d->parent()->ident(), "groundnet", visitor)) {
d->init();
}
}
loadAirportXMLDataIntoVisitor(p->getId(), "rwyuse", visitor);
}
-void XMLLoader::load(FGSidStar* p) {
- SGPath path;
- if (findAirportData(p->getId(), "SID", path)) {
- p->load(path);
- }
-}
-
bool XMLLoader::findAirportData(const std::string& aICAO,
const std::string& aFileName, SGPath& aPath)
{