-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathutils_jsoncpp.h
More file actions
46 lines (28 loc) · 789 Bytes
/
utils_jsoncpp.h
File metadata and controls
46 lines (28 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/* Name : utils*.h [part of tim zaman's utility functions]
* Version: v1.0
* Date : 2012-05-07
* Developer : Tim Zaman, Pixelprisma BV (timbobel@gmail.com)
* Distribution in any form is prohibited.
*/
#ifndef UTILS_JSONCPP_TIM_H
#define UTILS_JSONCPP_TIM_H
#include <iostream>
#include <string>
#include <clocale>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <pwd.h>
#include <iomanip>
#include <cstdlib>
#include <json/json.h>
#include <json/writer.h>
#include <json/reader.h>
#include <algorithm>
namespace util{
template <typename Iterable>
Json::Value iterable2json(Iterable const& cont);
void PrintJSONValue( Json::Value val );
bool PrintJSONTree( Json::Value &root, unsigned short depth /* = 0 */);
};
#endif