forked from bblanchon/ArduinoJson
Added JsonArray
This commit is contained in:
@ -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);
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user