mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
Ref T723 [xswiftbus] Expose configuration for render phase debug messages
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#define BLACKMISC_XSWIFTBUS_CSETTINGS_H
|
||||
|
||||
#include "blackmisc/simulation/settings/xswiftbussettingsqtfree.h"
|
||||
#include "config.h"
|
||||
#include <string>
|
||||
#include <mutex>
|
||||
|
||||
@@ -41,6 +42,9 @@ namespace XSwiftBus
|
||||
//! \threadsafe
|
||||
void setSettings(const CSettings &settings);
|
||||
|
||||
//! Get settings from xswiftbus.conf (needed during plugin initialization)
|
||||
virtual const CConfig &getConfig() const = 0;
|
||||
|
||||
private:
|
||||
mutable std::mutex m_settingsMutex;
|
||||
CSettings m_pluginSettings; //!< owner of the settings
|
||||
@@ -62,6 +66,9 @@ namespace XSwiftBus
|
||||
//! \copydoc CSettingsProvider::setSettings
|
||||
void setSettings(const CSettings &settings);
|
||||
|
||||
//! \copydoc CSettingsProvider::getConfig
|
||||
const CConfig &getConfig() const;
|
||||
|
||||
private:
|
||||
CSettingsProvider *m_provider = nullptr;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user