7#include "nlohmann/json.hpp"
9#include "xswiftbussettingsqtfree.h"
12# pragma GCC diagnostic push
13# pragma GCC diagnostic ignored "-Wzero-as-null-pointer-constant"
16using namespace swift::misc::simulation::settings;
17using namespace swift::misc::simulation::xplane;
34namespace swift::misc::simulation::settings
43 const nlohmann::basic_json parsed = nlohmann::json::parse(json,
nullptr,
false);
45 if (parsed.is_discarded())
157 ", labelColor: " + std::to_string((
m_labelColor >> 16) & 0xff) +
";" +
248# pragma GCC diagnostic pop
xswiftbus/swift side settings class, JSON capable, shared among all services
static constexpr char JsonBundleTaxiLandingLights[]
The JSON members.
static constexpr char JsonTerrainProbe[]
The JSON members.
int update(const CXSwiftBusSettingsQtFree &newValues)
Update only changed values.
int m_followAircraftDistanceM
follow aircraft in distance
static constexpr char JsonTcas[]
The JSON members.
static constexpr char JsonTimestamp[]
The JSON members.
static constexpr char JsonMaxPlanes[]
The JSON members.
int64_t m_msSinceEpochQtFree
timestamp
static constexpr char JsonLogRenderPhases[]
The JSON members.
static constexpr char JsonLabelColor[]
The JSON members.
virtual void objectUpdated()=0
Object has been updated.
static constexpr char JsonMessageBox[]
The JSON members.
int m_labelColor
labels in XPlane
static constexpr char JsonFollowAircraftDistanceM[]
The JSON members.
std::string m_dBusServerAddress
DBus server (also in class CXSwiftBusConfigWriter).
static constexpr char JsonDBusServerAddress[]
The JSON members.
std::string m_nightTextureMode
night texture mode
std::string m_msgBox
left, top, right, bottom, lines, duration, colors
bool m_bundleTaxiLandingLights
bundle taxi and landing lights
bool m_logRenderPhases
render phases debug messages
bool m_tcasEnabled
TCAS functionality.
std::string convertToString() const
Convert to string.
static constexpr char JsonNightTextureMode[]
The JSON members.
static constexpr char JsonDrawingLabels[]
The JSON members.
bool m_terrainProbeEnabled
terrain probe to establish ground elevation
double m_maxDrawDistanceNM
distance in XPlane
std::string toXSwiftBusJsonString() const
As JSON string.
static constexpr char JsonMaxDrawDistance[]
The JSON members.
bool parseXSwiftBusString(const std::string &json)
Load and parse config file.
bool m_drawingLabels
labels in XPlane