mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-16 20:12:16 +02:00
36 lines
857 B
C++
36 lines
857 B
C++
#pragma once
|
|
|
|
#include "Internals/JsonNodeWrapper.h"
|
|
|
|
class JsonArray;
|
|
class JsonContainer;
|
|
class JsonObject;
|
|
|
|
class JsonValue : public JsonNodeWrapper
|
|
{
|
|
public:
|
|
|
|
JsonValue() {}
|
|
|
|
explicit JsonValue(JsonNode* node)
|
|
: JsonNodeWrapper(node)
|
|
{
|
|
}
|
|
|
|
void operator=(bool);
|
|
void operator=(const char*);
|
|
void operator=(double x) { set(x, 2); }
|
|
void operator=(int);
|
|
void operator=(const JsonValue& value) { duplicate(value); }
|
|
void operator=(const JsonNodeWrapper& object) { duplicate(object); }
|
|
|
|
operator bool() const;
|
|
operator const char*() const;
|
|
operator double() const;
|
|
operator long() const;
|
|
operator int() const { return operator long(); }
|
|
operator JsonArray() const;
|
|
operator JsonObject() const;
|
|
|
|
void set(double value, int decimals);
|
|
}; |