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 <SWGLocationInformation.h>
Public Member Functions | |
SWGLocationInformation () | |
SWGLocationInformation (QString *json) | |
virtual | ~SWGLocationInformation () |
void | init () |
void | cleanup () |
virtual QString | asJson () override |
virtual QJsonObject * | asJsonObject () override |
virtual void | fromJsonObject (QJsonObject &json) override |
virtual SWGLocationInformation * | fromJson (QString &jsonString) override |
float | getLatitude () |
void | setLatitude (float latitude) |
float | getLongitude () |
void | setLongitude (float longitude) |
virtual bool | isSet () override |
Public Member Functions inherited from SWGSDRangel::SWGObject | |
virtual | ~SWGObject () |
Private Attributes | |
float | latitude |
bool | m_latitude_isSet |
float | longitude |
bool | m_longitude_isSet |
Definition at line 31 of file SWGLocationInformation.h.
SWGSDRangel::SWGLocationInformation::SWGLocationInformation | ( | ) |
Definition at line 30 of file SWGLocationInformation.cpp.
References latitude, longitude, m_latitude_isSet, and m_longitude_isSet.
SWGSDRangel::SWGLocationInformation::SWGLocationInformation | ( | QString * | json | ) |
Definition at line 25 of file SWGLocationInformation.cpp.
References fromJson(), and init().
|
virtual |
Definition at line 37 of file SWGLocationInformation.cpp.
References cleanup().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 73 of file SWGLocationInformation.cpp.
References asJsonObject().
Referenced by SWGSDRangel::SWGInstanceApi::instanceLocationPut(), and WebAPIRequestMapper::instanceLocationService().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 84 of file SWGLocationInformation.cpp.
References latitude, longitude, m_latitude_isSet, and m_longitude_isSet.
Referenced by asJson().
void SWGSDRangel::SWGLocationInformation::cleanup | ( | ) |
Definition at line 50 of file SWGLocationInformation.cpp.
Referenced by ~SWGLocationInformation().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 56 of file SWGLocationInformation.cpp.
References fromJsonObject().
Referenced by WebAPIRequestMapper::instanceLocationService(), and SWGLocationInformation().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 65 of file SWGLocationInformation.cpp.
References latitude, longitude, and SWGSDRangel::setValue().
Referenced by fromJson().
float SWGSDRangel::SWGLocationInformation::getLatitude | ( | ) |
Definition at line 97 of file SWGLocationInformation.cpp.
References latitude.
Referenced by WebAPIAdapterGUI::instanceLocationPut(), and WebAPIAdapterSrv::instanceLocationPut().
float SWGSDRangel::SWGLocationInformation::getLongitude | ( | ) |
Definition at line 107 of file SWGLocationInformation.cpp.
References longitude.
Referenced by WebAPIAdapterGUI::instanceLocationPut(), and WebAPIAdapterSrv::instanceLocationPut().
void SWGSDRangel::SWGLocationInformation::init | ( | ) |
Definition at line 42 of file SWGLocationInformation.cpp.
References latitude, longitude, m_latitude_isSet, and m_longitude_isSet.
Referenced by WebAPIAdapterGUI::instanceLocationGet(), WebAPIAdapterSrv::instanceLocationGet(), and SWGLocationInformation().
|
overridevirtual |
Reimplemented from SWGSDRangel::SWGObject.
Definition at line 118 of file SWGLocationInformation.cpp.
References m_latitude_isSet, and m_longitude_isSet.
void SWGSDRangel::SWGLocationInformation::setLatitude | ( | float | latitude | ) |
Definition at line 101 of file SWGLocationInformation.cpp.
References latitude, and m_latitude_isSet.
Referenced by WebAPIAdapterGUI::instanceLocationGet(), WebAPIAdapterSrv::instanceLocationGet(), WebAPIAdapterSrv::instanceLocationPut(), and WebAPIAdapterGUI::instanceLocationPut().
void SWGSDRangel::SWGLocationInformation::setLongitude | ( | float | longitude | ) |
Definition at line 111 of file SWGLocationInformation.cpp.
References longitude, and m_longitude_isSet.
Referenced by WebAPIAdapterGUI::instanceLocationGet(), WebAPIAdapterSrv::instanceLocationGet(), WebAPIAdapterSrv::instanceLocationPut(), and WebAPIAdapterGUI::instanceLocationPut().
|
private |
Definition at line 54 of file SWGLocationInformation.h.
Referenced by asJsonObject(), fromJsonObject(), getLatitude(), init(), setLatitude(), and SWGLocationInformation().
|
private |
Definition at line 57 of file SWGLocationInformation.h.
Referenced by asJsonObject(), fromJsonObject(), getLongitude(), init(), setLongitude(), and SWGLocationInformation().
|
private |
Definition at line 55 of file SWGLocationInformation.h.
Referenced by asJsonObject(), init(), isSet(), setLatitude(), and SWGLocationInformation().
|
private |
Definition at line 58 of file SWGLocationInformation.h.
Referenced by asJsonObject(), init(), isSet(), setLongitude(), and SWGLocationInformation().