diff options
author | louis <louis.braun@gmx.de> | 2015-01-15 13:12:47 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2015-01-15 13:12:47 +0100 |
commit | c7f71f3f2b580714bd9e5a5c773bc2179c0e8567 (patch) | |
tree | a39d3efd5494b60964152e559eaead76c7897af5 /tools/jsonhelpers.h | |
download | vdr-plugin-weatherforecast-0.0.1.tar.gz vdr-plugin-weatherforecast-0.0.1.tar.bz2 |
Initial commit0.0.1
Diffstat (limited to 'tools/jsonhelpers.h')
-rw-r--r-- | tools/jsonhelpers.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/tools/jsonhelpers.h b/tools/jsonhelpers.h new file mode 100644 index 0000000..852d94d --- /dev/null +++ b/tools/jsonhelpers.h @@ -0,0 +1,17 @@ +#ifndef __JSONHELPERS_H +#define __JSONHELPERS_H + +#include <string> +#include <sstream> +#include <jansson.h> + +using namespace std; + +int JsonGetInteger(json_t *jNode, string name); +float JsonGetFloat(json_t *jNode, string name); +string JsonGetString(json_t *jNode, string name); + +string FloatToString(float f); +string IntToString(int i); + +#endif //__JSONHELPERS_H
\ No newline at end of file |