Ref T259, Ref T243 created an implementation for remote aircraft provider

* this implementation is used by airspace monitor
* also used by dummy provider (advantage, unit tests test the real provider)
* some functions adjusted
This commit is contained in:
Klaus Basan
2018-03-25 23:02:49 +02:00
parent 9abc57bb3d
commit 1c89f4c8e3
9 changed files with 766 additions and 904 deletions

View File

@@ -348,6 +348,16 @@ namespace BlackCore
*/
virtual void setInterimPositionReceivers(const BlackMisc::Aviation::CCallsignSet &receiver) = 0;
/*!
* Add callsign receiving regular interim position updates.
*/
virtual void addInterimPositionReceiver(const BlackMisc::Aviation::CCallsign &receiver)
{
BlackMisc::Aviation::CCallsignSet set = this->getInterimPositionReceivers();
set.push_back(receiver);
this->setInterimPositionReceivers(set);
}
/*!
* Get the group of callsigns receiving regular interim position updates.
*/