mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-06 18:25:37 +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. refs #689
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
#include "blackmisc/simulation/distributorlist.h"
|
||||
#include "blackmisc/statusmessagelist.h"
|
||||
#include "blackmisc/weather/metar.h"
|
||||
#include "blackmisc/weather/metarset.h"
|
||||
#include "blackmisc/weather/metarlist.h"
|
||||
|
||||
#include <QDateTime>
|
||||
#include <QList>
|
||||
@@ -264,7 +264,7 @@ namespace BlackCore
|
||||
|
||||
//! Get METARs
|
||||
//! \threadsafe
|
||||
BlackMisc::Weather::CMetarSet getMetars() const;
|
||||
BlackMisc::Weather::CMetarList getMetars() const;
|
||||
|
||||
//! Get METAR for airport
|
||||
//! \threadsafe
|
||||
@@ -302,7 +302,7 @@ namespace BlackCore
|
||||
void ps_receivedBookings(const BlackMisc::Aviation::CAtcStationList &bookedStations);
|
||||
|
||||
//! Received METAR data
|
||||
void ps_receivedMetars(const BlackMisc::Weather::CMetarSet &metars);
|
||||
void ps_receivedMetars(const BlackMisc::Weather::CMetarList &metars);
|
||||
|
||||
//! Data file has been read
|
||||
void ps_dataFileRead(int lines);
|
||||
|
||||
Reference in New Issue
Block a user