Ref T285, allow to re-init all aircraft

* aircraft will be removed, then added again as new
* this will go thru the full cycle and matching
This commit is contained in:
Klaus Basan
2018-06-27 01:37:47 +02:00
parent 1f689a8830
commit 8898bf6be5
8 changed files with 72 additions and 4 deletions

View File

@@ -124,6 +124,9 @@ namespace BlackCore
//! Gracefully shut down, e.g. for thread safety
void gracefulShutdown();
//! Re-init all aircrft
int reInitializeAllAircraft();
//! Create dummy entries for performance tests
//! \private for testing purposes
void testCreateDummyOnlineAtcStations(int number);
@@ -228,6 +231,11 @@ namespace BlackCore
//! \threadsafe
bool addNewAircraftInRange(const BlackMisc::Simulation::CSimulatedAircraft &aircraft);
//! Asynchronously add aircraft
//! \threadsafe
//! \sa addNewAircraftInRange
void asyncAddNewAircraftInRange(const BlackMisc::Simulation::CSimulatedAircraftList &aircraft, bool readyForModelMatching);
//! Update online stations by callsign
int updateOnlineStation(const BlackMisc::Aviation::CCallsign &callsign, const BlackMisc::CPropertyIndexVariantMap &vm, bool skipEqualValues = true, bool sendSignal = true);