mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 15:25:35 +08:00
refs #844, allow to remove ATC stations outside of range
This commit is contained in:
committed by
Mathew Sutcliffe
parent
b98a1408ae
commit
2108422dc2
@@ -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;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user