Test that nested JsonObject can be stored

This commit is contained in:
Benoit Blanchon
2014-09-27 16:18:40 +02:00
parent bcc8cece24
commit bc44c36385
9 changed files with 114 additions and 5 deletions

View File

@ -1,12 +1,16 @@
#pragma once
struct JsonNode;
//class JsonBuffer;
class JsonValue
{
public:
explicit JsonValue()
: _node(0)
{
}
explicit JsonValue(JsonNode* node)
: _node(node)
{
@ -16,14 +20,15 @@ public:
void operator=(const char*);
void operator=(double);
void operator=(int);
void operator=(const JsonObject&);
operator bool() const;
operator const char*() const;
operator double() const;
operator int() const;
operator JsonObject() const;
private:
//JsonBuffer& _buffer;
JsonNode* _node;
};