/** * Opens the airfield details file and parses it */ void WaypointDetails::ReadFile(TLineReader &reader, Waypoints &way_points, OperationEnvironment &operation) { operation.SetText(_("Loading Airfield Details File...")); ParseAirfieldDetails(way_points, reader, operation); }
void ReadAirfieldFile() { #if TESTBENCH StartupStore(TEXT(". ReadAirfieldFile%s"),NEWLINE); #endif // LKTOKEN _@M400_ = "Loading Waypoint Notes File..." CreateProgressDialog(MsgToken(400)); { OpenAirfieldDetails(); ParseAirfieldDetails(); CloseAirfieldDetails(); } }
/** * Opens the airfield details file and parses it */ void ReadAirfieldFile(Waypoints &way_points) { LogStartUp(_T("ReadAirfieldFile")); TLineReader *reader = OpenConfiguredTextFile(szProfileAirfieldFile, _T("airfields.txt")); if (reader == NULL) return; ProgressGlue::Create(_("Loading Airfield Details File...")); ParseAirfieldDetails(way_points, *reader); delete reader; }