Explicit template instantiations for mixins for value classes

To reduce compile time.
This commit is contained in:
Mat Sutcliffe
2021-10-04 20:33:49 +01:00
parent 0a121d913d
commit 2b72600937
202 changed files with 461 additions and 2 deletions

View File

@@ -17,6 +17,8 @@
#include <QStringBuilder>
#include <QtGlobal>
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CAuthenticatedUser)
namespace BlackMisc::Network
{
CAuthenticatedUser::CAuthenticatedUser()

View File

@@ -25,11 +25,13 @@
#include <QString>
#include <QStringList>
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CAuthenticatedUser)
namespace BlackMisc::Network
{
/*!
* Value object encapsulating information of an authentiated user.
*/
* Value object encapsulating information of an authentiated user.
*/
class BLACKMISC_EXPORT CAuthenticatedUser :
public CValueObject<CAuthenticatedUser>,
public BlackMisc::Db::IDatastoreObjectWithIntegerKey

View File

@@ -10,6 +10,7 @@
#include "blackmisc/aviation/callsign.h"
#include "blackmisc/mixin/mixincompare.h"
#include "blackmisc/iconlist.h"
#include "blackmisc/propertyindexvariantmap.h" // needed for Mixin::Index::apply
#include <QPixmap>
#include <QString>
@@ -17,6 +18,8 @@
#include <QStringList>
#include <tuple>
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CClient)
namespace BlackMisc::Network
{
QString CClient::convertToQString(bool i18n) const

View File

@@ -22,6 +22,8 @@
#include <QMetaType>
#include <QString>
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CClient)
namespace BlackMisc::Network
{
//! Another client software.

View File

@@ -8,6 +8,8 @@
#include "blackmisc/network/connectionstatus.h"
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CConnectionStatus)
namespace BlackMisc::Network
{
QString CConnectionStatus::convertToQString(bool i18n) const

View File

@@ -14,6 +14,8 @@
#include "blackmisc/blackmiscexport.h"
#include "blackmisc/valueobject.h"
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CConnectionStatus)
namespace BlackMisc::Network
{
//! Value object encapsulating information about a connection status

View File

@@ -11,6 +11,8 @@
#include "blackmisc/verify.h"
#include "blackmisc/comparefunctions.h"
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CEcosystem)
namespace BlackMisc::Network
{
QString CEcosystem::convertToQString(bool i18n) const

View File

@@ -17,6 +17,8 @@
#include <QMetaType>
#include <QString>
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CEcosystem)
namespace BlackMisc::Network
{
//! Ecosystem of server belonging together.

View File

@@ -8,6 +8,8 @@
#include "blackmisc/network/facilitytype.h"
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CFacilityType)
namespace BlackMisc::Network
{
QString CFacilityType::convertToQString(bool i18n) const

View File

@@ -14,6 +14,8 @@
#include "blackmisc/blackmiscexport.h"
#include "blackmisc/valueobject.h"
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CFacilityType)
namespace BlackMisc::Network
{
//! Value object encapsulating the ATC facility type, e.g. TWR, DEP, APP

View File

@@ -19,6 +19,8 @@
using namespace BlackMisc;
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CFsdSetup)
namespace BlackMisc::Network
{
CFsdSetup::CFsdSetup(SendReceiveDetails sendReceive) : m_sendReceive(sendReceive)

View File

@@ -20,6 +20,8 @@
#include <QMetaType>
#include <QString>
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CFsdSetup)
namespace BlackMisc::Network
{
//! Value object for a FSD setup

View File

@@ -8,6 +8,8 @@
#include "blackmisc/network/loginmode.h"
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CLoginMode)
namespace BlackMisc::Network
{
QString CLoginMode::convertToQString(bool i18n) const

View File

@@ -14,6 +14,8 @@
#include "blackmisc/blackmiscexport.h"
#include "blackmisc/valueobject.h"
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CLoginMode)
namespace BlackMisc::Network
{
//! Value object encapsulating information about login mode

View File

@@ -17,6 +17,8 @@
using namespace BlackMisc;
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CRawFsdMessage)
namespace BlackMisc::Network
{
CRawFsdMessage::CRawFsdMessage(const QString &rawMessage)

View File

@@ -21,6 +21,8 @@
#include <QMetaType>
#include <QString>
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CRawFsdMessage)
namespace BlackMisc::Network
{
//! Value object for a raw FSD message

View File

@@ -11,6 +11,8 @@
#include <QJsonValue>
#include <QtGlobal>
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CRemoteFile)
namespace BlackMisc::Network
{
CRemoteFile::CRemoteFile(const QString &name, const QString &description)

View File

@@ -22,6 +22,8 @@
#include <QMetaType>
#include <QString>
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CRemoteFile)
namespace BlackMisc::Network
{
/*!

View File

@@ -11,6 +11,8 @@
#include <QtGlobal>
#include <QStringBuilder>
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CRole)
namespace BlackMisc::Network
{
CRole::CRole(const QString &name, const QString &description)

View File

@@ -21,6 +21,8 @@
#include <QMetaType>
#include <QString>
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CRole)
namespace BlackMisc::Network
{
/*!

View File

@@ -20,6 +20,8 @@
using namespace BlackMisc::Audio;
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CServer)
namespace BlackMisc::Network
{
const QList<int> &CServer::allServerTypes()

View File

@@ -26,6 +26,8 @@
#include <QMetaType>
#include <QString>
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CServer)
namespace BlackMisc::Network
{
//! Value object encapsulating information of a server

View File

@@ -12,6 +12,8 @@
#include <QtGlobal>
#include <QStringBuilder>
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network::Settings, CNetworkSettings)
namespace BlackMisc::Network::Settings
{
QString CNetworkSettings::convertToQString(bool i18n) const

View File

@@ -20,6 +20,8 @@
#include <QMetaType>
#include <QString>
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network::Settings, CNetworkSettings)
namespace BlackMisc::Network::Settings
{
//! Network settings

View File

@@ -21,6 +21,8 @@
using namespace BlackMisc::Aviation;
using namespace BlackMisc::PhysicalQuantities;
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CTextMessage)
namespace BlackMisc::Network
{
CTextMessage::CTextMessage(const QString &message, const CFrequency &frequency, const CCallsign &senderCallsign)

View File

@@ -25,6 +25,8 @@
#include <QPixmap>
#include <QString>
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CTextMessage)
namespace BlackMisc::Network
{
/*!

View File

@@ -14,6 +14,8 @@
#include <QPair>
#include <QtGlobal>
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CUrl)
namespace BlackMisc::Network
{
CUrl::CUrl(const QString &fullUrl)

View File

@@ -22,6 +22,8 @@
#include <QString>
#include <QUrl>
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CUrl)
namespace BlackMisc::Network
{
//! Value object encapsulating information of a location,

View File

@@ -17,6 +17,8 @@
#include <atomic>
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CUrlLog)
namespace BlackMisc::Network
{
CUrlLog::CUrlLog(const CUrl &url) :

View File

@@ -20,6 +20,8 @@
#include <QJsonObject>
#include <QString>
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CUrlLog)
namespace BlackMisc::Network
{
//! Information about accessing one URL over the network

View File

@@ -11,6 +11,7 @@
#include "blackmisc/propertyindexref.h"
#include "blackmisc/statusmessage.h"
#include "blackmisc/stringutils.h"
#include "blackmisc/propertyindexvariantmap.h" // needed for Mixin::Index::apply
#include <QChar>
#include <QRegularExpression>
@@ -21,6 +22,8 @@
using namespace BlackMisc::Aviation;
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CUser)
namespace BlackMisc::Network
{
CUser::CUser(const CCallsign &callsign)

View File

@@ -23,6 +23,8 @@
#include <QMetaType>
#include <QString>
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CUser)
namespace BlackMisc::Network
{
/*!

View File

@@ -15,6 +15,8 @@
using namespace BlackMisc;
BLACK_DEFINE_VALUEOBJECT_MIXINS(BlackMisc::Network, CVoiceCapabilities)
namespace BlackMisc::Network
{
CVoiceCapabilities::CVoiceCapabilities(const QString &flightPlanRemarks)

View File

@@ -14,6 +14,8 @@
#include "blackmisc/blackmiscexport.h"
#include "blackmisc/valueobject.h"
BLACK_DECLARE_VALUEOBJECT_MIXINS(BlackMisc::Network, CVoiceCapabilities)
namespace BlackMisc::Network
{
//! Value object encapsulating information for voice capabilities.