mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-05 17:55:45 +08:00
refs #507, split up blackmiscfreefunctions
* single register metadata functions * string utils * metadata utils * some formatting / license header where applicable
This commit is contained in:
@@ -1,28 +0,0 @@
|
||||
/* Copyright (C) 2015
|
||||
* swift Project Community / Contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "blackmisc/blackmiscfreefunctions.h"
|
||||
#include "blackmisc/weather/weather.h"
|
||||
|
||||
/*
|
||||
* Metadata for aviation
|
||||
*
|
||||
* In a separate file to workaround a limitation of MinGW:
|
||||
* http://stackoverflow.com/q/16596876/1639256
|
||||
*/
|
||||
void BlackMisc::Weather::registerMetadata()
|
||||
{
|
||||
CMetar::registerMetadata();
|
||||
CMetarSet::registerMetadata();
|
||||
CPresentWeather::registerMetadata();
|
||||
CPresentWeatherList::registerMetadata();
|
||||
CCloudLayer::registerMetadata();
|
||||
CCloudLayerList::registerMetadata();
|
||||
CWindLayer::registerMetadata();
|
||||
}
|
||||
28
src/blackmisc/weather/registermetadataweather.cpp
Normal file
28
src/blackmisc/weather/registermetadataweather.cpp
Normal file
@@ -0,0 +1,28 @@
|
||||
/* Copyright (C) 2015
|
||||
* swift project Community / Contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
#include "registermetadataweather.h"
|
||||
#include "weather.h"
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace Weather
|
||||
{
|
||||
void registerMetadata()
|
||||
{
|
||||
CCloudLayer::registerMetadata();
|
||||
CCloudLayerList::registerMetadata();
|
||||
CMetar::registerMetadata();
|
||||
CMetarSet::registerMetadata();
|
||||
CPresentWeather::registerMetadata();
|
||||
CPresentWeatherList::registerMetadata();
|
||||
CWindLayer::registerMetadata();
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
26
src/blackmisc/weather/registermetadataweather.h
Normal file
26
src/blackmisc/weather/registermetadataweather.h
Normal file
@@ -0,0 +1,26 @@
|
||||
/* Copyright (C) 2015
|
||||
* swift project Community / Contributors
|
||||
*
|
||||
* This file is part of swift project. It is subject to the license terms in the LICENSE file found in the top-level
|
||||
* directory of this distribution and at http://www.swift-project.org/license.html. No part of swift project,
|
||||
* including this file, may be copied, modified, propagated, or distributed except according to the terms
|
||||
* contained in the LICENSE file.
|
||||
*/
|
||||
|
||||
//! \file
|
||||
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
|
||||
#ifndef BLACKMISC_WEATHER_REGISTERMETADATAWEATHER_H
|
||||
#define BLACKMISC_WEATHER_REGISTERMETADATAWEATHER_H
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace Weather
|
||||
{
|
||||
//! Register metadata for weather
|
||||
BLACKMISC_EXPORT void registerMetadata();
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
#endif // guard
|
||||
@@ -9,20 +9,20 @@
|
||||
|
||||
//! \file
|
||||
|
||||
#ifndef BLACKMISC_wEATHER_wEATHER_H
|
||||
#define BLACKMISC_wEATHER_wEATHER_H
|
||||
#ifndef BLACKMISC_WEATHER_WEATHER_H
|
||||
#define BLACKMISC_WEATHER_WEATHER_H
|
||||
|
||||
/*!
|
||||
* \namespace BlackMisc::Weather
|
||||
* \brief Weather and Metar classes
|
||||
*/
|
||||
|
||||
#include "blackmisc/weather/cloudlayer.h"
|
||||
#include "blackmisc/weather/cloudlayerlist.h"
|
||||
#include "blackmisc/weather/metar.h"
|
||||
#include "blackmisc/weather/metarset.h"
|
||||
#include "blackmisc/weather/presentweather.h"
|
||||
#include "blackmisc/weather/presentweatherlist.h"
|
||||
#include "blackmisc/weather/cloudlayer.h"
|
||||
#include "blackmisc/weather/cloudlayerlist.h"
|
||||
#include "blackmisc/weather/windlayer.h"
|
||||
|
||||
#endif // guard
|
||||
|
||||
Reference in New Issue
Block a user