#include "simple.hxx"
#include "runways.hxx"
#include "pavement.hxx"
-#include <ATCDCL/commlist.hxx>
+#if ENABLE_ATCDCL
+# include <ATCDCL/commlist.hxx>
+#endif
#include <iostream>
last_apt_type("")
{}
+
+#ifdef ENABLE_ATCDCL
void parseAPT(const string &aptdb_file, FGCommList *comm_list)
+#else
+ void parseAPT(const string &aptdb_file)
+#endif
{
sg_gzifstream in( aptdb_file );
displ_thresh2, stopway2, surface_code, true);
runways.push_back(reciprocal);
+
+ rwy->setReciprocalRunway(reciprocal);
+ reciprocal->setReciprocalRunway(rwy);
}
}
pos, heading_2, length, width,
displ_thresh2, stopway2, surface_code, true);
runways.push_back(reciprocal);
+
+ rwy->setReciprocalRunway(reciprocal);
+ reciprocal->setReciprocalRunway(rwy);
}
void parseWaterRunwayLine850(const vector<string>& token)
pos, heading_2, length, width,
0.0, 0.0, 13, true);
runways.push_back(reciprocal);
+
+ rwy->setReciprocalRunway(reciprocal);
+ reciprocal->setReciprocalRunway(rwy);
}
void parseHelipadLine850(const vector<string>& token)
pvt->addNode(pos, num == 113);
}
}
-
+#if ENABLE_ATCDCL
void parseATISLine(FGCommList *comm_list, const vector<string>& token)
{
if ( rwy_count <= 0 ) {
<< " type: " << a.type );
#endif
}
+#endif
};
+
// Load the airport data base from the specified aptdb file. The
// metar file is used to mark the airports as having metar available
// or not.
bool fgAirportDBLoad( const string &aptdb_file,
+#if ENABLE_ATCDCL
FGCommList *comm_list, const std::string &metar_file )
+#else
+ const std::string &metar_file )
+#endif
{
APTLoader ld;
-
+#if ENABLE_ATCDCL
ld.parseAPT(aptdb_file, comm_list);
-
+#else
+ ld.parseAPT(aptdb_file);
+#endif
//
// Load the metar.dat file and update apt db with stations that
// have metar data.