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.
|
#include <SWGSamplingDevice.h>
Public Member Functions | |
SWGSamplingDevice () | |
SWGSamplingDevice (QString *json) | |
virtual | ~SWGSamplingDevice () |
void | init () |
void | cleanup () |
virtual QString | asJson () override |
virtual QJsonObject * | asJsonObject () override |
virtual void | fromJsonObject (QJsonObject &json) override |
virtual SWGSamplingDevice * | fromJson (QString &jsonString) override |
qint32 | getIndex () |
void | setIndex (qint32 index) |
QString * | getHwType () |
void | setHwType (QString *hw_type) |
qint32 | getDirection () |
void | setDirection (qint32 direction) |
qint32 | getDeviceNbStreams () |
void | setDeviceNbStreams (qint32 device_nb_streams) |
qint32 | getDeviceStreamIndex () |
void | setDeviceStreamIndex (qint32 device_stream_index) |
qint32 | getSequence () |
void | setSequence (qint32 sequence) |
QString * | getSerial () |
void | setSerial (QString *serial) |
qint64 | getCenterFrequency () |
void | setCenterFrequency (qint64 center_frequency) |
qint32 | getBandwidth () |
void | setBandwidth (qint32 bandwidth) |
QString * | getState () |
void | setState (QString *state) |
virtual bool | isSet () override |
Public Member Functions inherited from SWGSDRangel::SWGObject | |
virtual | ~SWGObject () |
Private Attributes | |
qint32 | index |
bool | m_index_isSet |
QString * | hw_type |
bool | m_hw_type_isSet |
qint32 | direction |
bool | m_direction_isSet |
qint32 | device_nb_streams |
bool | m_device_nb_streams_isSet |
qint32 | device_stream_index |
bool | m_device_stream_index_isSet |
qint32 | sequence |
bool | m_sequence_isSet |
QString * | serial |
bool | m_serial_isSet |
qint64 | center_frequency |
bool | m_center_frequency_isSet |
qint32 | bandwidth |
bool | m_bandwidth_isSet |
QString * | state |
bool | m_state_isSet |
Definition at line 32 of file SWGSamplingDevice.h.
SWGSDRangel::SWGSamplingDevice::SWGSamplingDevice | ( | ) |
Definition at line 30 of file SWGSamplingDevice.cpp.
References bandwidth, center_frequency, device_nb_streams, device_stream_index, direction, hw_type, index, m_bandwidth_isSet, m_center_frequency_isSet, m_device_nb_streams_isSet, m_device_stream_index_isSet, m_direction_isSet, m_hw_type_isSet, m_index_isSet, m_sequence_isSet, m_serial_isSet, m_state_isSet, sequence, serial, and state.
SWGSDRangel::SWGSamplingDevice::SWGSamplingDevice | ( | QString * | json | ) |
Definition at line 25 of file SWGSamplingDevice.cpp.
References fromJson(), and init().
|
virtual |
Definition at line 53 of file SWGSamplingDevice.cpp.
References cleanup().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 135 of file SWGSamplingDevice.cpp.
References asJsonObject().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 146 of file SWGSamplingDevice.cpp.
References bandwidth, center_frequency, device_nb_streams, device_stream_index, direction, hw_type, index, m_bandwidth_isSet, m_center_frequency_isSet, m_device_nb_streams_isSet, m_device_stream_index_isSet, m_direction_isSet, m_index_isSet, m_sequence_isSet, sequence, serial, state, and SWGSDRangel::toJsonValue().
Referenced by asJson().
void SWGSDRangel::SWGSamplingDevice::cleanup | ( | ) |
Definition at line 82 of file SWGSamplingDevice.cpp.
References hw_type, serial, and state.
Referenced by ~SWGSamplingDevice().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 102 of file SWGSamplingDevice.cpp.
References fromJsonObject().
Referenced by SWGSamplingDevice().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 111 of file SWGSamplingDevice.cpp.
References bandwidth, center_frequency, device_nb_streams, device_stream_index, direction, hw_type, index, sequence, serial, SWGSDRangel::setValue(), and state.
Referenced by fromJson().
qint32 SWGSDRangel::SWGSamplingDevice::getBandwidth | ( | ) |
qint64 SWGSDRangel::SWGSamplingDevice::getCenterFrequency | ( | ) |
Definition at line 253 of file SWGSamplingDevice.cpp.
References center_frequency.
qint32 SWGSDRangel::SWGSamplingDevice::getDeviceNbStreams | ( | ) |
Definition at line 213 of file SWGSamplingDevice.cpp.
References device_nb_streams.
qint32 SWGSDRangel::SWGSamplingDevice::getDeviceStreamIndex | ( | ) |
Definition at line 223 of file SWGSamplingDevice.cpp.
References device_stream_index.
qint32 SWGSDRangel::SWGSamplingDevice::getDirection | ( | ) |
QString * SWGSDRangel::SWGSamplingDevice::getHwType | ( | ) |
Definition at line 193 of file SWGSamplingDevice.cpp.
References hw_type.
Referenced by WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
qint32 SWGSDRangel::SWGSamplingDevice::getIndex | ( | ) |
qint32 SWGSDRangel::SWGSamplingDevice::getSequence | ( | ) |
QString * SWGSDRangel::SWGSamplingDevice::getSerial | ( | ) |
Definition at line 243 of file SWGSamplingDevice.cpp.
References serial.
Referenced by WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
QString * SWGSDRangel::SWGSamplingDevice::getState | ( | ) |
Definition at line 273 of file SWGSamplingDevice.cpp.
References state.
Referenced by WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
void SWGSDRangel::SWGSamplingDevice::init | ( | ) |
Definition at line 58 of file SWGSamplingDevice.cpp.
References bandwidth, center_frequency, device_nb_streams, device_stream_index, direction, hw_type, index, m_bandwidth_isSet, m_center_frequency_isSet, m_device_nb_streams_isSet, m_device_stream_index_isSet, m_direction_isSet, m_hw_type_isSet, m_index_isSet, m_sequence_isSet, m_serial_isSet, m_state_isSet, sequence, serial, and state.
Referenced by WebAPIAdapterGUI::getDeviceSet(), WebAPIAdapterSrv::getDeviceSet(), and SWGSamplingDevice().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 284 of file SWGSamplingDevice.cpp.
References hw_type, m_bandwidth_isSet, m_center_frequency_isSet, m_device_nb_streams_isSet, m_device_stream_index_isSet, m_direction_isSet, m_index_isSet, m_sequence_isSet, serial, and state.
Referenced by SWGSDRangel::SWGDeviceSet::asJsonObject(), and SWGSDRangel::SWGDeviceSet::isSet().
void SWGSDRangel::SWGSamplingDevice::setBandwidth | ( | qint32 | bandwidth | ) |
Definition at line 267 of file SWGSamplingDevice.cpp.
References bandwidth, and m_bandwidth_isSet.
Referenced by WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
void SWGSDRangel::SWGSamplingDevice::setCenterFrequency | ( | qint64 | center_frequency | ) |
Definition at line 257 of file SWGSamplingDevice.cpp.
References center_frequency, and m_center_frequency_isSet.
Referenced by WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
void SWGSDRangel::SWGSamplingDevice::setDeviceNbStreams | ( | qint32 | device_nb_streams | ) |
Definition at line 217 of file SWGSamplingDevice.cpp.
References device_nb_streams, and m_device_nb_streams_isSet.
Referenced by WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
void SWGSDRangel::SWGSamplingDevice::setDeviceStreamIndex | ( | qint32 | device_stream_index | ) |
Definition at line 227 of file SWGSamplingDevice.cpp.
References device_stream_index, and m_device_stream_index_isSet.
Referenced by WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
void SWGSDRangel::SWGSamplingDevice::setDirection | ( | qint32 | direction | ) |
Definition at line 207 of file SWGSamplingDevice.cpp.
References direction, and m_direction_isSet.
Referenced by WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
void SWGSDRangel::SWGSamplingDevice::setHwType | ( | QString * | hw_type | ) |
Definition at line 197 of file SWGSamplingDevice.cpp.
References hw_type, and m_hw_type_isSet.
void SWGSDRangel::SWGSamplingDevice::setIndex | ( | qint32 | index | ) |
Definition at line 187 of file SWGSamplingDevice.cpp.
References index, and m_index_isSet.
Referenced by WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
void SWGSDRangel::SWGSamplingDevice::setSequence | ( | qint32 | sequence | ) |
Definition at line 237 of file SWGSamplingDevice.cpp.
References m_sequence_isSet, and sequence.
Referenced by WebAPIAdapterGUI::getDeviceSet(), and WebAPIAdapterSrv::getDeviceSet().
void SWGSDRangel::SWGSamplingDevice::setSerial | ( | QString * | serial | ) |
void SWGSDRangel::SWGSamplingDevice::setState | ( | QString * | state | ) |
|
private |
Definition at line 103 of file SWGSamplingDevice.h.
Referenced by asJsonObject(), fromJsonObject(), getBandwidth(), init(), setBandwidth(), and SWGSamplingDevice().
|
private |
Definition at line 100 of file SWGSamplingDevice.h.
Referenced by asJsonObject(), fromJsonObject(), getCenterFrequency(), init(), setCenterFrequency(), and SWGSamplingDevice().
|
private |
Definition at line 88 of file SWGSamplingDevice.h.
Referenced by asJsonObject(), fromJsonObject(), getDeviceNbStreams(), init(), setDeviceNbStreams(), and SWGSamplingDevice().
|
private |
Definition at line 91 of file SWGSamplingDevice.h.
Referenced by asJsonObject(), fromJsonObject(), getDeviceStreamIndex(), init(), setDeviceStreamIndex(), and SWGSamplingDevice().
|
private |
Definition at line 85 of file SWGSamplingDevice.h.
Referenced by asJsonObject(), fromJsonObject(), getDirection(), init(), setDirection(), and SWGSamplingDevice().
|
private |
Definition at line 82 of file SWGSamplingDevice.h.
Referenced by asJsonObject(), cleanup(), fromJsonObject(), getHwType(), init(), isSet(), setHwType(), and SWGSamplingDevice().
|
private |
Definition at line 79 of file SWGSamplingDevice.h.
Referenced by asJsonObject(), fromJsonObject(), getIndex(), init(), setIndex(), and SWGSamplingDevice().
|
private |
Definition at line 104 of file SWGSamplingDevice.h.
Referenced by asJsonObject(), init(), isSet(), setBandwidth(), and SWGSamplingDevice().
|
private |
Definition at line 101 of file SWGSamplingDevice.h.
Referenced by asJsonObject(), init(), isSet(), setCenterFrequency(), and SWGSamplingDevice().
|
private |
Definition at line 89 of file SWGSamplingDevice.h.
Referenced by asJsonObject(), init(), isSet(), setDeviceNbStreams(), and SWGSamplingDevice().
|
private |
Definition at line 92 of file SWGSamplingDevice.h.
Referenced by asJsonObject(), init(), isSet(), setDeviceStreamIndex(), and SWGSamplingDevice().
|
private |
Definition at line 86 of file SWGSamplingDevice.h.
Referenced by asJsonObject(), init(), isSet(), setDirection(), and SWGSamplingDevice().
|
private |
Definition at line 83 of file SWGSamplingDevice.h.
Referenced by init(), setHwType(), and SWGSamplingDevice().
|
private |
Definition at line 80 of file SWGSamplingDevice.h.
Referenced by asJsonObject(), init(), isSet(), setIndex(), and SWGSamplingDevice().
|
private |
Definition at line 95 of file SWGSamplingDevice.h.
Referenced by asJsonObject(), init(), isSet(), setSequence(), and SWGSamplingDevice().
|
private |
Definition at line 98 of file SWGSamplingDevice.h.
Referenced by init(), setSerial(), and SWGSamplingDevice().
|
private |
Definition at line 107 of file SWGSamplingDevice.h.
Referenced by init(), setState(), and SWGSamplingDevice().
|
private |
Definition at line 94 of file SWGSamplingDevice.h.
Referenced by asJsonObject(), fromJsonObject(), getSequence(), init(), setSequence(), and SWGSamplingDevice().
|
private |
Definition at line 97 of file SWGSamplingDevice.h.
Referenced by asJsonObject(), cleanup(), fromJsonObject(), getSerial(), init(), isSet(), setSerial(), and SWGSamplingDevice().
|
private |
Definition at line 106 of file SWGSamplingDevice.h.
Referenced by asJsonObject(), cleanup(), fromJsonObject(), getState(), init(), isSet(), setState(), and SWGSamplingDevice().