2021-03-08 16:44:42 +00:00
|
|
|
|
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
// implement various test-only methods on classes
|
|
|
|
|
|
|
|
#include <Airports/groundnetwork.hxx>
|
|
|
|
#include <Airports/airport.hxx>
|
|
|
|
#include <Airports/xmlloader.hxx>
|
2021-08-21 12:09:19 +00:00
|
|
|
#include <Navaids/procedure.hxx>
|
2021-03-08 16:44:42 +00:00
|
|
|
|
|
|
|
void FGAirport::testSuiteInjectGroundnetXML(const SGPath& path)
|
|
|
|
{
|
|
|
|
_groundNetwork.reset(new FGGroundNetwork(const_cast<FGAirport*>(this)));
|
|
|
|
XMLLoader::loadFromPath(_groundNetwork.get(), path);
|
|
|
|
_groundNetwork->init();
|
|
|
|
}
|
|
|
|
|
2021-08-21 12:09:19 +00:00
|
|
|
void FGAirport::testSuiteInjectProceduresXML(const SGPath& path)
|
|
|
|
{
|
|
|
|
if (mProceduresLoaded) {
|
|
|
|
SG_LOG(SG_GENERAL, SG_ALERT, "Procedures already loaded for" << ident());
|
|
|
|
mSIDs.clear();
|
|
|
|
mSTARs.clear();
|
|
|
|
mApproaches.clear();
|
|
|
|
}
|
|
|
|
|
|
|
|
mProceduresLoaded = true;
|
|
|
|
flightgear::RouteBase::loadAirportProcedures(path, const_cast<FGAirport*>(this));
|
|
|
|
}
|
|
|
|
|