All tests passed!

This commit is contained in:
Benoit Blanchon
2014-10-30 21:51:59 +01:00
parent 45a8ed6531
commit 889f059758
17 changed files with 91 additions and 69 deletions

View File

@ -6,15 +6,20 @@
#pragma once
#include "Internals/JsonObjectNode.hpp"
#include "Internals/NonCopyable.hpp"
#include "JsonArray.hpp"
#include "JsonObjectConstIterator.hpp"
#include "JsonObjectIterator.hpp"
#include "JsonPrintable.hpp"
#include "Internals/JsonObjectNode.hpp"
#include "JsonArray.hpp"
#define JSON_OBJECT_SIZE(NUMBER_OF_ELEMENTS) \
(sizeof(JsonObject) + \
(NUMBER_OF_ELEMENTS) * sizeof(Internals::JsonObjectNode))
namespace ArduinoJson {
class JsonObject : public JsonPrintable {
class JsonObject : public JsonPrintable, Internals::NonCopyable {
friend class JsonBuffer;
public:
@ -55,10 +60,6 @@ class JsonObject : public JsonPrintable {
// constructor is private, instance must be created via JsonBuffer
JsonObject(JsonBuffer *buffer) : _buffer(buffer), _firstNode(NULL) {}
JsonObject(const JsonObject &); // copy is forbidden, use a reference instead
JsonObject &operator=(
const JsonObject &); // copy is forbidden, use a reference instead
JsonValue &add(key_type key) { return (*this)[key]; }
Internals::JsonObjectNode *createNode(key_type key);
void addNode(Internals::JsonObjectNode *nodeToAdd);