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
|
||||
|
||||
#include "ArduinoJson/Internals/JsonWriter.hpp"
|
||||
#include "JsonWriter.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
namespace Internals {
|
||||
|
@ -6,11 +6,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
namespace ArduinoJson {
|
||||
class JsonBuffer;
|
||||
#include "../ForwardDeclarations.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
namespace Internals {
|
||||
class JsonWriter;
|
||||
|
||||
class JsonNode {
|
||||
enum JsonNodeType {
|
||||
|
@ -6,12 +6,12 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../ForwardDeclarations.hpp"
|
||||
#include "JsonNode.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
class JsonValue;
|
||||
|
||||
namespace Internals {
|
||||
|
||||
class JsonNodeWrapper {
|
||||
friend class JsonValue;
|
||||
|
||||
|
@ -6,13 +6,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "../ForwardDeclarations.hpp"
|
||||
#include "JsonNode.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
class JsonBuffer;
|
||||
|
||||
namespace Internals {
|
||||
class JsonNode;
|
||||
|
||||
class JsonParser {
|
||||
public:
|
||||
|
@ -6,12 +6,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ArduinoJson/JsonValue.hpp"
|
||||
#include "ForwardDeclarations.hpp"
|
||||
#include "JsonValue.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
|
||||
class JsonArray;
|
||||
|
||||
class JsonArrayIterator {
|
||||
friend class JsonArray;
|
||||
|
||||
|
@ -6,13 +6,11 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ForwardDeclarations.hpp"
|
||||
#include "JsonArray.hpp"
|
||||
#include "JsonObject.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
namespace Internals {
|
||||
class JsonParser;
|
||||
}
|
||||
|
||||
class JsonBuffer {
|
||||
friend class JsonContainer;
|
||||
|
@ -7,15 +7,11 @@
|
||||
#pragma once
|
||||
|
||||
#include "Arduino/Printable.hpp"
|
||||
#include "ForwardDeclarations.hpp"
|
||||
#include "Internals/JsonNodeIterator.hpp"
|
||||
#include "Internals/JsonNode.hpp"
|
||||
#include "Internals/IndentedPrint.hpp"
|
||||
#include "Internals/JsonNodeWrapper.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
class JsonArray;
|
||||
class JsonObject;
|
||||
class JsonValue;
|
||||
|
||||
class JsonContainer : public Printable, public Internals::JsonNodeWrapper {
|
||||
friend class JsonArray;
|
||||
|
@ -6,8 +6,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ArduinoJson/JsonContainer.hpp"
|
||||
#include "ArduinoJson/JsonObjectIterator.hpp"
|
||||
#include "JsonContainer.hpp"
|
||||
#include "JsonObjectIterator.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
class JsonObject : public JsonContainer {
|
||||
|
@ -6,10 +6,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ArduinoJson/JsonObjectKeyValue.hpp"
|
||||
#include "ForwardDeclarations.hpp"
|
||||
#include "JsonObjectKeyValue.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
class JsonObject;
|
||||
|
||||
class JsonObjectIterator {
|
||||
friend class JsonObject;
|
||||
|
@ -6,11 +6,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ArduinoJson/JsonValue.hpp"
|
||||
#include "ForwardDeclarations.hpp"
|
||||
#include "JsonValue.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
class JsonObjectIterator;
|
||||
|
||||
class JsonObjectKeyValue {
|
||||
friend class JsonObjectIterator;
|
||||
|
||||
|
@ -6,15 +6,10 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ForwardDeclarations.hpp"
|
||||
#include "Internals/JsonNodeWrapper.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
class JsonArray;
|
||||
class JsonArrayIterator;
|
||||
class JsonBuffer;
|
||||
class JsonObject;
|
||||
class JsonObjectIterator;
|
||||
class JsonObjectKeyValue;
|
||||
|
||||
class JsonValue : public Internals::JsonNodeWrapper {
|
||||
friend class JsonArray;
|
||||
|
@ -6,8 +6,8 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ForwardDeclarations.hpp"
|
||||
#include "JsonBuffer.hpp"
|
||||
#include "JsonObject.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
template <int CAPACITY>
|
||||
|
Reference in New Issue
Block a user