18 #include <QJsonDocument> 167 QByteArray array (json.toStdString().c_str());
168 QJsonDocument doc = QJsonDocument::fromJson(array);
169 QJsonObject jsonObject = doc.object();
211 QJsonDocument doc(*obj);
212 QByteArray bytes = doc.toJson();
214 return QString(bytes);
219 QJsonObject* obj =
new QJsonObject();
242 obj->insert(
"hasAGC", QJsonValue(
has_agc));
356 QList<SWGSoapySDRGainSetting*>*
366 QList<SWGSoapySDRFrequencySetting*>*
386 QList<SWGRangeFloat*>*
396 QList<SWGRangeFloat*>*
409 bool isObjectUpdated =
false;
417 if(
antennas->size() > 0){ isObjectUpdated =
true;
break;}
420 if(
gain_settings->size() > 0){ isObjectUpdated =
true;
break;}
423 if(
rates_ranges->size() > 0){ isObjectUpdated =
true;
break;}
426 return isObjectUpdated;
bool m_has_dc_auto_correction_isSet
QList< SWGArgInfo * > * device_settings_args
QList< SWGRangeFloat * > * rates_ranges
void setHasFrequencyCorrectionValue(qint32 has_frequency_correction_value)
qint32 has_frequency_correction_value
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
bool m_device_settings_args_isSet
QList< SWGArgInfo * > * stream_settings_args
bool m_frequency_settings_isSet
virtual void fromJsonObject(QJsonObject &json) override
void setFrequencySettingsArgs(QList< SWGArgInfo *> *frequency_settings_args)
void setHasAgc(qint32 has_agc)
QList< SWGSoapySDRGainSetting * > * getGainSettings()
void setDeviceSettingsArgs(QList< SWGArgInfo *> *device_settings_args)
virtual QJsonObject * asJsonObject() override
QList< SWGArgInfo * > * getStreamSettingsArgs()
qint32 getHasFrequencyCorrectionValue()
void setStreamSettingsArgs(QList< SWGArgInfo *> *stream_settings_args)
qint32 has_dc_offset_value
bool m_has_frequency_correction_value_isSet
void setGainRange(SWGRangeFloat *gain_range)
void setHasDcAutoCorrection(qint32 has_dc_auto_correction)
QList< SWGArgInfo * > * getDeviceSettingsArgs()
virtual SWGSoapySDRReport * fromJson(QString &jsonString) override
void setRatesRanges(QList< SWGRangeFloat *> *rates_ranges)
bool m_frequency_settings_args_isSet
void setGainSettings(QList< SWGSoapySDRGainSetting *> *gain_settings)
bool m_rates_ranges_isSet
qint32 getHasIqBalanceValue()
SWGRangeFloat * gain_range
QList< SWGArgInfo * > * frequency_settings_args
void setBandwidthsRanges(QList< SWGRangeFloat *> *bandwidths_ranges)
qint32 has_dc_auto_correction
QList< SWGArgInfo * > * getFrequencySettingsArgs()
QList< SWGRangeFloat * > * getBandwidthsRanges()
qint32 getHasDcOffsetValue()
QList< SWGSoapySDRFrequencySetting * > * getFrequencySettings()
QList< SWGSoapySDRGainSetting * > * gain_settings
QList< QString * > * antennas
virtual bool isSet() override
void setFrequencySettings(QList< SWGSoapySDRFrequencySetting *> *frequency_settings)
qint32 has_iq_balance_value
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
bool m_has_dc_offset_value_isSet
SWGRangeFloat * getGainRange()
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
virtual ~SWGSoapySDRReport()
void setHasIqBalanceValue(qint32 has_iq_balance_value)
QList< SWGSoapySDRFrequencySetting * > * frequency_settings
bool m_bandwidths_ranges_isSet
bool m_has_iq_balance_value_isSet
QList< SWGRangeFloat * > * bandwidths_ranges
qint32 getHasDcAutoCorrection()
QList< QString * > * getAntennas()
bool m_stream_settings_args_isSet
QList< SWGRangeFloat * > * getRatesRanges()
virtual QString asJson() override
bool m_gain_settings_isSet
void setAntennas(QList< QString *> *antennas)
void setHasDcOffsetValue(qint32 has_dc_offset_value)
virtual bool isSet() override