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

@@ -8,6 +8,7 @@
*/
#include "aircraftengine.h"
#include "blackmisc/stringutils.h"
namespace BlackMisc
{

View File

@@ -9,6 +9,7 @@
#include "aircraftlights.h"
#include "blackmisc/variant.h"
#include "blackmisc/stringutils.h"
using namespace BlackMisc;

View File

@@ -8,6 +8,7 @@
*/
#include "aircraftparts.h"
#include "blackmisc/stringutils.h"
#include "blackmisc/comparefunctions.h"
using namespace BlackMisc;

View File

@@ -1,51 +0,0 @@
/* Copyright (C) 2014
* 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/aviation/aviation.h"
/*
* Metadata for aviation
*
* In a separate file to workaround a limitation of MinGW:
* http://stackoverflow.com/q/16596876/1639256
*/
void BlackMisc::Aviation::registerMetadata()
{
CComSystem::registerMetadata();
CNavSystem::registerMetadata();
CAdfSystem::registerMetadata();
CAltitude::registerMetadata();
CTransponder::registerMetadata();
CHeading::registerMetadata();
CTrack::registerMetadata();
CInformationMessage::registerMetadata();
CCallsign::registerMetadata();
CCallsignSet::registerMetadata();
CAtcStation::registerMetadata();
CAtcStationList::registerMetadata();
CAirport::registerMetadata();
CAirportList::registerMetadata();
CAirportIcaoCode::registerMetadata();
CAircraftSituation::registerMetadata();
CAircraftSituationList::registerMetadata();
CAircraftIcaoCode::registerMetadata();
CAircraftIcaoCodeList::registerMetadata();
CAirlineIcaoCode::registerMetadata();
CAirlineIcaoCodeList::registerMetadata();
CSelcal::registerMetadata();
CFlightPlan::registerMetadata();
CAircraftEngine::registerMetadata();
CAircraftEngineList::registerMetadata();
CAircraftLights::registerMetadata();
CAircraftParts::registerMetadata();
CAircraftPartsList::registerMetadata();
CLivery::registerMetadata();
CLiveryList::registerMetadata();
}

View File

@@ -0,0 +1,51 @@
/* 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 "registermetadataaviation.h"
#include "aviation.h"
namespace BlackMisc
{
namespace Aviation
{
void registerMetadata()
{
CAdfSystem::registerMetadata();
CAircraftEngine::registerMetadata();
CAircraftEngineList::registerMetadata();
CAircraftIcaoCode::registerMetadata();
CAircraftIcaoCodeList::registerMetadata();
CAircraftLights::registerMetadata();
CAircraftParts::registerMetadata();
CAircraftPartsList::registerMetadata();
CAircraftSituation::registerMetadata();
CAircraftSituationList::registerMetadata();
CAirlineIcaoCode::registerMetadata();
CAirlineIcaoCodeList::registerMetadata();
CAirport::registerMetadata();
CAirportIcaoCode::registerMetadata();
CAirportList::registerMetadata();
CAltitude::registerMetadata();
CAtcStation::registerMetadata();
CAtcStationList::registerMetadata();
CCallsign::registerMetadata();
CCallsignSet::registerMetadata();
CComSystem::registerMetadata();
CFlightPlan::registerMetadata();
CHeading::registerMetadata();
CInformationMessage::registerMetadata();
CLivery::registerMetadata();
CLiveryList::registerMetadata();
CNavSystem::registerMetadata();
CSelcal::registerMetadata();
CTrack::registerMetadata();
CTransponder::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_AVIATION_REGISTERMETADATAAVIATION_H
#define BLACKMISC_AVIATION_REGISTERMETADATAAVIATION_H
namespace BlackMisc
{
namespace Aviation
{
//! Register metadata for aviation
BLACKMISC_EXPORT void registerMetadata();
} // ns
} // ns
#endif // guard