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.
swagger
sdrangel
code
qt5
client
SWGComplex.h
Go to the documentation of this file.
1
13
/*
14
* SWGComplex.h
15
*
16
* A complex number
17
*/
18
19
#ifndef SWGComplex_H_
20
#define SWGComplex_H_
21
22
#include <QJsonObject>
23
24
25
26
#include "
SWGObject.h
"
27
#include "
export.h
"
28
29
namespace
SWGSDRangel
{
30
31
class
SWG_API
SWGComplex
:
public
SWGObject
{
32
public
:
33
SWGComplex
();
34
SWGComplex
(QString* json);
35
virtual
~
SWGComplex
();
36
void
init();
37
void
cleanup();
38
39
virtual
QString asJson ()
override
;
40
virtual
QJsonObject* asJsonObject()
override
;
41
virtual
void
fromJsonObject(QJsonObject &json)
override
;
42
virtual
SWGComplex
* fromJson(QString &jsonString)
override
;
43
44
float
getReal();
45
void
setReal(
float
real);
46
47
float
getImag();
48
void
setImag(
float
imag);
49
50
51
virtual
bool
isSet()
override
;
52
53
private
:
54
float
real
;
55
bool
m_real_isSet
;
56
57
float
imag
;
58
bool
m_imag_isSet
;
59
60
};
61
62
}
63
64
#endif
/* SWGComplex_H_ */
SWGSDRangel::SWGComplex
Definition:
SWGComplex.h:31
export.h
SWGObject.h
SWGSDRangel::SWGComplex::real
float real
Definition:
SWGComplex.h:54
SWGSDRangel::SWGObject
Definition:
SWGObject.h:20
SWGSDRangel::SWGComplex::m_real_isSet
bool m_real_isSet
Definition:
SWGComplex.h:55
SWGSDRangel::SWGComplex::imag
float imag
Definition:
SWGComplex.h:57
SWGSDRangel::SWGComplex::m_imag_isSet
bool m_imag_isSet
Definition:
SWGComplex.h:58
SWG_API
#define SWG_API
Definition:
export.h:124
SWGSDRangel
Definition:
bfmdemod.h:51
Generated on Fri Aug 2 2019 17:56:34 for SDRAngel by
1.8.13