mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
Explicit template instantiations for mixins for value classes
To reduce compile time.
This commit is contained in:
@@ -10,6 +10,8 @@
|
||||
#include "blackmisc/stringutils.h"
|
||||
#include <QStringBuilder>
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CAircraftMatcherSetup)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
CAircraftMatcherSetup::CAircraftMatcherSetup()
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
#include "blackmisc/valueobject.h"
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CAircraftMatcherSetup)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
//! Matcher settings
|
||||
|
||||
@@ -32,6 +32,8 @@ using namespace BlackMisc::Aviation;
|
||||
using namespace BlackMisc::PhysicalQuantities;
|
||||
using namespace BlackMisc::Db;
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CAircraftModel)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
void CAircraftModel::registerMetadata()
|
||||
|
||||
@@ -41,6 +41,8 @@
|
||||
#include <QDir>
|
||||
#include <tuple>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CAircraftModel)
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
class CIcon;
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
using namespace BlackMisc::Aviation;
|
||||
using namespace BlackMisc::PhysicalQuantities;
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CAirspaceAircraftSnapshot)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
CAirspaceAircraftSnapshot::CAirspaceAircraftSnapshot()
|
||||
|
||||
@@ -25,6 +25,8 @@
|
||||
#include <QString>
|
||||
#include <QtGlobal>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CAirspaceAircraftSnapshot)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
//! Current situation in the skies analyzed.
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
#include <QStringBuilder>
|
||||
#include <QtGlobal>
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CDistributor)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
CDistributor::CDistributor() { }
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
#include <QSet>
|
||||
#include <QString>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CDistributor)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
//! Value object encapsulating information of software distributor.
|
||||
|
||||
@@ -10,6 +10,8 @@
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CDistributorListPreferences)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
CDistributorListPreferences::CDistributorListPreferences() { }
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include <QString>
|
||||
#include <tuple>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CDistributorListPreferences)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
//! Preferences for distributors
|
||||
|
||||
@@ -20,6 +20,8 @@ using namespace BlackMisc;
|
||||
using namespace BlackMisc::Aviation;
|
||||
using namespace BlackMisc::Simulation;
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::FsCommon, CAircraftCfgEntries)
|
||||
|
||||
namespace BlackMisc::Simulation::FsCommon
|
||||
{
|
||||
CAircraftCfgEntries::CAircraftCfgEntries(const QString &fileName, int index, const QString &title, const QString &atcType, const QString &atcModel, const QString &atcParkingCode, const QString &description) :
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
#include <QMetaType>
|
||||
#include <QString>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::FsCommon, CAircraftCfgEntries)
|
||||
|
||||
namespace BlackMisc::Simulation::FsCommon
|
||||
{
|
||||
//! Set of aircraft.cfg entries representing an aircraft (FSX)
|
||||
|
||||
@@ -18,6 +18,8 @@
|
||||
using namespace BlackMisc::Aviation;
|
||||
using namespace BlackMisc::Simulation;
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::FsCommon, CVPilotModelRule)
|
||||
|
||||
namespace BlackMisc::Simulation::FsCommon
|
||||
{
|
||||
CVPilotModelRule::CVPilotModelRule() { }
|
||||
|
||||
@@ -22,6 +22,8 @@
|
||||
#include <QString>
|
||||
#include <QtGlobal>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::FsCommon, CVPilotModelRule)
|
||||
|
||||
namespace BlackMisc::Simulation::FsCommon
|
||||
{
|
||||
//! Value object encapsulating information of software distributor.
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
#include "blackmisc/stringutils.h"
|
||||
#include "blackmisc/verify.h"
|
||||
#include "blackconfig/buildconfig.h"
|
||||
#include "blackmisc/propertyindexvariantmap.h" // needed for Mixin::Index::apply
|
||||
#include <QStringBuilder>
|
||||
|
||||
using namespace BlackConfig;
|
||||
@@ -18,6 +19,9 @@ using namespace BlackMisc::Aviation;
|
||||
using namespace BlackMisc::PhysicalQuantities;
|
||||
using namespace BlackMisc::Network;
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CInterpolationAndRenderingSetupGlobal)
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CInterpolationAndRenderingSetupPerCallsign)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
CInterpolationAndRenderingSetupBase::CInterpolationAndRenderingSetupBase()
|
||||
|
||||
@@ -19,6 +19,9 @@
|
||||
#include "blackmisc/valueobject.h"
|
||||
#include <QString>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CInterpolationAndRenderingSetupGlobal)
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CInterpolationAndRenderingSetupPerCallsign)
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace Network { class CClient; }
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
#include "blackmisc/simulation/matchingstatisticsentry.h"
|
||||
#include "blackmisc/comparefunctions.h"
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CMatchingStatisticsEntry)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
CMatchingStatisticsEntry::CMatchingStatisticsEntry() { }
|
||||
|
||||
@@ -15,6 +15,8 @@
|
||||
#include "blackmisc/valueobject.h"
|
||||
#include "blackmisc/timestampbased.h"
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CMatchingStatisticsEntry)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
//! Value object for a matching statistics entry.
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
#include "blackmisc/simulation/settings/modelsettings.h"
|
||||
#include "blackmisc/stringutils.h"
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::Settings, CModelSettings)
|
||||
|
||||
namespace BlackMisc::Simulation::Settings
|
||||
{
|
||||
CModelSettings::CModelSettings()
|
||||
|
||||
@@ -16,6 +16,8 @@
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
#include "blackmisc/propertyindexref.h"
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::Settings, CModelSettings)
|
||||
|
||||
namespace BlackMisc::Simulation::Settings
|
||||
{
|
||||
//! Settings for models
|
||||
|
||||
@@ -22,6 +22,10 @@ using namespace BlackMisc::Simulation::FsCommon;
|
||||
using namespace BlackMisc::Simulation::XPlane;
|
||||
using namespace BlackMisc::Simulation::Flightgear;
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::Settings, CSimulatorSettings)
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::Settings, CFsxP3DSettings)
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::Settings, CSimulatorMessagesSettings)
|
||||
|
||||
namespace BlackMisc::Simulation::Settings
|
||||
{
|
||||
const QString &CSimulatorSettings::cgSourceAsString(CSimulatorSettings::CGSource source)
|
||||
|
||||
@@ -25,6 +25,10 @@
|
||||
#include <QStringList>
|
||||
#include <QObject>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::Settings, CSimulatorSettings)
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::Settings, CFsxP3DSettings)
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::Settings, CSimulatorMessagesSettings)
|
||||
|
||||
namespace BlackMisc::Simulation::Settings
|
||||
{
|
||||
//! Settings for simulator
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
#include "blackmisc/simulation/settings/swiftpluginsettings.h"
|
||||
#include "blackmisc/stringutils.h"
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::Settings, CSwiftPluginSettings)
|
||||
|
||||
namespace BlackMisc::Simulation::Settings
|
||||
{
|
||||
CSwiftPluginSettings::CSwiftPluginSettings()
|
||||
|
||||
@@ -17,6 +17,8 @@
|
||||
#include "blackmisc/propertyindexref.h"
|
||||
#include "blackmisc/blackmiscexport.h"
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::Settings, CSwiftPluginSettings)
|
||||
|
||||
namespace BlackMisc::Simulation::Settings
|
||||
{
|
||||
//! Settings for models
|
||||
|
||||
@@ -9,6 +9,8 @@
|
||||
#include "blackmisc/simulation/settings/xswiftbussettings.h"
|
||||
#include "blackmisc/simulation/settings/xswiftbussettingsqtfree.inc"
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::Settings, CXSwiftBusSettings)
|
||||
|
||||
namespace BlackMisc::Simulation::Settings
|
||||
{
|
||||
CXSwiftBusSettings::CXSwiftBusSettings() { }
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
|
||||
#include <QString>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::Settings, CXSwiftBusSettings)
|
||||
|
||||
namespace BlackMisc::Simulation::Settings
|
||||
{
|
||||
//! XSwiftBus settings
|
||||
|
||||
@@ -21,6 +21,8 @@ using namespace BlackMisc::PhysicalQuantities;
|
||||
using namespace BlackMisc::Aviation;
|
||||
using namespace BlackMisc::Network;
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CSimulatedAircraft)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
CSimulatedAircraft::CSimulatedAircraft()
|
||||
|
||||
@@ -39,6 +39,8 @@
|
||||
#include <QtGlobal>
|
||||
#include <array>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CSimulatedAircraft)
|
||||
|
||||
namespace BlackMisc
|
||||
{
|
||||
namespace Aviation
|
||||
|
||||
@@ -26,6 +26,8 @@ using namespace BlackMisc::Db;
|
||||
using namespace BlackMisc::Simulation::FsCommon;
|
||||
using namespace BlackMisc::Simulation::XPlane;
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CSimulatorInfo)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
CSimulatorInfo::CSimulatorInfo()
|
||||
|
||||
@@ -26,6 +26,8 @@
|
||||
#include <QMultiMap>
|
||||
#include <QStringList>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CSimulatorInfo)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
//! Simple hardcoded info about the corresponding simulator.
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
#include <QDBusMetaType>
|
||||
#include <QJsonObject>
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CSimulatorInternals)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
void CSimulatorInternals::setValue(const QString &name, const QString &value)
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#include <QString>
|
||||
#include <tuple>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CSimulatorInternals)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
//! Simulator internals for flight simulators.
|
||||
|
||||
@@ -14,6 +14,8 @@
|
||||
using namespace BlackConfig;
|
||||
using namespace BlackMisc;
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CSimulatorPluginInfo)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
CSimulatorPluginInfo::CSimulatorPluginInfo(const QString &identifier, const QString &name, const QString &simulator, const QString &description, bool valid) :
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
#include <QMetaType>
|
||||
#include <QString>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation, CSimulatorPluginInfo)
|
||||
|
||||
namespace BlackMisc::Simulation
|
||||
{
|
||||
//! Describing a simulator plugin
|
||||
|
||||
@@ -12,6 +12,8 @@
|
||||
|
||||
#include <QtGlobal>
|
||||
|
||||
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::XPlane, CNavDataReference)
|
||||
|
||||
namespace BlackMisc::Simulation::XPlane
|
||||
{
|
||||
CNavDataReference::CNavDataReference() = default;
|
||||
|
||||
@@ -29,6 +29,8 @@
|
||||
#include <array>
|
||||
#include <tuple>
|
||||
|
||||
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Simulation::XPlane, CNavDataReference)
|
||||
|
||||
namespace BlackMisc::Simulation::XPlane
|
||||
{
|
||||
/*!
|
||||
|
||||
Reference in New Issue
Block a user