From f5d1217b48ac7339c3d3327081fe37a181b89b70 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Mon, 19 Mar 2018 19:58:42 +0100 Subject: [PATCH] Ref T259, Ref T243 interpolation setup list --- .../simulation/interpolationsetuplist.cpp | 22 +++++++++ .../simulation/interpolationsetuplist.h | 48 +++++++++++++++++++ .../simulation/registermetadatasimulation.cpp | 1 + src/blackmisc/simulation/simulation.h | 1 + 4 files changed, 72 insertions(+) create mode 100644 src/blackmisc/simulation/interpolationsetuplist.cpp create mode 100644 src/blackmisc/simulation/interpolationsetuplist.h diff --git a/src/blackmisc/simulation/interpolationsetuplist.cpp b/src/blackmisc/simulation/interpolationsetuplist.cpp new file mode 100644 index 000000000..765ef1392 --- /dev/null +++ b/src/blackmisc/simulation/interpolationsetuplist.cpp @@ -0,0 +1,22 @@ +/* Copyright (C) 2018 + * 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 "interpolationsetuplist.h" + +namespace BlackMisc +{ + namespace Simulation + { + CInterpolationSetupList::CInterpolationSetupList() { } + + CInterpolationSetupList::CInterpolationSetupList(const CSequence &other) : + CSequence(other) + { } + } // namespace +} // namespace diff --git a/src/blackmisc/simulation/interpolationsetuplist.h b/src/blackmisc/simulation/interpolationsetuplist.h new file mode 100644 index 000000000..b895b147a --- /dev/null +++ b/src/blackmisc/simulation/interpolationsetuplist.h @@ -0,0 +1,48 @@ +/* Copyright (C) 2018 + * 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 + +#ifndef BLACKMISC_SIMULATION_INTERPOLATIONSETUPLIST_H +#define BLACKMISC_SIMULATION_INTERPOLATIONSETUPLIST_H + +#include "interpolationrenderingsetup.h" +#include "blackmisc/aviation/callsignobjectlist.h" +#include "blackmisc/blackmiscexport.h" +#include "blackmisc/collection.h" +#include "blackmisc/sequence.h" +#include "blackmisc/variant.h" + +namespace BlackMisc +{ + namespace Simulation + { + //! Value object encapsulating a list of distributors. + class BLACKMISC_EXPORT CInterpolationSetupList : + public CSequence, + public Aviation::ICallsignObjectList, + public Mixin::MetaType + { + public: + BLACKMISC_DECLARE_USING_MIXIN_METATYPE(CInterpolationSetupList) + + //! Default constructor. + CInterpolationSetupList(); + + //! Construct from a base class object. + CInterpolationSetupList(const CSequence &other); + }; + } //namespace +} // namespace + +Q_DECLARE_METATYPE(BlackMisc::Simulation::CInterpolationSetupList) +Q_DECLARE_METATYPE(BlackMisc::CCollection) +Q_DECLARE_METATYPE(BlackMisc::CSequence) + +#endif //guard diff --git a/src/blackmisc/simulation/registermetadatasimulation.cpp b/src/blackmisc/simulation/registermetadatasimulation.cpp index 2477dd072..7675d2df4 100644 --- a/src/blackmisc/simulation/registermetadatasimulation.cpp +++ b/src/blackmisc/simulation/registermetadatasimulation.cpp @@ -31,6 +31,7 @@ namespace BlackMisc CDistributorListPreferences::registerMetadata(); CInterpolationAndRenderingSetupPerCallsign::registerMetadata(); CInterpolationAndRenderingSetupGlobal::registerMetadata(); + CInterpolationSetupList::registerMetadata(); CInterpolationHints::registerMetadata(); CMatchingStatisticsEntry::registerMetadata(); CMatchingStatistics::registerMetadata(); diff --git a/src/blackmisc/simulation/simulation.h b/src/blackmisc/simulation/simulation.h index b2a5d17f1..34e012cd9 100644 --- a/src/blackmisc/simulation/simulation.h +++ b/src/blackmisc/simulation/simulation.h @@ -21,6 +21,7 @@ #include "blackmisc/simulation/distributorlistpreferences.h" #include "blackmisc/simulation/interpolationhints.h" #include "blackmisc/simulation/interpolationrenderingsetup.h" +#include "blackmisc/simulation/interpolationsetuplist.h" #include "blackmisc/simulation/matchingstatistics.h" #include "blackmisc/simulation/simulatedaircraft.h" #include "blackmisc/simulation/simulatedaircraftlist.h"