Files
pilotclient/src/blackmisc/blackmiscfreefunctions.h
2014-01-08 00:57:43 +00:00

85 lines
1.7 KiB
C++

/* Copyright (C) 2013 VATSIM Community / contributors
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef BLACKMISC_FREEFUNCTIONS_H
#define BLACKMISC_FREEFUNCTIONS_H
#include <QDir> // for Q_INIT_RESOURCE
/*!
* Workaround, to call initResource from namespace. Used in BlackMisc::initResources().
* Q_INIT_RESOURCE adds resource, here the translation files.
*/
// cannot be declared within namespace, see docu
// hence BlackMisc::initResources() calls this inline function
inline void initBlackMiscResources() { Q_INIT_RESOURCE(blackmisc); }
/*!
* Free functions in BlackMisc
*/
namespace BlackMisc
{
/*!
* Free functions in PQs
*/
namespace PhysicalQuantities
{
/*!
* \brief Register all metadata for PQs
*/
void registerMetadata();
} // PQ
/*!
* Free functions in aviation
*/
namespace Aviation
{
/*!
* \brief Register metadata for aviation
*/
void registerMetadata();
} // Aviation
/*!
* Free functions in Math
*/
namespace Math
{
/*!
* \brief Register metadata for math (matrices, vectors)
*/
void registerMetadata();
} // Math
namespace Geo
{
/*!
* \brief Register metadata for geo (coordinates)
*/
void registerMetadata();
} // Geo
/*!
* \brief Register all relevant metadata in BlackMisc
*/
void registerMetadata();
/*!
* \brief Init resources
*/
void initResources();
} // BlackMisc
#endif // guard