mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-02 08:48:27 +01:00
Improved JsonArrayIterator
This commit is contained in:
@@ -10,15 +10,22 @@
|
||||
|
||||
namespace ArduinoJson {
|
||||
class JsonArray;
|
||||
class JsonContainer;
|
||||
class JsonArrayIterator;
|
||||
class JsonBuffer;
|
||||
class JsonObject;
|
||||
class JsonObjectIterator;
|
||||
class JsonObjectKeyValue;
|
||||
|
||||
class JsonValue : public Internals::JsonNodeWrapper {
|
||||
friend class JsonArray;
|
||||
friend class JsonArrayIterator;
|
||||
friend class JsonBuffer;
|
||||
friend class JsonObject;
|
||||
friend class JsonObjectKeyValue;
|
||||
|
||||
public:
|
||||
JsonValue() {}
|
||||
|
||||
explicit JsonValue(Internals::JsonNode *node) : JsonNodeWrapper(node) {}
|
||||
|
||||
void operator=(bool value);
|
||||
void operator=(const char *value);
|
||||
void operator=(double value) { set(value, 2); }
|
||||
@@ -42,5 +49,8 @@ class JsonValue : public Internals::JsonNodeWrapper {
|
||||
T as() {
|
||||
return static_cast<T>(*this);
|
||||
}
|
||||
|
||||
private:
|
||||
explicit JsonValue(Internals::JsonNode *node) : JsonNodeWrapper(node) {}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user