-
Notifications
You must be signed in to change notification settings - Fork 124
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5a36456
commit d125fd5
Showing
12 changed files
with
621 additions
and
355 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef _json_hpp_ | ||
#define _json_hpp_ | ||
|
||
#include <json/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_ */ |
Oops, something went wrong.