X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=src%2Fjansson.hpp;h=efb4b525d89977a8e8c7210403364acd5269c78e;hb=7e8b128740336bad50e32bbe9dc86f47b406ce6a;hp=bf723bd5d72a59ba0c8dcad7203f24805f77be38;hpb=adb1b586274b920a78ca9dc4d728a9086510c2dd;p=jansson.git diff --git a/src/jansson.hpp b/src/jansson.hpp index bf723bd..efb4b52 100644 --- a/src/jansson.hpp +++ b/src/jansson.hpp @@ -166,8 +166,9 @@ namespace json { // proxies an array element class ElementProxy { public: - // constructor - ElementProxy(json_t* array, unsigned int index) : _array(array), _index(index) {} + ElementProxy(json_t* array, unsigned int index); + ElementProxy(const ElementProxy& other); + ~ElementProxy(); // assign to the proxied element inline ElementProxy& operator=(const Value& value); @@ -186,8 +187,9 @@ namespace json { // proxies an object property class PropertyProxy { public: - // constructor - PropertyProxy(json_t* array, const char* key) : _object(array), _key(key) {} + PropertyProxy(json_t* object, const char *key); + PropertyProxy(const PropertyProxy& other); + ~PropertyProxy(); // assign to the proxied element inline PropertyProxy& operator=(const Value& value); @@ -199,8 +201,11 @@ namespace json { // array object we wrap json_t* _object; + // iterator pointing to property + void* _iter; + // key of property - const char* _key; + char* _key; }; } // namespace json::detail