using std::string;
FGPositioned::Type
-FGMarkerBeacon::mapType(int aTy)
+FGMarkerBeaconRecord::mapType(int aTy)
{
switch (aTy) {
case 7: return FGPositioned::OM;
case 9: return FGPositioned::IM;
default:
throw sg_range_exception("Got a non-marker-beacon-type",
- "FGMarkerBeacon::mapType");
+ "FGMarkerBeaconRecord::mapType");
}
}
-FGMarkerBeacon*
-FGMarkerBeacon::create(int aTy, const string& aName, const SGGeod& aPos)
+FGMarkerBeaconRecord*
+FGMarkerBeaconRecord::create(int aTy, const string& aName, const SGGeod& aPos)
{
Type fgpTy = mapType(aTy);
FGRunway* runway = getRunwayFromName(aName);
pos.setElevationFt(runway->elevation());
}
- return new FGMarkerBeacon(fgpTy, runway, pos);
+ return new FGMarkerBeaconRecord(fgpTy, runway, pos);
}
-FGMarkerBeacon::FGMarkerBeacon(Type aTy, FGRunway* aRunway, const SGGeod& aPos) :
+FGMarkerBeaconRecord::FGMarkerBeaconRecord(Type aTy, FGRunway* aRunway, const SGGeod& aPos) :
FGPositioned(aTy, string(), aPos),
_runway(aRunway)
{
// forward decls
class FGRunway;
-class FGMarkerBeacon : public FGPositioned
+class FGMarkerBeaconRecord : public FGPositioned
{
public:
- static FGMarkerBeacon* create(int aTy, const std::string& aName, const SGGeod& aPos);
+ static FGMarkerBeaconRecord* create(int aTy, const std::string& aName, const SGGeod& aPos);
private:
- FGMarkerBeacon(Type aTy, FGRunway* aRunway, const SGGeod& aPos);
+ FGMarkerBeaconRecord(Type aTy, FGRunway* aRunway, const SGGeod& aPos);
FGRunway* _runway; // should this be ref-ptr?
if ((rawType >= 7) && (rawType <= 9)) {
// marker beacons use a different run-time class now
- FGMarkerBeacon::create(rawType, name, pos);
+ FGMarkerBeaconRecord::create(rawType, name, pos);
return NULL; // not a nav-record, but that's okay
}