mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 08:55:43 +08:00
Change MetarSet to MetarList: CMetarSet was implemented as a collection. This only makes sense for values which have one member variable only or hardly ever change. METARs often change and therefore a collection didn’t make much sense. Additional profiling showed that a sequence has better algorithmic performance.
This commit is contained in:
@@ -440,7 +440,7 @@ namespace BlackCore
|
|||||||
m_airspace->analyzer()->setSimulatorRenderRestrictionsChanged(restricted, enabled, maxAircraft, maxRenderedDistance, maxRenderedBoundary);
|
m_airspace->analyzer()->setSimulatorRenderRestrictionsChanged(restricted, enabled, maxAircraft, maxRenderedDistance, maxRenderedBoundary);
|
||||||
}
|
}
|
||||||
|
|
||||||
void CContextNetwork::ps_updateMetars(const BlackMisc::Weather::CMetarSet &metars)
|
void CContextNetwork::ps_updateMetars(const BlackMisc::Weather::CMetarList &metars)
|
||||||
{
|
{
|
||||||
if (this->isDebugEnabled()) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
|
if (this->isDebugEnabled()) { CLogMessage(this, CLogCategory::contextSlot()).debug() << Q_FUNC_INFO; }
|
||||||
CLogMessage(this).info("%1 METARs updated") << metars.size();
|
CLogMessage(this).info("%1 METARs updated") << metars.size();
|
||||||
|
|||||||
@@ -47,7 +47,7 @@
|
|||||||
#include "blackmisc/simulation/simulatedaircraftlist.h"
|
#include "blackmisc/simulation/simulatedaircraftlist.h"
|
||||||
#include "blackmisc/statusmessage.h"
|
#include "blackmisc/statusmessage.h"
|
||||||
#include "blackmisc/weather/metar.h"
|
#include "blackmisc/weather/metar.h"
|
||||||
#include "blackmisc/weather/metarset.h"
|
#include "blackmisc/weather/metarlist.h"
|
||||||
|
|
||||||
class QTimer;
|
class QTimer;
|
||||||
|
|
||||||
@@ -295,7 +295,7 @@ namespace BlackCore
|
|||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
//! Update METAR collection
|
//! Update METAR collection
|
||||||
void ps_updateMetars(const BlackMisc::Weather::CMetarSet &metars);
|
void ps_updateMetars(const BlackMisc::Weather::CMetarList &metars);
|
||||||
|
|
||||||
//! Check if a supervisor message was received
|
//! Check if a supervisor message was received
|
||||||
void ps_checkForSupervisiorTextMessage(const BlackMisc::Network::CTextMessageList &messages);
|
void ps_checkForSupervisiorTextMessage(const BlackMisc::Network::CTextMessageList &messages);
|
||||||
|
|||||||
Reference in New Issue
Block a user