#endif
#include "realwx_ctrl.hxx"
-#include "tiedpropertylist.hxx"
#include "metarproperties.hxx"
#include "metarairportfilter.hxx"
#include "fgmetar.hxx"
#include <simgear/structure/exception.hxx>
#include <simgear/misc/strutils.hxx>
+#include <simgear/props/tiedpropertylist.hxx>
#include <algorithm>
#if defined(ENABLE_THREADS)
#include <OpenThreads/Thread>
#include <simgear/threads/SGQueue.hxx>
#endif
+using simgear::PropertyList;
namespace Environment {
LiveMetarProperties::~LiveMetarProperties()
{
+ _tiedProperties.Untie();
}
void LiveMetarProperties::update( double dt )
bool _enabled;
bool __enabled;
- TiedPropertyList _tiedProperties;
- ; typedef std::vector<LiveMetarProperties_ptr> MetarPropertiesList;
+ simgear::TiedPropertyList _tiedProperties;
+ typedef std::vector<LiveMetarProperties_ptr> MetarPropertiesList;
MetarPropertiesList _metarProperties;
};
class MetarLoadRequest {
public:
- MetarLoadRequest( const string & stationId ) {
- _stationId = stationId;
- _proxyHost = fgGetNode("/sim/presets/proxy/host", true)->getStringValue();
- _proxyPort = fgGetNode("/sim/presets/proxy/port", true)->getStringValue();
- _proxyAuth = fgGetNode("/sim/presets/proxy/authentication", true)->getStringValue();
- }
- MetarLoadRequest( const MetarLoadRequest & other ) {
- _stationId = other._stationId;
- _proxyHost = other._proxyAuth;
- _proxyPort = other._proxyPort;
- _proxyAuth = other._proxyAuth;
- }
+ MetarLoadRequest( const string & stationId ) :
+ _stationId(stationId),
+ _proxyHost(fgGetNode("/sim/presets/proxy/host", true)->getStringValue()),
+ _proxyPort(fgGetNode("/sim/presets/proxy/port", true)->getStringValue()),
+ _proxyAuth(fgGetNode("/sim/presets/proxy/authentication", true)->getStringValue())
+ {}
+ MetarLoadRequest( const MetarLoadRequest & other ) :
+ _stationId(other._stationId),
+ _proxyHost(other._proxyAuth),
+ _proxyPort(other._proxyPort),
+ _proxyAuth(other._proxyAuth)
+ {}
string _stationId;
string _proxyHost;
string _proxyPort;