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 <SWGRangeFloat.h>
Public Member Functions | |
SWGRangeFloat () | |
SWGRangeFloat (QString *json) | |
virtual | ~SWGRangeFloat () |
void | init () |
void | cleanup () |
virtual QString | asJson () override |
virtual QJsonObject * | asJsonObject () override |
virtual void | fromJsonObject (QJsonObject &json) override |
virtual SWGRangeFloat * | fromJson (QString &jsonString) override |
float | getMin () |
void | setMin (float min) |
float | getMax () |
void | setMax (float max) |
float | getStep () |
void | setStep (float step) |
virtual bool | isSet () override |
Public Member Functions inherited from SWGSDRangel::SWGObject | |
virtual | ~SWGObject () |
Private Attributes | |
float | min |
bool | m_min_isSet |
float | max |
bool | m_max_isSet |
float | step |
bool | m_step_isSet |
Definition at line 31 of file SWGRangeFloat.h.
SWGSDRangel::SWGRangeFloat::SWGRangeFloat | ( | ) |
Definition at line 30 of file SWGRangeFloat.cpp.
References m_max_isSet, m_min_isSet, m_step_isSet, max, min, and step.
SWGSDRangel::SWGRangeFloat::SWGRangeFloat | ( | QString * | json | ) |
Definition at line 25 of file SWGRangeFloat.cpp.
References fromJson(), and init().
|
virtual |
Definition at line 39 of file SWGRangeFloat.cpp.
References cleanup().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 80 of file SWGRangeFloat.cpp.
References asJsonObject().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 91 of file SWGRangeFloat.cpp.
References m_max_isSet, m_min_isSet, m_step_isSet, max, min, and step.
Referenced by asJson().
void SWGSDRangel::SWGRangeFloat::cleanup | ( | ) |
Definition at line 54 of file SWGRangeFloat.cpp.
Referenced by ~SWGRangeFloat().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 61 of file SWGRangeFloat.cpp.
References fromJsonObject().
Referenced by SWGRangeFloat().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 70 of file SWGRangeFloat.cpp.
References max, min, SWGSDRangel::setValue(), and step.
Referenced by fromJson().
float SWGSDRangel::SWGRangeFloat::getMax | ( | ) |
Definition at line 117 of file SWGRangeFloat.cpp.
References max.
float SWGSDRangel::SWGRangeFloat::getMin | ( | ) |
Definition at line 107 of file SWGRangeFloat.cpp.
References min.
float SWGSDRangel::SWGRangeFloat::getStep | ( | ) |
void SWGSDRangel::SWGRangeFloat::init | ( | ) |
Definition at line 44 of file SWGRangeFloat.cpp.
References m_max_isSet, m_min_isSet, m_step_isSet, max, min, and step.
Referenced by SWGRangeFloat().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 138 of file SWGRangeFloat.cpp.
References m_max_isSet, m_min_isSet, and m_step_isSet.
Referenced by SWGSDRangel::SWGSoapySDRGainSetting::asJsonObject(), SWGSDRangel::SWGArgInfo::asJsonObject(), SWGSDRangel::SWGSoapySDRReport::asJsonObject(), SWGSDRangel::SWGSoapySDRGainSetting::isSet(), SWGSDRangel::SWGArgInfo::isSet(), and SWGSDRangel::SWGSoapySDRReport::isSet().
void SWGSDRangel::SWGRangeFloat::setMax | ( | float | max | ) |
Definition at line 121 of file SWGRangeFloat.cpp.
References m_max_isSet, and max.
Referenced by SoapySDROutput::webapiFormatArgInfo(), SoapySDRInput::webapiFormatArgInfo(), SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().
void SWGSDRangel::SWGRangeFloat::setMin | ( | float | min | ) |
Definition at line 111 of file SWGRangeFloat.cpp.
References m_min_isSet, and min.
Referenced by SoapySDROutput::webapiFormatArgInfo(), SoapySDRInput::webapiFormatArgInfo(), SoapySDROutput::webapiFormatDeviceReport(), and SoapySDRInput::webapiFormatDeviceReport().
void SWGSDRangel::SWGRangeFloat::setStep | ( | float | step | ) |
|
private |
Definition at line 61 of file SWGRangeFloat.h.
Referenced by asJsonObject(), init(), isSet(), setMax(), and SWGRangeFloat().
|
private |
Definition at line 58 of file SWGRangeFloat.h.
Referenced by asJsonObject(), init(), isSet(), setMin(), and SWGRangeFloat().
|
private |
Definition at line 64 of file SWGRangeFloat.h.
Referenced by asJsonObject(), init(), isSet(), setStep(), and SWGRangeFloat().
|
private |
Definition at line 60 of file SWGRangeFloat.h.
Referenced by asJsonObject(), fromJsonObject(), getMax(), init(), setMax(), and SWGRangeFloat().
|
private |
Definition at line 57 of file SWGRangeFloat.h.
Referenced by asJsonObject(), fromJsonObject(), getMin(), init(), setMin(), and SWGRangeFloat().
|
private |
Definition at line 63 of file SWGRangeFloat.h.
Referenced by asJsonObject(), fromJsonObject(), getStep(), init(), setStep(), and SWGRangeFloat().