SDRAngel  4.11.5
Developer docs for <a href="https://github.com/f4exb/sdrangel">SDRangel<\a>, an Open Source Qt5 / OpenGL 3.0+ SDR and signal analyzer frontend to various hardware.
Public Member Functions | Private Attributes | List of all members
SWGSDRangel::SWGSoapySDRReport Class Reference

#include <SWGSoapySDRReport.h>

+ Inheritance diagram for SWGSDRangel::SWGSoapySDRReport:
+ Collaboration diagram for SWGSDRangel::SWGSoapySDRReport:

Public Member Functions

 SWGSoapySDRReport ()
 
 SWGSoapySDRReport (QString *json)
 
virtual ~SWGSoapySDRReport ()
 
void init ()
 
void cleanup ()
 
virtual QString asJson () override
 
virtual QJsonObject * asJsonObject () override
 
virtual void fromJsonObject (QJsonObject &json) override
 
virtual SWGSoapySDRReportfromJson (QString &jsonString) override
 
QList< SWGArgInfo * > * getDeviceSettingsArgs ()
 
void setDeviceSettingsArgs (QList< SWGArgInfo *> *device_settings_args)
 
QList< SWGArgInfo * > * getStreamSettingsArgs ()
 
void setStreamSettingsArgs (QList< SWGArgInfo *> *stream_settings_args)
 
qint32 getHasDcAutoCorrection ()
 
void setHasDcAutoCorrection (qint32 has_dc_auto_correction)
 
qint32 getHasDcOffsetValue ()
 
void setHasDcOffsetValue (qint32 has_dc_offset_value)
 
qint32 getHasIqBalanceValue ()
 
void setHasIqBalanceValue (qint32 has_iq_balance_value)
 
qint32 getHasFrequencyCorrectionValue ()
 
void setHasFrequencyCorrectionValue (qint32 has_frequency_correction_value)
 
QList< QString * > * getAntennas ()
 
void setAntennas (QList< QString *> *antennas)
 
qint32 getHasAgc ()
 
void setHasAgc (qint32 has_agc)
 
SWGRangeFloatgetGainRange ()
 
void setGainRange (SWGRangeFloat *gain_range)
 
QList< SWGSoapySDRGainSetting * > * getGainSettings ()
 
void setGainSettings (QList< SWGSoapySDRGainSetting *> *gain_settings)
 
QList< SWGSoapySDRFrequencySetting * > * getFrequencySettings ()
 
void setFrequencySettings (QList< SWGSoapySDRFrequencySetting *> *frequency_settings)
 
QList< SWGArgInfo * > * getFrequencySettingsArgs ()
 
void setFrequencySettingsArgs (QList< SWGArgInfo *> *frequency_settings_args)
 
QList< SWGRangeFloat * > * getRatesRanges ()
 
void setRatesRanges (QList< SWGRangeFloat *> *rates_ranges)
 
QList< SWGRangeFloat * > * getBandwidthsRanges ()
 
void setBandwidthsRanges (QList< SWGRangeFloat *> *bandwidths_ranges)
 
virtual bool isSet () override
 
- Public Member Functions inherited from SWGSDRangel::SWGObject
virtual ~SWGObject ()
 

Private Attributes

QList< SWGArgInfo * > * device_settings_args
 
bool m_device_settings_args_isSet
 
QList< SWGArgInfo * > * stream_settings_args
 
bool m_stream_settings_args_isSet
 
qint32 has_dc_auto_correction
 
bool m_has_dc_auto_correction_isSet
 
qint32 has_dc_offset_value
 
bool m_has_dc_offset_value_isSet
 
qint32 has_iq_balance_value
 
bool m_has_iq_balance_value_isSet
 
qint32 has_frequency_correction_value
 
bool m_has_frequency_correction_value_isSet
 
QList< QString * > * antennas
 
bool m_antennas_isSet
 
qint32 has_agc
 
bool m_has_agc_isSet
 
SWGRangeFloatgain_range
 
bool m_gain_range_isSet
 
QList< SWGSoapySDRGainSetting * > * gain_settings
 
bool m_gain_settings_isSet
 
QList< SWGSoapySDRFrequencySetting * > * frequency_settings
 
bool m_frequency_settings_isSet
 
QList< SWGArgInfo * > * frequency_settings_args
 
bool m_frequency_settings_args_isSet
 
QList< SWGRangeFloat * > * rates_ranges
 
bool m_rates_ranges_isSet
 
QList< SWGRangeFloat * > * bandwidths_ranges
 
bool m_bandwidths_ranges_isSet
 

Detailed Description

Definition at line 37 of file SWGSoapySDRReport.h.

Constructor & Destructor Documentation

◆ SWGSoapySDRReport() [1/2]

SWGSDRangel::SWGSoapySDRReport::SWGSoapySDRReport ( )

