File: Json.hpp

package info (click to toggle)
vzlogger 0.8.9-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,140 kB
  • sloc: cpp: 12,020; sh: 331; ansic: 157; makefile: 25
file content (20 lines) | stat: -rw-r--r-- 338 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef _Json_hpp_
#define _Json_hpp_

#include <json-c/json.h>
#include <shared_ptr.hpp>

class Json {
  public:
	typedef vz::shared_ptr<Json> Ptr;

	Json(struct json_object *jso) : _jso(jso){};
	~Json() { _jso = NULL; };

	struct json_object *Object() { return _jso; }

  private:
	struct json_object *_jso;
};

#endif /* _Json_hpp_ */