mirror of
				https://github.com/bblanchon/ArduinoJson.git
				synced 2025-11-04 00:21:36 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			39 lines
		
	
	
		
			682 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			39 lines
		
	
	
		
			682 B
		
	
	
	
		
			C++
		
	
	
	
	
	
#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&);
 | 
						|
    
 | 
						|
    operator bool() const;
 | 
						|
    operator const char*() const;
 | 
						|
    operator double() const;
 | 
						|
    operator int() const;
 | 
						|
    operator JsonObject() const;
 | 
						|
 | 
						|
private:
 | 
						|
    JsonNode* _node;
 | 
						|
 | 
						|
    void setAsProxyTo(JsonNode*);
 | 
						|
    JsonNode* getActualNode() const;
 | 
						|
};
 | 
						|
 |