Definition at line 30 of file SWGSoapySDRReport.cpp.

References antennas, bandwidths_ranges, device_settings_args, frequency_settings, frequency_settings_args, gain_range, gain_settings, has_agc, has_dc_auto_correction, has_dc_offset_value, has_frequency_correction_value, has_iq_balance_value, m_antennas_isSet, m_bandwidths_ranges_isSet, m_device_settings_args_isSet, m_frequency_settings_args_isSet, m_frequency_settings_isSet, m_gain_range_isSet, m_gain_settings_isSet, m_has_agc_isSet, m_has_dc_auto_correction_isSet, m_has_dc_offset_value_isSet, m_has_frequency_correction_value_isSet, m_has_iq_balance_value_isSet, m_rates_ranges_isSet, m_stream_settings_args_isSet, rates_ranges, and stream_settings_args.

30  {
31  device_settings_args = nullptr;
33  stream_settings_args = nullptr;
43  antennas = nullptr;
44  m_antennas_isSet = false;
45  has_agc = 0;
46  m_has_agc_isSet = false;
47  gain_range = nullptr;
48  m_gain_range_isSet = false;
49  gain_settings = nullptr;
50  m_gain_settings_isSet = false;
51  frequency_settings = nullptr;
53  frequency_settings_args = nullptr;
55  rates_ranges = nullptr;
56  m_rates_ranges_isSet = false;
57  bandwidths_ranges = nullptr;
59 }
QList< SWGArgInfo * > * device_settings_args
QList< SWGRangeFloat * > * rates_ranges
QList< SWGArgInfo * > * stream_settings_args
QList< SWGArgInfo * > * frequency_settings_args
QList< SWGSoapySDRGainSetting * > * gain_settings
QList< SWGSoapySDRFrequencySetting * > * frequency_settings
QList< SWGRangeFloat * > * bandwidths_ranges

◆ SWGSoapySDRReport() [2/2]

SWGSDRangel::SWGSoapySDRReport::SWGSoapySDRReport ( QString *  json)

Definition at line 25 of file SWGSoapySDRReport.cpp.

References fromJson(), and init().

25  {
26  init();
27  this->fromJson(*json);
28 }
virtual SWGSoapySDRReport * fromJson(QString &jsonString) override
+ Here is the call graph for this function:

◆ ~SWGSoapySDRReport()

SWGSDRangel::SWGSoapySDRReport::~SWGSoapySDRReport ( )
virtual

Definition at line 61 of file SWGSoapySDRReport.cpp.

References cleanup().

61  {
62  this->cleanup();
63 }
+ Here is the call graph for this function:

Member Function Documentation

◆ asJson()

QString SWGSDRangel::SWGSoapySDRReport::asJson ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 207 of file SWGSoapySDRReport.cpp.

References asJsonObject().

208 {
209  QJsonObject* obj = this->asJsonObject();
210 
211  QJsonDocument doc(*obj);
212  QByteArray bytes = doc.toJson();
213  delete obj;
214  return QString(bytes);
215 }
virtual QJsonObject * asJsonObject() override
+ Here is the call graph for this function:

◆ asJsonObject()

QJsonObject * SWGSDRangel::SWGSoapySDRReport::asJsonObject ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 218 of file SWGSoapySDRReport.cpp.

References antennas, bandwidths_ranges, device_settings_args, frequency_settings, frequency_settings_args, gain_range, gain_settings, has_agc, has_dc_auto_correction, has_dc_offset_value, has_frequency_correction_value, has_iq_balance_value, SWGSDRangel::SWGRangeFloat::isSet(), m_has_agc_isSet, m_has_dc_auto_correction_isSet, m_has_dc_offset_value_isSet, m_has_frequency_correction_value_isSet, m_has_iq_balance_value_isSet, rates_ranges, stream_settings_args, SWGSDRangel::toJsonArray(), and SWGSDRangel::toJsonValue().

Referenced by asJson().

