refs #507, split up blackmiscfreefunctions

* single register metadata functions
* string utils
* metadata utils
* some formatting / license header where applicable
This commit is contained in:
Klaus Basan
2015-11-22 02:42:29 +01:00
parent 025457c43b
commit 1fc7300982
96 changed files with 1350 additions and 901 deletions

View File

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

View 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

View 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

View File

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