From 94f519961b70038e4f50da7d7daa9caf4058127c Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Thu, 25 Jul 2019 16:32:22 +0200 Subject: [PATCH] Ref T709, added XSwiftBus settings class als based on the same Qt free base class In order to compile included the cpp file --- src/xswiftbus/settings.cpp | 30 ++++++++++++++++++++++++++++++ src/xswiftbus/settings.h | 31 +++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 src/xswiftbus/settings.cpp create mode 100644 src/xswiftbus/settings.h diff --git a/src/xswiftbus/settings.cpp b/src/xswiftbus/settings.cpp new file mode 100644 index 000000000..22e552733 --- /dev/null +++ b/src/xswiftbus/settings.cpp @@ -0,0 +1,30 @@ +/* Copyright (C) 2019 + * 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. 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 whole code in this translation unit, as this code is used on swift/and XSWiftBus side +// BLACKMISC_EXPORT cannot be used +#include "blackmisc/simulation/settings/xswiftbussettingsqtfree.cpp" + +#include "settings.h" +#include + +using namespace BlackMisc::Simulation::Settings; + +namespace XSwiftBus +{ + CSettings::CSettings() : CXSwiftBusSettingsQtFree() + { + // void + } + + CSettings::~CSettings() + { + // void + } +} // ns + diff --git a/src/xswiftbus/settings.h b/src/xswiftbus/settings.h new file mode 100644 index 000000000..1c89801f6 --- /dev/null +++ b/src/xswiftbus/settings.h @@ -0,0 +1,31 @@ +/* Copyright (C) 2019 + * 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. 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. + */ + +#ifndef BLACKMISC_XSWIFTBUS_CSETTINGS_H +#define BLACKMISC_XSWIFTBUS_CSETTINGS_H + +#include "blackmisc/simulation/settings/xswiftbussettingsqtfree.h" +#include + +namespace XSwiftBus +{ + /*! + * XSwiftBus/swift side settings class, JSON capable, shared among all services + */ + class CSettings : public BlackMisc::Simulation::Settings::CXSwiftBusSettingsQtFree + { + public: + //! Constructor. + CSettings(); + + //! Destructor; + ~CSettings(); + }; +} // ns + +#endif