forked from bblanchon/ArduinoJson
Added JsonArray
This commit is contained in:
1 parent
4d2d535a03
commit
cb3c59ec07
12 files changed
+339
-54
No files matched your search
+14
-8
@@ -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