refs #844, allow to remove ATC stations outside of range

This commit is contained in:
Klaus Basan
2016-12-24 23:44:01 +01:00
committed by Mathew Sutcliffe
parent b98a1408ae
commit 2108422dc2
2 changed files with 8 additions and 0 deletions

View File

@@ -56,6 +56,11 @@ namespace BlackMisc
return this->findBy(Predicates::MemberValid(&CAtcStation::getController)).transform(Predicates::MemberTransform(&CAtcStation::getController));
}
int CAtcStationList::removeIfOutsideRange()
{
return this->removeIf(&CAtcStation::isInRange, false);
}
int CAtcStationList::synchronizeWithBookedStation(CAtcStation &bookedAtcStation)
{
int c = 0;

View File

@@ -59,6 +59,9 @@ namespace BlackMisc
//! All controllers (with valid data)
BlackMisc::Network::CUserList getControllers() const;
//! Remove if marked outside of range
int removeIfOutsideRange();
//! Synchronize with ATC station representing booking information.
//! Both sides (booking, online station) will be updated.
//! \pre Can be used only if the stored data in this list are online ATC stations