mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 02:45:33 +08:00
Move GFS weather data url into global setup
Summary: The GFS weather data url so far was hard coded. With this commit, it is moved into the global setup (bootstrap file). Also the url type was changed from QUrl to CUrl, which simplified the generation of the url including its query by using CUrl::appendQuery(). Finally it fixes sampleweatherdata, which did not have a CApplication yet. Reviewers: #swift_pilot_client, msutcliffe Reviewed By: #swift_pilot_client, msutcliffe Subscribers: jenkins Tags: #swift_pilot_client Maniphest Tasks: T151 Differential Revision: https://dev.swift-project.org/D57
This commit is contained in:
@@ -54,6 +54,7 @@ namespace BlackCore
|
||||
m_newsUrls = CUrlList({ "http://swift-project.org/" });
|
||||
m_onlineHelpUrls = CUrlList({ "help.swift-project.org/" });
|
||||
m_mapUrls = CUrlList({ "map.swift-project.org/" });
|
||||
m_ncepGlobalForecastSystemUrl = CUrl("http://nomads.ncep.noaa.gov/cgi-bin/filter_gfs_0p50.pl");
|
||||
}
|
||||
|
||||
CUrl CGlobalSetup::getDbIcaoReaderUrl() const
|
||||
|
||||
@@ -186,6 +186,9 @@ namespace BlackCore
|
||||
//! Productive settings?
|
||||
void setDevelopment(bool development) { m_development = development; }
|
||||
|
||||
//! NCEP GFS Forecasts (0.50 degree grid) data url
|
||||
BlackMisc::Network::CUrl getNcepGlobalForecastSystemUrl() const { return m_ncepGlobalForecastSystemUrl; }
|
||||
|
||||
//! \copydoc BlackMisc::Mixin::String::toQString
|
||||
QString convertToQString(bool i18n = false) const;
|
||||
|
||||
@@ -227,6 +230,7 @@ namespace BlackCore
|
||||
BlackMisc::Network::CUrlList m_onlineHelpUrls; //!< online help URLs
|
||||
BlackMisc::Network::CUrlList m_mapUrls; //!< swift map URLs
|
||||
BlackMisc::Network::CServerList m_fsdTestServers; //!< FSD test servers
|
||||
BlackMisc::Network::CUrl m_ncepGlobalForecastSystemUrl; //!< NCEP GFS url
|
||||
|
||||
// transient members, to be switched on/off via GUI or set from reader
|
||||
bool m_dbDebugFlag = false; //!< can trigger DEBUG on the server, so you need to know what you are doing
|
||||
@@ -253,6 +257,7 @@ namespace BlackCore
|
||||
BLACK_METAMEMBER(fsdTestServers),
|
||||
BLACK_METAMEMBER(development),
|
||||
BLACK_METAMEMBER(mappingMinimumVersion),
|
||||
BLACK_METAMEMBER(ncepGlobalForecastSystemUrl),
|
||||
BLACK_METAMEMBER(dbDebugFlag, BlackMisc::DisabledForJson)
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user