218  {
219  QJsonObject* obj = new QJsonObject();
220  if(device_settings_args->size() > 0){
221  toJsonArray((QList<void*>*)device_settings_args, obj, "deviceSettingsArgs", "SWGArgInfo");
222  }
223  if(stream_settings_args->size() > 0){
224  toJsonArray((QList<void*>*)stream_settings_args, obj, "streamSettingsArgs", "SWGArgInfo");
225  }
227  obj->insert("hasDCAutoCorrection", QJsonValue(has_dc_auto_correction));
228  }
230  obj->insert("hasDCOffsetValue", QJsonValue(has_dc_offset_value));
231  }
233  obj->insert("hasIQBalanceValue", QJsonValue(has_iq_balance_value));
234  }
236  obj->insert("hasFrequencyCorrectionValue", QJsonValue(has_frequency_correction_value));
237  }
238  if(antennas->size() > 0){
239  toJsonArray((QList<void*>*)antennas, obj, "antennas", "QString");
240  }
241  if(m_has_agc_isSet){
242  obj->insert("hasAGC", QJsonValue(has_agc));
243  }
244  if((gain_range != nullptr) && (gain_range->isSet())){
245  toJsonValue(QString("gainRange"), gain_range, obj, QString("SWGRangeFloat"));
246  }
247  if(gain_settings->size() > 0){
248  toJsonArray((QList<void*>*)gain_settings, obj, "gainSettings", "SWGSoapySDRGainSetting");
249  }
250  if(frequency_settings->size() > 0){
251  toJsonArray((QList<void*>*)frequency_settings, obj, "frequencySettings", "SWGSoapySDRFrequencySetting");
252  }
253  if(frequency_settings_args->size() > 0){
254  toJsonArray((QList<void*>*)frequency_settings_args, obj, "frequencySettingsArgs", "SWGArgInfo");
255  }
256  if(rates_ranges->size() > 0){
257  toJsonArray((QList<void*>*)rates_ranges, obj, "ratesRanges", "SWGRangeFloat");
258  }
259  if(bandwidths_ranges->size() > 0){
260  toJsonArray((QList<void*>*)bandwidths_ranges, obj, "bandwidthsRanges", "SWGRangeFloat");
261  }
262 
263  return obj;
264 }
QList< SWGArgInfo * > * device_settings_args
QList< SWGRangeFloat * > * rates_ranges
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
Definition: SWGHelpers.cpp:383
QList< SWGArgInfo * > * stream_settings_args
QList< SWGArgInfo * > * frequency_settings_args
QList< SWGSoapySDRGainSetting * > * gain_settings
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
Definition: SWGHelpers.cpp:445
QList< SWGSoapySDRFrequencySetting * > * frequency_settings
QList< SWGRangeFloat * > * bandwidths_ranges
virtual bool isSet() override
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ cleanup()

void SWGSDRangel::SWGSoapySDRReport::cleanup ( )

Definition at line 98 of file SWGSoapySDRReport.cpp.

References antennas, bandwidths_ranges, device_settings_args, frequency_settings, frequency_settings_args, gain_range, gain_settings, rates_ranges, and stream_settings_args.

Referenced by ~SWGSoapySDRReport().

98  {
99  if(device_settings_args != nullptr) {
100  auto arr = device_settings_args;
101  for(auto o: *arr) {
102  delete o;
103  }
104  delete device_settings_args;
105  }
106  if(stream_settings_args != nullptr) {
107  auto arr = stream_settings_args;
108  for(auto o: *arr) {
109  delete o;
110  }
111  delete stream_settings_args;
112  }
113 
114 
115 
116 
117  if(antennas != nullptr) {
118  auto arr = antennas;
119  for(auto o: *arr) {
120  delete o;
121  }
122  delete antennas;
123  }
124 
125  if(gain_range != nullptr) {
126  delete gain_range;
127  }
128  if(gain_settings != nullptr) {
129  auto arr = gain_settings;
130  for(auto o: *arr) {
131  delete o;
132  }
133  delete gain_settings;
134  }
135  if(frequency_settings != nullptr) {
136  auto arr = frequency_settings;
137  for(auto o: *arr) {
138  delete o;
139  }
140  delete frequency_settings;
141  }
142  if(frequency_settings_args != nullptr) {
143  auto arr = frequency_settings_args;
144  for(auto o: *arr) {
145  delete o;
146  }
148  }
149  if(rates_ranges != nullptr) {
150  auto arr = rates_ranges;
151  for(auto o: *arr) {
152  delete o;
153  }
154  delete rates_ranges;
155  }
156  if(bandwidths_ranges != nullptr) {
157  auto arr = bandwidths_ranges;
158  for(auto o: *arr) {
159  delete o;
160  }
161  delete bandwidths_ranges;
162  }
163 }
QList< SWGArgInfo * > * device_settings_args
QList< SWGRangeFloat * > * rates_ranges
QList< SWGArgInfo * > * stream_settings_args
QList< SWGArgInfo * > * frequency_settings_args
QList< SWGSoapySDRGainSetting * > * gain_settings
QList< SWGSoapySDRFrequencySetting * > * frequency_settings
QList< SWGRangeFloat * > * bandwidths_ranges
+ Here is the caller graph for this function:

◆ fromJson()

SWGSoapySDRReport * SWGSDRangel::SWGSoapySDRReport::fromJson ( QString &  jsonString)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 166 of file SWGSoapySDRReport.cpp.

References fromJsonObject().

Referenced by SWGSoapySDRReport().

