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.
SWGObject.h
Go to the documentation of this file.
1 
13 #ifndef _SWG_OBJECT_H_
14 #define _SWG_OBJECT_H_
15 
16 #include <QJsonValue>
17 
18 namespace SWGSDRangel {
19 
20 class SWGObject {
21  public:
22  virtual QJsonObject* asJsonObject() {
23  return new QJsonObject();
24  }
25  virtual ~SWGObject() {}
26  virtual SWGObject* fromJson(QString &jsonString) {
27  Q_UNUSED(jsonString);
28  return new SWGObject();
29  }
30  virtual void fromJsonObject(QJsonObject &json) {
31  Q_UNUSED(json);
32  }
33  virtual QString asJson() {
34  return QString("");
35  }
36  virtual bool isSet() {
37  return false;
38  }
39 };
40 
41 }
42 
43 #endif /* _SWG_OBJECT_H_ */
virtual ~SWGObject()
Definition: SWGObject.h:25
virtual bool isSet()
Definition: SWGObject.h:36
virtual QString asJson()
Definition: SWGObject.h:33
virtual SWGObject * fromJson(QString &jsonString)
Definition: SWGObject.h:26
virtual QJsonObject * asJsonObject()
Definition: SWGObject.h:22
virtual void fromJsonObject(QJsonObject &json)
Definition: SWGObject.h:30