forked from bblanchon/ArduinoJson
Moved forward declarations in a single .hpp file
This commit is contained in:
23
include/ArduinoJson/ForwardDeclarations.hpp
Normal file
23
include/ArduinoJson/ForwardDeclarations.hpp
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
// Copyright Benoit Blanchon 2014
|
||||||
|
// MIT License
|
||||||
|
//
|
||||||
|
// Arduino JSON library
|
||||||
|
// https://github.com/bblanchon/ArduinoJson
|
||||||
|
|
||||||
|
#pragma once
|
||||||
|
|
||||||
|
namespace ArduinoJson {
|
||||||
|
class JsonArray;
|
||||||
|
class JsonArrayIterator;
|
||||||
|
class JsonBuffer;
|
||||||
|
class JsonObject;
|
||||||
|
class JsonObjectIterator;
|
||||||
|
class JsonObjectKeyValue;
|
||||||
|
class JsonValue;
|
||||||
|
namespace Internals {
|
||||||
|
class IndentedPrint;
|
||||||
|
class JsonNode;
|
||||||
|
class JsonParser;
|
||||||
|
class JsonWriter;
|
||||||
|
}
|
||||||
|
}
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "ArduinoJson/Internals/JsonWriter.hpp"
|
#include "JsonWriter.hpp"
|
||||||
|
|
||||||
namespace ArduinoJson {
|
namespace ArduinoJson {
|
||||||
namespace Internals {
|
namespace Internals {
|
||||||
|
@ -6,11 +6,10 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
namespace ArduinoJson {
|
#include "../ForwardDeclarations.hpp"
|
||||||
class JsonBuffer;
|
|
||||||
|
|
||||||
|
namespace ArduinoJson {
|
||||||
namespace Internals {
|
namespace Internals {
|
||||||
class JsonWriter;
|
|
||||||
|
|
||||||
class JsonNode {
|
class JsonNode {
|
||||||
enum JsonNodeType {
|
enum JsonNodeType {
|
||||||
|
@ -6,12 +6,12 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "../ForwardDeclarations.hpp"
|
||||||
#include "JsonNode.hpp"
|
#include "JsonNode.hpp"
|
||||||
|
|
||||||
namespace ArduinoJson {
|
namespace ArduinoJson {
|
||||||
class JsonValue;
|
|
||||||
|
|
||||||
namespace Internals {
|
namespace Internals {
|
||||||
|
|
||||||
class JsonNodeWrapper {
|
class JsonNodeWrapper {
|
||||||
friend class JsonValue;
|
friend class JsonValue;
|
||||||
|
|
||||||
|
@ -6,13 +6,11 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "../ForwardDeclarations.hpp"
|
||||||
#include "JsonNode.hpp"
|
#include "JsonNode.hpp"
|
||||||
|
|
||||||
namespace ArduinoJson {
|
namespace ArduinoJson {
|
||||||
class JsonBuffer;
|
|
||||||
|
|
||||||
namespace Internals {
|
namespace Internals {
|
||||||
class JsonNode;
|
|
||||||
|
|
||||||
class JsonParser {
|
class JsonParser {
|
||||||
public:
|
public:
|
||||||
|
@ -6,12 +6,11 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "ArduinoJson/JsonValue.hpp"
|
#include "ForwardDeclarations.hpp"
|
||||||
|
#include "JsonValue.hpp"
|
||||||
|
|
||||||
namespace ArduinoJson {
|
namespace ArduinoJson {
|
||||||
|
|
||||||
class JsonArray;
|
|
||||||
|
|
||||||
class JsonArrayIterator {
|
class JsonArrayIterator {
|
||||||
friend class JsonArray;
|
friend class JsonArray;
|
||||||
|
|
||||||
|
@ -6,13 +6,11 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "ForwardDeclarations.hpp"
|
||||||
#include "JsonArray.hpp"
|
#include "JsonArray.hpp"
|
||||||
#include "JsonObject.hpp"
|
#include "JsonObject.hpp"
|
||||||
|
|
||||||
namespace ArduinoJson {
|
namespace ArduinoJson {
|
||||||
namespace Internals {
|
|
||||||
class JsonParser;
|
|
||||||
}
|
|
||||||
|
|
||||||
class JsonBuffer {
|
class JsonBuffer {
|
||||||
friend class JsonContainer;
|
friend class JsonContainer;
|
||||||
|
@ -7,15 +7,11 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "Arduino/Printable.hpp"
|
#include "Arduino/Printable.hpp"
|
||||||
|
#include "ForwardDeclarations.hpp"
|
||||||
#include "Internals/JsonNodeIterator.hpp"
|
#include "Internals/JsonNodeIterator.hpp"
|
||||||
#include "Internals/JsonNode.hpp"
|
|
||||||
#include "Internals/IndentedPrint.hpp"
|
|
||||||
#include "Internals/JsonNodeWrapper.hpp"
|
#include "Internals/JsonNodeWrapper.hpp"
|
||||||
|
|
||||||
namespace ArduinoJson {
|
namespace ArduinoJson {
|
||||||
class JsonArray;
|
|
||||||
class JsonObject;
|
|
||||||
class JsonValue;
|
|
||||||
|
|
||||||
class JsonContainer : public Printable, public Internals::JsonNodeWrapper {
|
class JsonContainer : public Printable, public Internals::JsonNodeWrapper {
|
||||||
friend class JsonArray;
|
friend class JsonArray;
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "ArduinoJson/JsonContainer.hpp"
|
#include "JsonContainer.hpp"
|
||||||
#include "ArduinoJson/JsonObjectIterator.hpp"
|
#include "JsonObjectIterator.hpp"
|
||||||
|
|
||||||
namespace ArduinoJson {
|
namespace ArduinoJson {
|
||||||
class JsonObject : public JsonContainer {
|
class JsonObject : public JsonContainer {
|
||||||
|
@ -6,10 +6,10 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "ArduinoJson/JsonObjectKeyValue.hpp"
|
#include "ForwardDeclarations.hpp"
|
||||||
|
#include "JsonObjectKeyValue.hpp"
|
||||||
|
|
||||||
namespace ArduinoJson {
|
namespace ArduinoJson {
|
||||||
class JsonObject;
|
|
||||||
|
|
||||||
class JsonObjectIterator {
|
class JsonObjectIterator {
|
||||||
friend class JsonObject;
|
friend class JsonObject;
|
||||||
|
@ -6,11 +6,10 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "ArduinoJson/JsonValue.hpp"
|
#include "ForwardDeclarations.hpp"
|
||||||
|
#include "JsonValue.hpp"
|
||||||
|
|
||||||
namespace ArduinoJson {
|
namespace ArduinoJson {
|
||||||
class JsonObjectIterator;
|
|
||||||
|
|
||||||
class JsonObjectKeyValue {
|
class JsonObjectKeyValue {
|
||||||
friend class JsonObjectIterator;
|
friend class JsonObjectIterator;
|
||||||
|
|
||||||
|
@ -6,15 +6,10 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "ForwardDeclarations.hpp"
|
||||||
#include "Internals/JsonNodeWrapper.hpp"
|
#include "Internals/JsonNodeWrapper.hpp"
|
||||||
|
|
||||||
namespace ArduinoJson {
|
namespace ArduinoJson {
|
||||||
class JsonArray;
|
|
||||||
class JsonArrayIterator;
|
|
||||||
class JsonBuffer;
|
|
||||||
class JsonObject;
|
|
||||||
class JsonObjectIterator;
|
|
||||||
class JsonObjectKeyValue;
|
|
||||||
|
|
||||||
class JsonValue : public Internals::JsonNodeWrapper {
|
class JsonValue : public Internals::JsonNodeWrapper {
|
||||||
friend class JsonArray;
|
friend class JsonArray;
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
|
#include "ForwardDeclarations.hpp"
|
||||||
#include "JsonBuffer.hpp"
|
#include "JsonBuffer.hpp"
|
||||||
#include "JsonObject.hpp"
|
|
||||||
|
|
||||||
namespace ArduinoJson {
|
namespace ArduinoJson {
|
||||||
template <int CAPACITY>
|
template <int CAPACITY>
|
||||||
|
Reference in New Issue
Block a user