166  {
167  QByteArray array (json.toStdString().c_str());
168  QJsonDocument doc = QJsonDocument::fromJson(array);
169  QJsonObject jsonObject = doc.object();
170  this->fromJsonObject(jsonObject);
171  return this;
172 }
virtual void fromJsonObject(QJsonObject &json) override
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ fromJsonObject()

void SWGSDRangel::SWGSoapySDRReport::fromJsonObject ( QJsonObject &  json)
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 175 of file SWGSoapySDRReport.cpp.

References antennas, bandwidths_ranges, device_settings_args, frequency_settings, frequency_settings_args, gain_range, gain_settings, has_agc, has_dc_auto_correction, has_dc_offset_value, has_frequency_correction_value, has_iq_balance_value, rates_ranges, SWGSDRangel::setValue(), and stream_settings_args.

Referenced by fromJson().

175  {
176 
177  ::SWGSDRangel::setValue(&device_settings_args, pJson["deviceSettingsArgs"], "QList", "SWGArgInfo");
178 
179  ::SWGSDRangel::setValue(&stream_settings_args, pJson["streamSettingsArgs"], "QList", "SWGArgInfo");
180  ::SWGSDRangel::setValue(&has_dc_auto_correction, pJson["hasDCAutoCorrection"], "qint32", "");
181 
182  ::SWGSDRangel::setValue(&has_dc_offset_value, pJson["hasDCOffsetValue"], "qint32", "");
183 
184  ::SWGSDRangel::setValue(&has_iq_balance_value, pJson["hasIQBalanceValue"], "qint32", "");
185 
186  ::SWGSDRangel::setValue(&has_frequency_correction_value, pJson["hasFrequencyCorrectionValue"], "qint32", "");
187 
188 
189  ::SWGSDRangel::setValue(&antennas, pJson["antennas"], "QList", "QString");
190  ::SWGSDRangel::setValue(&has_agc, pJson["hasAGC"], "qint32", "");
191 
192  ::SWGSDRangel::setValue(&gain_range, pJson["gainRange"], "SWGRangeFloat", "SWGRangeFloat");
193 
194 
195  ::SWGSDRangel::setValue(&gain_settings, pJson["gainSettings"], "QList", "SWGSoapySDRGainSetting");
196 
197  ::SWGSDRangel::setValue(&frequency_settings, pJson["frequencySettings"], "QList", "SWGSoapySDRFrequencySetting");
198 
199  ::SWGSDRangel::setValue(&frequency_settings_args, pJson["frequencySettingsArgs"], "QList", "SWGArgInfo");
200 
201  ::SWGSDRangel::setValue(&rates_ranges, pJson["ratesRanges"], "QList", "SWGRangeFloat");
202 
203  ::SWGSDRangel::setValue(&bandwidths_ranges, pJson["bandwidthsRanges"], "QList", "SWGRangeFloat");
204 }
QList< SWGArgInfo * > * device_settings_args
QList< SWGRangeFloat * > * rates_ranges
QList< SWGArgInfo * > * stream_settings_args
QList< SWGArgInfo * > * frequency_settings_args
QList< SWGSoapySDRGainSetting * > * gain_settings
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
Definition: SWGHelpers.cpp:25
QList< SWGSoapySDRFrequencySetting * > * frequency_settings
QList< SWGRangeFloat * > * bandwidths_ranges
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ getAntennas()

QList< QString * > * SWGSDRangel::SWGSoapySDRReport::getAntennas ( )

Definition at line 327 of file SWGSoapySDRReport.cpp.

References antennas.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

327  {
328  return antennas;
329 }
+ Here is the caller graph for this function:

◆ getBandwidthsRanges()

QList< SWGRangeFloat * > * SWGSDRangel::SWGSoapySDRReport::getBandwidthsRanges ( )

Definition at line 397 of file SWGSoapySDRReport.cpp.

References bandwidths_ranges.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

397  {
398  return bandwidths_ranges;
399 }
QList< SWGRangeFloat * > * bandwidths_ranges
+ Here is the caller graph for this function:

◆ getDeviceSettingsArgs()

QList< SWGArgInfo * > * SWGSDRangel::SWGSoapySDRReport::getDeviceSettingsArgs ( )

Definition at line 267 of file SWGSoapySDRReport.cpp.

References device_settings_args.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

267  {
268  return device_settings_args;
269 }
QList< SWGArgInfo * > * device_settings_args
+ Here is the caller graph for this function:

◆ getFrequencySettings()

QList< SWGSoapySDRFrequencySetting * > * SWGSDRangel::SWGSoapySDRReport::getFrequencySettings ( )

Definition at line 367 of file SWGSoapySDRReport.cpp.

References frequency_settings.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

367  {
368  return frequency_settings;
369 }
QList< SWGSoapySDRFrequencySetting * > * frequency_settings
+ Here is the caller graph for this function:

◆ getFrequencySettingsArgs()

