forked from bblanchon/ArduinoJson
Removed ForwardDeclarations.hpp
This commit is contained in:
@ -1,18 +0,0 @@
|
||||
// Copyright Benoit Blanchon 2014
|
||||
// MIT License
|
||||
//
|
||||
// Arduino JSON library
|
||||
// https://github.com/bblanchon/ArduinoJson
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace ArduinoJson {
|
||||
class JsonArray;
|
||||
class JsonBuffer;
|
||||
class JsonObject;
|
||||
|
||||
namespace Internals {
|
||||
class IndentedPrint;
|
||||
class JsonWriter;
|
||||
}
|
||||
}
|
@ -6,9 +6,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../ForwardDeclarations.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
|
||||
class JsonArray;
|
||||
class JsonObject;
|
||||
|
||||
namespace Internals {
|
||||
|
||||
union JsonValueContent {
|
||||
|
@ -6,18 +6,19 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ForwardDeclarations.hpp"
|
||||
#include "JsonArrayIterator.hpp"
|
||||
#include "JsonArrayConstIterator.hpp"
|
||||
#include "JsonPrintable.hpp"
|
||||
#include "JsonObject.hpp"
|
||||
#include "Internals/ReferenceType.hpp"
|
||||
#include "JsonArrayConstIterator.hpp"
|
||||
#include "JsonArrayIterator.hpp"
|
||||
#include "JsonPrintable.hpp"
|
||||
|
||||
#define JSON_ARRAY_SIZE(NUMBER_OF_ELEMENTS) \
|
||||
(sizeof(JsonArray) + (NUMBER_OF_ELEMENTS) * sizeof(Internals::JsonArrayNode))
|
||||
|
||||
namespace ArduinoJson {
|
||||
|
||||
class JsonObject;
|
||||
class JsonBuffer;
|
||||
|
||||
class JsonArray : public JsonPrintable, public Internals::ReferenceType {
|
||||
friend class JsonBuffer;
|
||||
|
||||
|
@ -6,10 +6,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ForwardDeclarations.hpp"
|
||||
#include "JsonValue.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
class JsonArray;
|
||||
class JsonObject;
|
||||
|
||||
class JsonBuffer {
|
||||
public:
|
||||
|
@ -6,9 +6,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Internals/JsonObjectNode.hpp"
|
||||
#include "Internals/ReferenceType.hpp"
|
||||
#include "JsonArray.hpp"
|
||||
#include "JsonObjectConstIterator.hpp"
|
||||
#include "JsonObjectIterator.hpp"
|
||||
#include "JsonPrintable.hpp"
|
||||
@ -19,6 +17,9 @@
|
||||
|
||||
namespace ArduinoJson {
|
||||
|
||||
class JsonArray;
|
||||
class JsonBuffer;
|
||||
|
||||
class JsonObject : public JsonPrintable, public Internals::ReferenceType {
|
||||
friend class JsonBuffer;
|
||||
|
||||
|
@ -7,7 +7,6 @@
|
||||
#pragma once
|
||||
|
||||
#include "JsonValue.hpp"
|
||||
#include "Internals/JsonObjectNode.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
|
||||
|
@ -6,11 +6,15 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ForwardDeclarations.hpp"
|
||||
#include "Arduino/Printable.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
|
||||
namespace Internals {
|
||||
class IndentedPrint;
|
||||
class JsonWriter;
|
||||
}
|
||||
|
||||
class JsonPrintable : public Printable {
|
||||
public:
|
||||
size_t printTo(char *buffer, size_t bufferSize) const;
|
||||
|
@ -8,11 +8,18 @@
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
#include "ForwardDeclarations.hpp"
|
||||
#include "Internals/JsonValueContent.hpp"
|
||||
#include "Internals/JsonValueType.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
|
||||
class JsonArray;
|
||||
class JsonObject;
|
||||
|
||||
namespace Internals {
|
||||
class JsonWriter;
|
||||
}
|
||||
|
||||
class JsonValue {
|
||||
public:
|
||||
JsonValue() : _type(Internals::JSON_UNDEFINED) {}
|
||||
|
Reference in New Issue
Block a user