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.
SWGSampleRate.h
Go to the documentation of this file.
1 
13 /*
14  * SWGSampleRate.h
15  *
16  * A sample rate expressed in samples per second (S/s)
17  */
18 
19 #ifndef SWGSampleRate_H_
20 #define SWGSampleRate_H_
21 
22 #include <QJsonObject>
23 
24 
25 
26 #include "SWGObject.h"
27 #include "export.h"
28 
29 namespace SWGSDRangel {
30 
32 public:
33  SWGSampleRate();
34  SWGSampleRate(QString* json);
35  virtual ~SWGSampleRate();
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 SWGSampleRate* fromJson(QString &jsonString) override;
43 
44  qint32 getRate();
45  void setRate(qint32 rate);
46 
47 
48  virtual bool isSet() override;
49 
50 private:
51  qint32 rate;
53 
54 };
55 
56 }
57 
58 #endif /* SWGSampleRate_H_ */
#define SWG_API
Definition: export.h:124