QList< SWGArgInfo * > * SWGSDRangel::SWGSoapySDRReport::getFrequencySettingsArgs ( )

Definition at line 377 of file SWGSoapySDRReport.cpp.

References frequency_settings_args.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

377  {
379 }
QList< SWGArgInfo * > * frequency_settings_args
+ Here is the caller graph for this function:

◆ getGainRange()

SWGRangeFloat * SWGSDRangel::SWGSoapySDRReport::getGainRange ( )

Definition at line 347 of file SWGSoapySDRReport.cpp.

References gain_range.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

347  {
348  return gain_range;
349 }
+ Here is the caller graph for this function:

◆ getGainSettings()

QList< SWGSoapySDRGainSetting * > * SWGSDRangel::SWGSoapySDRReport::getGainSettings ( )

Definition at line 357 of file SWGSoapySDRReport.cpp.

References gain_settings.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

357  {
358  return gain_settings;
359 }
QList< SWGSoapySDRGainSetting * > * gain_settings
+ Here is the caller graph for this function:

◆ getHasAgc()

qint32 SWGSDRangel::SWGSoapySDRReport::getHasAgc ( )

Definition at line 337 of file SWGSoapySDRReport.cpp.

References has_agc.

337  {
338  return has_agc;
339 }

◆ getHasDcAutoCorrection()

qint32 SWGSDRangel::SWGSoapySDRReport::getHasDcAutoCorrection ( )

Definition at line 287 of file SWGSoapySDRReport.cpp.

References has_dc_auto_correction.

287  {
288  return has_dc_auto_correction;
289 }

◆ getHasDcOffsetValue()

qint32 SWGSDRangel::SWGSoapySDRReport::getHasDcOffsetValue ( )

Definition at line 297 of file SWGSoapySDRReport.cpp.

References has_dc_offset_value.

297  {
298  return has_dc_offset_value;
299 }

◆ getHasFrequencyCorrectionValue()

qint32 SWGSDRangel::SWGSoapySDRReport::getHasFrequencyCorrectionValue ( )

Definition at line 317 of file SWGSoapySDRReport.cpp.

References has_frequency_correction_value.

317  {
319 }

◆ getHasIqBalanceValue()

qint32 SWGSDRangel::SWGSoapySDRReport::getHasIqBalanceValue ( )

Definition at line 307 of file SWGSoapySDRReport.cpp.

References has_iq_balance_value.

307  {
308  return has_iq_balance_value;
309 }

◆ getRatesRanges()

QList< SWGRangeFloat * > * SWGSDRangel::SWGSoapySDRReport::getRatesRanges ( )

Definition at line 387 of file SWGSoapySDRReport.cpp.

References rates_ranges.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

387  {
388  return rates_ranges;
389 }
QList< SWGRangeFloat * > * rates_ranges
+ Here is the caller graph for this function:

◆ getStreamSettingsArgs()

QList< SWGArgInfo * > * SWGSDRangel::SWGSoapySDRReport::getStreamSettingsArgs ( )

Definition at line 277 of file SWGSoapySDRReport.cpp.

References stream_settings_args.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

277  {
278  return stream_settings_args;
279 }
QList< SWGArgInfo * > * stream_settings_args
+ Here is the caller graph for this function:

◆ init()

void SWGSDRangel::SWGSoapySDRReport::init ( )

Definition at line 66 of file SWGSoapySDRReport.cpp.

References antennas, bandwidths_ranges, device_settings_args, frequency_settings, frequency_settings_args, gain_range, gain_settings, has_agc, has_dc_auto_correction, has_dc_offset_value, has_frequency_correction_value, has_iq_balance_value, m_antennas_isSet, m_bandwidths_ranges_isSet, m_device_settings_args_isSet, m_frequency_settings_args_isSet, m_frequency_settings_isSet, m_gain_range_isSet, m_gain_settings_isSet, m_has_agc_isSet, m_has_dc_auto_correction_isSet, m_has_dc_offset_value_isSet, m_has_frequency_correction_value_isSet, m_has_iq_balance_value_isSet, m_rates_ranges_isSet, m_stream_settings_args_isSet, rates_ranges, and stream_settings_args.

Referenced by SWGSoapySDRReport(), SoapySDROutput::webapiReportGet(), and SoapySDRInput::webapiReportGet().

