18 #include <QJsonDocument> 114 QByteArray array (json.toStdString().c_str());
115 QJsonDocument doc = QJsonDocument::fromJson(array);
116 QJsonObject jsonObject = doc.object();
156 QJsonDocument doc(*obj);
157 QByteArray bytes = doc.toJson();
159 return QString(bytes);
164 QJsonObject* obj =
new QJsonObject();
175 obj->insert(
"bandwidth", QJsonValue(
bandwidth));
178 obj->insert(
"globalGain", QJsonValue(
global_gain));
181 obj->insert(
"biasTee", QJsonValue(
bias_tee));
184 obj->insert(
"log2Interp", QJsonValue(
log2_interp));
341 bool isObjectUpdated =
false;
357 return isObjectUpdated;
bool m_transverter_mode_isSet
void setLog2Interp(qint32 log2_interp)
qint64 getCenterFrequency()
virtual QString asJson() override
void setTransverterMode(qint32 transverter_mode)
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
bool m_use_reverse_api_isSet
bool m_reverse_api_address_isSet
void setBandwidth(qint32 bandwidth)
void setDevSampleRate(qint32 dev_sample_rate)
qint32 getReverseApiDeviceIndex()
void setBiasTee(qint32 bias_tee)
qint32 getUseReverseApi()
virtual QJsonObject * asJsonObject() override
virtual SWGBladeRF2OutputSettings * fromJson(QString &jsonString) override
bool m_reverse_api_port_isSet
void setReverseApiAddress(QString *reverse_api_address)
qint32 getReverseApiPort()
void setGlobalGain(qint32 global_gain)
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
QString * reverse_api_address
QString * getReverseApiAddress()
qint32 getDevSampleRate()
bool m_center_frequency_isSet
virtual ~SWGBladeRF2OutputSettings()
void setReverseApiPort(qint32 reverse_api_port)
bool m_reverse_api_device_index_isSet
bool m_transverter_delta_frequency_isSet
virtual bool isSet() override
bool m_l_oppm_tenths_isSet
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
void setLOppmTenths(qint32 l_oppm_tenths)
qint32 reverse_api_device_index
qint64 transverter_delta_frequency
qint32 getTransverterMode()
void setCenterFrequency(qint64 center_frequency)
SWGBladeRF2OutputSettings()
bool m_dev_sample_rate_isSet
qint64 getTransverterDeltaFrequency()
void setUseReverseApi(qint32 use_reverse_api)
void setTransverterDeltaFrequency(qint64 transverter_delta_frequency)
virtual void fromJsonObject(QJsonObject &json) override