+// This program is free software; you can redistribute it and/or
+// modify it under the terms of the GNU General Public License as
+// published by the Free Software Foundation; either version 2 of the
+// License, or (at your option) any later version.
+//
+// This program is distributed in the hope that it will be useful, but
+// WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// General Public License for more details.
+//
+// You should have received a copy of the GNU General Public License
+// along with this program; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+//
+
#include "dynamicloader.hxx"
FGAirportDynamicsXMLLoader::FGAirportDynamicsXMLLoader(FGAirportDynamics* dyn):
string value;
string gateName;
string gateNumber;
+ string attval;
string lat;
string lon;
+ int holdPointType;
+
if (name == string("Parking"))
{
for (int i = 0; i < atts.size(); i++)
taxiNode.setLatitude(atts.getValue(i));
if (attname == string("lon"))
taxiNode.setLongitude(atts.getValue(i));
+ if (attname == string("isOnRunway"))
+ taxiNode.setOnRunway((bool) atoi(atts.getValue(i)));
+ if (attname == string("holdPointType")) {
+ attval = atts.getValue(i);
+ if (attval==string("none")) {
+ holdPointType=0;
+ } else if (attval==string("normal")) {
+ holdPointType=1;
+ } else if (attval==string("CAT II/III")) {
+ holdPointType=3;
+ } else if (attval==string("PushBack")) {
+ holdPointType=3;
+ }
+ //cerr << "Setting Holding point to " << holdPointType << endl;
+ taxiNode.setHoldPointType(holdPointType);
+ }
}
_dynamics->getGroundNetwork()->addNode(taxiNode);
}
taxiSegment.setStartNodeRef(atoi(atts.getValue(i)));
if (attname == string("end"))
taxiSegment.setEndNodeRef(atoi(atts.getValue(i)));
+ if (attname == string("isPushBackRoute"))
+ taxiSegment.setPushBackType((bool) atoi(atts.getValue(i)));
}
_dynamics->getGroundNetwork()->addSegment(taxiSegment);
}