mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-02 00:38:26 +01:00
Epic refactoring in progress
This commit is contained in:
@@ -7,40 +7,16 @@
|
||||
#pragma once
|
||||
|
||||
#include "Arduino/Printable.hpp"
|
||||
#include "Internals/JsonNodeIterator.hpp"
|
||||
#include "Internals/JsonNodeWrapper.hpp"
|
||||
|
||||
namespace ArduinoJson {
|
||||
|
||||
class JsonContainer : public Printable, public Internals::JsonNodeWrapper {
|
||||
class JsonContainer : public Printable {
|
||||
public:
|
||||
JsonContainer() {}
|
||||
|
||||
explicit JsonContainer(Internals::JsonNode *node) : JsonNodeWrapper(node) {}
|
||||
|
||||
size_t size() const;
|
||||
|
||||
bool operator==(JsonContainer const &other) const;
|
||||
|
||||
size_t printTo(char *buffer, size_t bufferSize) const;
|
||||
virtual size_t printTo(Print &print) const;
|
||||
|
||||
size_t prettyPrintTo(char *buffer, size_t bufferSize) const;
|
||||
size_t prettyPrintTo(ArduinoJson::Internals::IndentedPrint &print) const;
|
||||
size_t prettyPrintTo(Print &print) const;
|
||||
|
||||
protected:
|
||||
Internals::JsonNodeIterator beginChildren() const {
|
||||
return Internals::JsonNodeIterator(_node ? _node->getContainerChild() : 0);
|
||||
}
|
||||
|
||||
Internals::JsonNodeIterator endChildren() const {
|
||||
return Internals::JsonNodeIterator(0);
|
||||
}
|
||||
|
||||
void addChild(Internals::JsonNode *);
|
||||
void removeChild(Internals::JsonNode *);
|
||||
Internals::JsonNode *createNode();
|
||||
Internals::JsonNode *firstChild() const;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user