Ref T442, utility functions for logically sorting by suffix

This commit is contained in:
Klaus Basan
2018-11-29 03:19:45 +01:00
parent 391327b3a7
commit 0da8d85999
10 changed files with 141 additions and 53 deletions

View File

@@ -66,7 +66,7 @@ namespace BlackMisc
CAtcStationList stationsWithValidFrequency() const;
//! All controllers (with valid data)
BlackMisc::Network::CUserList getControllers() const;
Network::CUserList getControllers() const;
//! Remove if marked outside of range
int removeIfOutsideRange();
@@ -75,8 +75,13 @@ namespace BlackMisc
//! Both sides (booking, online station) will be updated.
//! \pre Can be used only if the stored data in this list are online ATC stations
int synchronizeWithBookedStation(CAtcStation &bookedAtcStation);
};
//! Sort by ATC suffix sort order and distance
void sortByAtcSuffixSortOrderAndDistance();
//! Sorted by ATC suffix sort order and distance
CAtcStationList sortedByAtcSuffixSortOrderAndDistance() const;
};
} //namespace
} // namespace