66  {
67  device_settings_args = new QList<SWGArgInfo*>();
69  stream_settings_args = new QList<SWGArgInfo*>();
79  antennas = new QList<QString*>();
80  m_antennas_isSet = false;
81  has_agc = 0;
82  m_has_agc_isSet = false;
83  gain_range = new SWGRangeFloat();
84  m_gain_range_isSet = false;
85  gain_settings = new QList<SWGSoapySDRGainSetting*>();
86  m_gain_settings_isSet = false;
87  frequency_settings = new QList<SWGSoapySDRFrequencySetting*>();
89  frequency_settings_args = new QList<SWGArgInfo*>();
91  rates_ranges = new QList<SWGRangeFloat*>();
92  m_rates_ranges_isSet = false;
93  bandwidths_ranges = new QList<SWGRangeFloat*>();
95 }
QList< SWGArgInfo * > * device_settings_args
QList< SWGRangeFloat * > * rates_ranges
QList< SWGArgInfo * > * stream_settings_args
QList< SWGArgInfo * > * frequency_settings_args
QList< SWGSoapySDRGainSetting * > * gain_settings
QList< SWGSoapySDRFrequencySetting * > * frequency_settings
QList< SWGRangeFloat * > * bandwidths_ranges
+ Here is the caller graph for this function:

◆ isSet()

bool SWGSDRangel::SWGSoapySDRReport::isSet ( )
overridevirtual

Reimplemented from SWGSDRangel::SWGObject.

Definition at line 408 of file SWGSoapySDRReport.cpp.

References antennas, bandwidths_ranges, device_settings_args, frequency_settings, frequency_settings_args, gain_range, gain_settings, SWGSDRangel::SWGRangeFloat::isSet(), m_has_agc_isSet, m_has_dc_auto_correction_isSet, m_has_dc_offset_value_isSet, m_has_frequency_correction_value_isSet, m_has_iq_balance_value_isSet, rates_ranges, and stream_settings_args.

Referenced by SWGSDRangel::SWGDeviceReport::asJsonObject(), and SWGSDRangel::SWGDeviceReport::isSet().

408  {
409  bool isObjectUpdated = false;
410  do{
411  if(device_settings_args->size() > 0){ isObjectUpdated = true; break;}
412  if(stream_settings_args->size() > 0){ isObjectUpdated = true; break;}
413  if(m_has_dc_auto_correction_isSet){ isObjectUpdated = true; break;}
414  if(m_has_dc_offset_value_isSet){ isObjectUpdated = true; break;}
415  if(m_has_iq_balance_value_isSet){ isObjectUpdated = true; break;}
416  if(m_has_frequency_correction_value_isSet){ isObjectUpdated = true; break;}
417  if(antennas->size() > 0){ isObjectUpdated = true; break;}
418  if(m_has_agc_isSet){ isObjectUpdated = true; break;}
419  if(gain_range != nullptr && gain_range->isSet()){ isObjectUpdated = true; break;}
420  if(gain_settings->size() > 0){ isObjectUpdated = true; break;}
421  if(frequency_settings->size() > 0){ isObjectUpdated = true; break;}
422  if(frequency_settings_args->size() > 0){ isObjectUpdated = true; break;}
423  if(rates_ranges->size() > 0){ isObjectUpdated = true; break;}
424  if(bandwidths_ranges->size() > 0){ isObjectUpdated = true; break;}
425  }while(false);
426  return isObjectUpdated;
427 }
QList< SWGArgInfo * > * device_settings_args
QList< SWGRangeFloat * > * rates_ranges
QList< SWGArgInfo * > * stream_settings_args
QList< SWGArgInfo * > * frequency_settings_args
QList< SWGSoapySDRGainSetting * > * gain_settings
QList< SWGSoapySDRFrequencySetting * > * frequency_settings
QList< SWGRangeFloat * > * bandwidths_ranges
virtual bool isSet() override
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ setAntennas()

void SWGSDRangel::SWGSoapySDRReport::setAntennas ( QList< QString *> *  antennas)

Definition at line 331 of file SWGSoapySDRReport.cpp.

References antennas, and m_antennas_isSet.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

331  {
332  this->antennas = antennas;
333  this->m_antennas_isSet = true;
334 }
+ Here is the caller graph for this function:

◆ setBandwidthsRanges()

void SWGSDRangel::SWGSoapySDRReport::setBandwidthsRanges ( QList< SWGRangeFloat *> *  bandwidths_ranges)

Definition at line 401 of file SWGSoapySDRReport.cpp.

References bandwidths_ranges, and m_bandwidths_ranges_isSet.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

401  {
403  this->m_bandwidths_ranges_isSet = true;
404 }
QList< SWGRangeFloat * > * bandwidths_ranges
+ Here is the caller graph for this function:

◆ setDeviceSettingsArgs()

void SWGSDRangel::SWGSoapySDRReport::setDeviceSettingsArgs ( QList< SWGArgInfo *> *  device_settings_args)

Definition at line 271 of file SWGSoapySDRReport.cpp.

References device_settings_args, and m_device_settings_args_isSet.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

271  {
273  this->m_device_settings_args_isSet = true;
274 }
QList< SWGArgInfo * > * device_settings_args
+ Here is the caller graph for this function:

◆ setFrequencySettings()

