18 #include <QJsonDocument> 134 QByteArray array (json.toStdString().c_str());
135 QJsonDocument doc = QJsonDocument::fromJson(array);
136 QJsonObject jsonObject = doc.object();
184 QJsonDocument doc(*obj);
185 QByteArray bytes = doc.toJson();
187 return QString(bytes);
192 QJsonObject* obj =
new QJsonObject();
206 obj->insert(
"lpfFIRBW", QJsonValue(
lpf_firbw));
215 obj->insert(
"log2Interp", QJsonValue(
log2_interp));
218 obj->insert(
"lpfBW", QJsonValue(
lpf_bw));
221 obj->insert(
"att", QJsonValue(
att));
421 bool isObjectUpdated =
false;
441 return isObjectUpdated;
QString * reverse_api_address
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
void setReverseApiAddress(QString *reverse_api_address)
virtual QString asJson() override
virtual ~SWGPlutoSdrOutputSettings()
qint64 getTransverterDeltaFrequency()
qint32 getTransverterMode()
void setCenterFrequency(qint64 center_frequency)
void setLog2Interp(qint32 log2_interp)
void setLpfFirbw(qint32 lpf_firbw)
void setTransverterMode(qint32 transverter_mode)
qint32 lpf_fi_rlog2_interp
void setLpfFiRlog2Interp(qint32 lpf_fi_rlog2_interp)
bool m_transverter_mode_isSet
void setLpfFirEnable(qint32 lpf_fir_enable)
virtual bool isSet() override
qint32 reverse_api_device_index
qint32 getReverseApiDeviceIndex()
qint64 getCenterFrequency()
void setAntennaPath(qint32 antenna_path)
bool m_antenna_path_isSet
bool m_center_frequency_isSet
qint32 getLpfFiRlog2Interp()
qint32 getDevSampleRate()
SWGPlutoSdrOutputSettings()
QString * getReverseApiAddress()
virtual QJsonObject * asJsonObject() override
bool m_use_reverse_api_isSet
virtual void fromJsonObject(QJsonObject &json) override
bool m_reverse_api_port_isSet
void setDevSampleRate(qint32 dev_sample_rate)
bool m_lpf_fir_gain_isSet
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
bool m_lpf_fi_rlog2_interp_isSet
void setLpfBw(qint32 lpf_bw)
void setTransverterDeltaFrequency(qint64 transverter_delta_frequency)
qint64 transverter_delta_frequency
bool m_dev_sample_rate_isSet
virtual SWGPlutoSdrOutputSettings * fromJson(QString &jsonString) override
void setUseReverseApi(qint32 use_reverse_api)
bool m_transverter_delta_frequency_isSet
void setLpfFirGain(qint32 lpf_fir_gain)
bool m_reverse_api_device_index_isSet
void setReverseApiDeviceIndex(qint32 reverse_api_device_index)
void setReverseApiPort(qint32 reverse_api_port)
qint32 getUseReverseApi()
qint32 getReverseApiPort()
bool m_l_oppm_tenths_isSet
bool m_reverse_api_address_isSet
bool m_lpf_fir_enable_isSet
void setLOppmTenths(qint32 l_oppm_tenths)