18 #include <QJsonDocument> 61 group =
new QString(
"");
84 if(
group !=
nullptr) {
117 QByteArray array (json.toStdString().c_str());
118 QJsonDocument doc = QJsonDocument::fromJson(array);
119 QJsonObject jsonObject = doc.object();
153 QJsonDocument doc(*obj);
154 QByteArray bytes = doc.toJson();
156 return QString(bytes);
161 QJsonObject* obj =
new QJsonObject();
165 if(
group !=
nullptr && *
group != QString(
"")){
266 QList<SWGChannelConfig*>*
276 QList<SWGDeviceConfig*>*
299 bool isObjectUpdated =
false;
302 if(
group !=
nullptr && *
group != QString(
"")){ isObjectUpdated =
true;
break;}
310 if(
layout !=
nullptr && *
layout != QString(
"")){ isObjectUpdated =
true;
break;}
312 return isObjectUpdated;
bool m_device_configs_isSet
QString * getDescription()
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
QList< SWGDeviceConfig * > * device_configs
QList< SWGChannelConfig * > * getChannelConfigs()
void setDcOffsetCorrection(qint32 dc_offset_correction)
virtual bool isSet() override
void setSourcePreset(qint32 source_preset)
virtual QJsonObject * asJsonObject() override
virtual bool isSet() override
SWGGLSpectrum * m_spectrum_config
qint32 getIqImbalanceCorrection()
void setMSpectrumConfig(SWGGLSpectrum *m_spectrum_config)
bool m_iq_imbalance_correction_isSet
void setChannelConfigs(QList< SWGChannelConfig *> *channel_configs)
qint32 getDcOffsetCorrection()
bool m_dc_offset_correction_isSet
void setIqImbalanceCorrection(qint32 iq_imbalance_correction)
void setDescription(QString *description)
void setGroup(QString *group)
virtual SWGPreset * fromJson(QString &jsonString) override
SWGGLSpectrum * getMSpectrumConfig()
void setCenterFrequency(qint64 center_frequency)
bool m_center_frequency_isSet
virtual void fromJsonObject(QJsonObject &json) override
bool m_m_spectrum_config_isSet
bool m_channel_configs_isSet
bool m_source_preset_isSet
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setLayout(QString *layout)
qint64 getCenterFrequency()
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
qint32 iq_imbalance_correction
qint32 dc_offset_correction
virtual QString asJson() override
QList< SWGDeviceConfig * > * getDeviceConfigs()
void setDeviceConfigs(QList< SWGDeviceConfig *> *device_configs)
QList< SWGChannelConfig * > * channel_configs