mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
85 lines
1.7 KiB
C++
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
|