Files
ArduinoJson/srcs/JsonValue.h

39 lines
723 B
C
Raw Normal View History

#pragma once
struct JsonNode;
class JsonValue
{
public:
explicit JsonValue()
: _node(0)
{
}
explicit JsonValue(JsonNode* node)
: _node(node)
{
}
void operator=(bool);
void operator=(const char*);
void operator=(double);
void operator=(int);
void operator=(const JsonObject&);
void operator=(const JsonValue&);
2014-09-27 15:25:00 +02:00
operator bool() const;
operator const char*() const;
operator double() const;
operator int() const;
operator JsonObject() const;
2014-09-30 17:32:45 +02:00
void set(double value, int decimals);
private:
JsonNode* _node;
2014-09-28 21:04:59 +02:00
void setAsProxyTo(JsonNode*);
2014-09-28 21:04:59 +02:00
JsonNode* getActualNode() const;
2014-09-30 17:32:45 +02:00
};