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:
Roland Winklmeier
2016-06-28 16:31:14 +02:00
parent 319b18bf98
commit 28ec2be1ca
10 changed files with 32 additions and 32 deletions

View File

@@ -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);