18 #include <QJsonDocument> 189 QByteArray array (json.toStdString().c_str());
190 QJsonDocument doc = QJsonDocument::fromJson(array);
191 QJsonObject jsonObject = doc.object();
249 QJsonDocument doc(*obj);
250 QByteArray bytes = doc.toJson();
252 return QString(bytes);
257 QJsonObject* obj =
new QJsonObject();
268 obj->insert(
"log2Interp", QJsonValue(
log2_interp));
280 obj->insert(
"bandwidth", QJsonValue(
bandwidth));
286 obj->insert(
"globalGain", QJsonValue(
global_gain));
292 obj->insert(
"autoGain", QJsonValue(
auto_gain));
551 bool isObjectUpdated =
false;
559 if(
antenna !=
nullptr && *
antenna != QString(
"")){ isObjectUpdated =
true;
break;}
576 return isObjectUpdated;
void setAutoIqCorrection(qint32 auto_iq_correction)
QList< SWGArgValue * > * getTunableElements()
SWGComplex * getIqCorrection()
virtual SWGSoapySDROutputSettings * fromJson(QString &jsonString) override
void setAutoDcCorrection(qint32 auto_dc_correction)
qint32 getUseReverseApi()
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
QList< SWGArgValue * > * device_arg_settings
void setAutoGain(qint32 auto_gain)
SWGComplex * getDcCorrection()
bool m_transverter_delta_frequency_isSet
QList< SWGArgValue * > * individual_gains
void setDevSampleRate(qint32 dev_sample_rate)
QList< SWGArgValue * > * getStreamArgSettings()
bool m_transverter_mode_isSet
bool m_reverse_api_address_isSet
void setTunableElements(QList< SWGArgValue *> *tunable_elements)
SWGSoapySDROutputSettings()
qint32 getAutoIqCorrection()
virtual void fromJsonObject(QJsonObject &json) override
bool m_auto_iq_correction_isSet
qint32 getAutoDcCorrection()
QList< SWGArgValue * > * stream_arg_settings
bool m_auto_dc_correction_isSet
void setIndividualGains(QList< SWGArgValue *> *individual_gains)
bool m_dev_sample_rate_isSet
bool m_stream_arg_settings_isSet
void setAntenna(QString *antenna)
bool m_dc_correction_isSet
virtual bool isSet() override
void setIqCorrection(SWGComplex *iq_correction)
bool m_l_oppm_tenths_isSet
qint32 getTransverterMode()
virtual bool isSet() override
void setBandwidth(qint32 bandwidth)
QList< SWGArgValue * > * tunable_elements
bool m_reverse_api_device_index_isSet
qint32 getReverseApiPort()
qint32 reverse_api_device_index
void setUseReverseApi(qint32 use_reverse_api)
void setDcCorrection(SWGComplex *dc_correction)
qint32 auto_iq_correction
qint64 transverter_delta_frequency
void setTransverterMode(qint32 transverter_mode)
QString * reverse_api_address
bool m_iq_correction_isSet
bool m_device_arg_settings_isSet
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
void setReverseApiAddress(QString *reverse_api_address)
void setTransverterDeltaFrequency(qint64 transverter_delta_frequency)
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setReverseApiPort(qint32 reverse_api_port)
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
virtual ~SWGSoapySDROutputSettings()
void setCenterFrequency(qint64 center_frequency)
qint32 getReverseApiDeviceIndex()
void setDeviceArgSettings(QList< SWGArgValue *> *device_arg_settings)
QList< SWGArgValue * > * getIndividualGains()
QList< SWGArgValue * > * getDeviceArgSettings()
bool m_individual_gains_isSet
bool m_use_reverse_api_isSet
virtual QJsonObject * asJsonObject() override
qint64 getTransverterDeltaFrequency()
void setStreamArgSettings(QList< SWGArgValue *> *stream_arg_settings)
virtual QString asJson() override
bool m_reverse_api_port_isSet
SWGComplex * iq_correction
SWGComplex * dc_correction
bool m_center_frequency_isSet
qint64 getCenterFrequency()
void setLog2Interp(qint32 log2_interp)
bool m_tunable_elements_isSet
qint32 getDevSampleRate()
qint32 auto_dc_correction
void setLOppmTenths(qint32 l_oppm_tenths)
void setGlobalGain(qint32 global_gain)
QString * getReverseApiAddress()