void SWGSDRangel::SWGSoapySDRReport::setFrequencySettings ( QList< SWGSoapySDRFrequencySetting *> *  frequency_settings)

Definition at line 371 of file SWGSoapySDRReport.cpp.

References frequency_settings, and m_frequency_settings_isSet.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

371  {
373  this->m_frequency_settings_isSet = true;
374 }
QList< SWGSoapySDRFrequencySetting * > * frequency_settings
+ Here is the caller graph for this function:

◆ setFrequencySettingsArgs()

void SWGSDRangel::SWGSoapySDRReport::setFrequencySettingsArgs ( QList< SWGArgInfo *> *  frequency_settings_args)

Definition at line 381 of file SWGSoapySDRReport.cpp.

References frequency_settings_args, and m_frequency_settings_args_isSet.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

381  {
383  this->m_frequency_settings_args_isSet = true;
384 }
QList< SWGArgInfo * > * frequency_settings_args
+ Here is the caller graph for this function:

◆ setGainRange()

void SWGSDRangel::SWGSoapySDRReport::setGainRange ( SWGRangeFloat gain_range)

Definition at line 351 of file SWGSoapySDRReport.cpp.

References gain_range, and m_gain_range_isSet.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

351  {
352  this->gain_range = gain_range;
353  this->m_gain_range_isSet = true;
354 }
+ Here is the caller graph for this function:

◆ setGainSettings()

void SWGSDRangel::SWGSoapySDRReport::setGainSettings ( QList< SWGSoapySDRGainSetting *> *  gain_settings)

Definition at line 361 of file SWGSoapySDRReport.cpp.

References gain_settings, and m_gain_settings_isSet.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

361  {
363  this->m_gain_settings_isSet = true;
364 }
QList< SWGSoapySDRGainSetting * > * gain_settings
+ Here is the caller graph for this function:

◆ setHasAgc()

void SWGSDRangel::SWGSoapySDRReport::setHasAgc ( qint32  has_agc)

Definition at line 341 of file SWGSoapySDRReport.cpp.

References has_agc, and m_has_agc_isSet.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

341  {
342  this->has_agc = has_agc;
343  this->m_has_agc_isSet = true;
344 }
+ Here is the caller graph for this function:

◆ setHasDcAutoCorrection()

void SWGSDRangel::SWGSoapySDRReport::setHasDcAutoCorrection ( qint32  has_dc_auto_correction)

◆ setHasDcOffsetValue()

void SWGSDRangel::SWGSoapySDRReport::setHasDcOffsetValue ( qint32  has_dc_offset_value)

Definition at line 301 of file SWGSoapySDRReport.cpp.

References has_dc_offset_value, and m_has_dc_offset_value_isSet.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

+ Here is the caller graph for this function:

◆ setHasFrequencyCorrectionValue()

void SWGSDRangel::SWGSoapySDRReport::setHasFrequencyCorrectionValue ( qint32  has_frequency_correction_value)

◆ setHasIqBalanceValue()

void SWGSDRangel::SWGSoapySDRReport::setHasIqBalanceValue ( qint32  has_iq_balance_value)

Definition at line 311 of file SWGSoapySDRReport.cpp.

References has_iq_balance_value, and m_has_iq_balance_value_isSet.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

+ Here is the caller graph for this function:

◆ setRatesRanges()

void SWGSDRangel::SWGSoapySDRReport::setRatesRanges ( QList< SWGRangeFloat *> *  rates_ranges)

Definition at line 391 of file SWGSoapySDRReport.cpp.

References m_rates_ranges_isSet, and rates_ranges.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

391  {
392  this->rates_ranges = rates_ranges;
393  this->m_rates_ranges_isSet = true;
394 }
QList< SWGRangeFloat * > * rates_ranges
+ Here is the caller graph for this function:

◆ setStreamSettingsArgs()

void SWGSDRangel::SWGSoapySDRReport::setStreamSettingsArgs ( QList< SWGArgInfo *> *  stream_settings_args)

Definition at line 281 of file SWGSoapySDRReport.cpp.

References m_stream_settings_args_isSet, and stream_settings_args.

Referenced by SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().

281  {
283  this->m_stream_settings_args_isSet = true;
284 }
QList< SWGArgInfo * > * stream_settings_args
+ Here is the caller graph for this function:

Member Data Documentation

◆ antennas

QList<QString*>* SWGSDRangel::SWGSoapySDRReport::antennas
private

◆ bandwidths_ranges

QList<SWGRangeFloat*>* SWGSDRangel::SWGSoapySDRReport::bandwidths_ranges
private

◆ device_settings_args

QList<SWGArgInfo*>* SWGSDRangel::SWGSoapySDRReport::device_settings_args
private

◆ frequency_settings

QList<SWGSoapySDRFrequencySetting*>* SWGSDRangel::SWGSoapySDRReport::frequency_settings
private

