mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 11:55:35 +08:00
Ref T709, added XSwiftBus settings class als based on the same Qt free base class
In order to compile included the cpp file
This commit is contained in:
committed by
Mat Sutcliffe
parent
246ed0d955
commit
94f519961b
30
src/xswiftbus/settings.cpp
Normal file
30
src/xswiftbus/settings.cpp
Normal file
@@ -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 <string>
|
||||
|
||||
using namespace BlackMisc::Simulation::Settings;
|
||||
|
||||
namespace XSwiftBus
|
||||
{
|
||||
CSettings::CSettings() : CXSwiftBusSettingsQtFree()
|
||||
{
|
||||
// void
|
||||
}
|
||||
|
||||
CSettings::~CSettings()
|
||||
{
|
||||
// void
|
||||
}
|
||||
} // ns
|
||||
|
||||
31
src/xswiftbus/settings.h
Normal file
31
src/xswiftbus/settings.h
Normal file
@@ -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 <string>
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user