From d2429a47761a7078e923f802054b763694d789a6 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Thu, 6 Mar 2014 00:01:22 +0100 Subject: [PATCH] refs #74 , free functions (at this time registration of metadata) --- src/blacksim/blacksimfreefunctions.cpp | 16 ++++++++++++++++ src/blacksim/blacksimfreefunctions.h | 21 +++++++++++++++++++++ 2 files changed, 37 insertions(+) create mode 100644 src/blacksim/blacksimfreefunctions.cpp create mode 100644 src/blacksim/blacksimfreefunctions.h diff --git a/src/blacksim/blacksimfreefunctions.cpp b/src/blacksim/blacksimfreefunctions.cpp new file mode 100644 index 000000000..d82f23f97 --- /dev/null +++ b/src/blacksim/blacksimfreefunctions.cpp @@ -0,0 +1,16 @@ +#include "blacksimfreefunctions.h" +#include "fscommon/aircraftcfgentrieslist.h" +#include "fscommon/aircraftmappinglist.h" + +namespace BlackSim +{ + + void registerMetadata() + { + BlackSim::FsCommon::CAircraftCfgEntries::registerMetadata(); + BlackSim::FsCommon::CAircraftMapping::registerMetadata(); + BlackSim::FsCommon::CAircraftCfgEntriesList::registerMetadata(); + BlackSim::FsCommon::CAircraftMappingList::registerMetadata(); + } + +} // namespace diff --git a/src/blacksim/blacksimfreefunctions.h b/src/blacksim/blacksimfreefunctions.h new file mode 100644 index 000000000..88f6c69b7 --- /dev/null +++ b/src/blacksim/blacksimfreefunctions.h @@ -0,0 +1,21 @@ +/* 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 BLACKSIM_FREEFUNCTIONS_H +#define BLACKSIM_FREEFUNCTIONS_H + +/*! + * Free functions in BlackSim + */ +namespace BlackSim +{ + /*! + * \brief Register all relevant metadata in BlackMisc + */ + void registerMetadata(); + +} // BlackSim + +#endif // guard