◆ frequency_settings_args

QList<SWGArgInfo*>* SWGSDRangel::SWGSoapySDRReport::frequency_settings_args
private

◆ gain_range

SWGRangeFloat* SWGSDRangel::SWGSoapySDRReport::gain_range
private

◆ gain_settings

QList<SWGSoapySDRGainSetting*>* SWGSDRangel::SWGSoapySDRReport::gain_settings
private

◆ has_agc

qint32 SWGSDRangel::SWGSoapySDRReport::has_agc
private

◆ has_dc_auto_correction

qint32 SWGSDRangel::SWGSoapySDRReport::has_dc_auto_correction
private

◆ has_dc_offset_value

qint32 SWGSDRangel::SWGSoapySDRReport::has_dc_offset_value
private

◆ has_frequency_correction_value

qint32 SWGSDRangel::SWGSoapySDRReport::has_frequency_correction_value
private

◆ has_iq_balance_value

qint32 SWGSDRangel::SWGSoapySDRReport::has_iq_balance_value
private

◆ m_antennas_isSet

bool SWGSDRangel::SWGSoapySDRReport::m_antennas_isSet
private

Definition at line 115 of file SWGSoapySDRReport.h.

Referenced by init(), setAntennas(), and SWGSoapySDRReport().

◆ m_bandwidths_ranges_isSet

bool SWGSDRangel::SWGSoapySDRReport::m_bandwidths_ranges_isSet
private

Definition at line 136 of file SWGSoapySDRReport.h.

Referenced by init(), setBandwidthsRanges(), and SWGSoapySDRReport().

◆ m_device_settings_args_isSet

bool SWGSDRangel::SWGSoapySDRReport::m_device_settings_args_isSet
private

Definition at line 97 of file SWGSoapySDRReport.h.

Referenced by init(), setDeviceSettingsArgs(), and SWGSoapySDRReport().

◆ m_frequency_settings_args_isSet

bool SWGSDRangel::SWGSoapySDRReport::m_frequency_settings_args_isSet
private

Definition at line 130 of file SWGSoapySDRReport.h.

Referenced by init(), setFrequencySettingsArgs(), and SWGSoapySDRReport().

◆ m_frequency_settings_isSet

bool SWGSDRangel::SWGSoapySDRReport::m_frequency_settings_isSet
private

Definition at line 127 of file SWGSoapySDRReport.h.

Referenced by init(), setFrequencySettings(), and SWGSoapySDRReport().

◆ m_gain_range_isSet

bool SWGSDRangel::SWGSoapySDRReport::m_gain_range_isSet
private

Definition at line 121 of file SWGSoapySDRReport.h.

Referenced by init(), setGainRange(), and SWGSoapySDRReport().

◆ m_gain_settings_isSet

bool SWGSDRangel::SWGSoapySDRReport::m_gain_settings_isSet
private

Definition at line 124 of file SWGSoapySDRReport.h.

Referenced by init(), setGainSettings(), and SWGSoapySDRReport().

◆ m_has_agc_isSet

bool SWGSDRangel::SWGSoapySDRReport::m_has_agc_isSet
private

Definition at line 118 of file SWGSoapySDRReport.h.

Referenced by asJsonObject(), init(), isSet(), setHasAgc(), and SWGSoapySDRReport().

◆ m_has_dc_auto_correction_isSet

bool SWGSDRangel::SWGSoapySDRReport::m_has_dc_auto_correction_isSet
private

◆ m_has_dc_offset_value_isSet

bool SWGSDRangel::SWGSoapySDRReport::m_has_dc_offset_value_isSet
private

◆ m_has_frequency_correction_value_isSet

bool SWGSDRangel::SWGSoapySDRReport::m_has_frequency_correction_value_isSet
private

◆ m_has_iq_balance_value_isSet

bool SWGSDRangel::SWGSoapySDRReport::m_has_iq_balance_value_isSet
private

◆ m_rates_ranges_isSet

bool SWGSDRangel::SWGSoapySDRReport::m_rates_ranges_isSet
private

Definition at line 133 of file SWGSoapySDRReport.h.

Referenced by init(), setRatesRanges(), and SWGSoapySDRReport().

◆ m_stream_settings_args_isSet

bool SWGSDRangel::SWGSoapySDRReport::m_stream_settings_args_isSet
private

Definition at line 100 of file SWGSoapySDRReport.h.

Referenced by init(), setStreamSettingsArgs(), and SWGSoapySDRReport().

◆ rates_ranges

QList<SWGRangeFloat*>* SWGSDRangel::SWGSoapySDRReport::rates_ranges
private

◆ stream_settings_args

QList<SWGArgInfo*>* SWGSDRangel::SWGSoapySDRReport::stream_settings_args
private

The documentation for this class was generated from the following files: