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 <SWGComplex.h>
Public Member Functions | |
SWGComplex () | |
SWGComplex (QString *json) | |
virtual | ~SWGComplex () |
void | init () |
void | cleanup () |
virtual QString | asJson () override |
virtual QJsonObject * | asJsonObject () override |
virtual void | fromJsonObject (QJsonObject &json) override |
virtual SWGComplex * | fromJson (QString &jsonString) override |
float | getReal () |
void | setReal (float real) |
float | getImag () |
void | setImag (float imag) |
virtual bool | isSet () override |
Public Member Functions inherited from SWGSDRangel::SWGObject | |
virtual | ~SWGObject () |
Private Attributes | |
float | real |
bool | m_real_isSet |
float | imag |
bool | m_imag_isSet |
Definition at line 31 of file SWGComplex.h.
SWGSDRangel::SWGComplex::SWGComplex | ( | ) |
Definition at line 30 of file SWGComplex.cpp.
References imag, m_imag_isSet, m_real_isSet, and real.
SWGSDRangel::SWGComplex::SWGComplex | ( | QString * | json | ) |
Definition at line 25 of file SWGComplex.cpp.
References fromJson(), and init().
|
virtual |
Definition at line 37 of file SWGComplex.cpp.
References cleanup().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 73 of file SWGComplex.cpp.
References asJsonObject().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 84 of file SWGComplex.cpp.
References imag, m_imag_isSet, m_real_isSet, and real.
Referenced by asJson().
void SWGSDRangel::SWGComplex::cleanup | ( | ) |
Definition at line 50 of file SWGComplex.cpp.
Referenced by ~SWGComplex().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 56 of file SWGComplex.cpp.
References fromJsonObject().
Referenced by SWGComplex().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 65 of file SWGComplex.cpp.
References imag, real, and SWGSDRangel::setValue().
Referenced by fromJson().
float SWGSDRangel::SWGComplex::getImag | ( | ) |
Definition at line 107 of file SWGComplex.cpp.
References imag.
Referenced by SoapySDROutput::webapiSettingsPutPatch(), and SoapySDRInput::webapiSettingsPutPatch().
float SWGSDRangel::SWGComplex::getReal | ( | ) |
Definition at line 97 of file SWGComplex.cpp.
References real.
Referenced by SoapySDROutput::webapiSettingsPutPatch(), and SoapySDRInput::webapiSettingsPutPatch().
void SWGSDRangel::SWGComplex::init | ( | ) |
Definition at line 42 of file SWGComplex.cpp.
References imag, m_imag_isSet, m_real_isSet, and real.
Referenced by SWGComplex().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 118 of file SWGComplex.cpp.
References m_imag_isSet, and m_real_isSet.
Referenced by SWGSDRangel::SWGSoapySDRInputSettings::asJsonObject(), SWGSDRangel::SWGSoapySDROutputSettings::asJsonObject(), SWGSDRangel::SWGSoapySDROutputSettings::isSet(), and SWGSDRangel::SWGSoapySDRInputSettings::isSet().
void SWGSDRangel::SWGComplex::setImag | ( | float | imag | ) |
Definition at line 111 of file SWGComplex.cpp.
References imag, and m_imag_isSet.
Referenced by SoapySDROutput::webapiFormatDeviceSettings(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDRInput::webapiReverseSendSettings().
void SWGSDRangel::SWGComplex::setReal | ( | float | real | ) |
Definition at line 101 of file SWGComplex.cpp.
References m_real_isSet, and real.
Referenced by SoapySDROutput::webapiFormatDeviceSettings(), SoapySDRInput::webapiFormatDeviceSettings(), SoapySDROutput::webapiReverseSendSettings(), and SoapySDRInput::webapiReverseSendSettings().
|
private |
Definition at line 57 of file SWGComplex.h.
Referenced by asJsonObject(), fromJsonObject(), getImag(), init(), setImag(), and SWGComplex().
|
private |
Definition at line 58 of file SWGComplex.h.
Referenced by asJsonObject(), init(), isSet(), setImag(), and SWGComplex().
|
private |
Definition at line 55 of file SWGComplex.h.
Referenced by asJsonObject(), init(), isSet(), setReal(), and SWGComplex().
|
private |
Definition at line 54 of file SWGComplex.h.
Referenced by asJsonObject(), fromJsonObject(), getReal(), init(), setReal(), and SWGComplex().