Added JsonArray

This commit is contained in:
Benoit Blanchon
2014-10-05 14:40:03 +02:00
parent 4d2d535a03
commit cb3c59ec07
12 changed files with 339 additions and 54 deletions

View File

@ -1,20 +1,25 @@
#pragma once
#include "Internals/JsonNode.h"
class JsonObject;
class JsonValue;
struct JsonNode;
#include "JsonArray.h"
#include "JsonObject.h"
class JsonBuffer
{
friend class JsonContainer;
public:
// virtual ~JsonBuffer() = 0;
virtual ~JsonBuffer() {};
JsonArray createArray()
{
return JsonArray(createContainerNode(JSON_ARRAY));
}
JsonObject createObject()
{
return JsonObject(createContainerNode(JSON_OBJECT));
}
JsonObject createObject();
JsonValue createValue();
protected:
@ -22,5 +27,6 @@ protected:
private:
JsonNode* createNode(JsonNodeType type);
JsonNode* createContainerNode(JsonNodeType type);
};