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.
SWGHelpers.h
Go to the documentation of this file.
1 
13 #ifndef SWG_HELPERS_H
14 #define SWG_HELPERS_H
15 
16 #include <QJsonValue>
17 #include <QList>
18 #include <QMap>
19 
20 namespace SWGSDRangel {
21 
22  void setValue(void* value, QJsonValue obj, QString type, QString complexType);
23  void toJsonArray(QList<void*>* value, QJsonObject* output, QString innerName, QString innerType);
24  void toJsonValue(QString name, void* value, QJsonObject* output, QString type);
25  void toJsonMap(QMap<QString, void*>* value, QJsonObject* output, QString innerName, QString innerType);
26  bool isCompatibleJsonValue(QString type);
27  QString stringValue(QString* value);
28  QString stringValue(qint32 value);
29  QString stringValue(qint64 value);
30  QString stringValue(bool value);
31 
32 }
33 
34 #endif // SWG_HELPERS_H
void toJsonValue(QString name, void *value, QJsonObject *output, QString type)
Definition: SWGHelpers.cpp:383
void toJsonMap(QMap< QString, void *> *value, QJsonObject *output, QString innerName, QString innerType)
Definition: SWGHelpers.cpp:504
void setValue(void *value, QJsonValue obj, QString type, QString complexType)
Definition: SWGHelpers.cpp:25
void toJsonArray(QList< void *> *value, QJsonObject *output, QString innerName, QString innerType)
Definition: SWGHelpers.cpp:445
bool isCompatibleJsonValue(QString type)
QString stringValue(QString *value)
Definition: SWGHelpers.cpp:578