mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-02 08:48:27 +01:00
Moved .h files to include/
This commit is contained in:
37
include/ArduinoJson/Internals/JsonNodeWrapper.h
Normal file
37
include/ArduinoJson/Internals/JsonNodeWrapper.h
Normal file
@@ -0,0 +1,37 @@
|
||||
#pragma once
|
||||
|
||||
#include "JsonNode.h"
|
||||
class JsonValue;
|
||||
|
||||
class JsonNodeWrapper
|
||||
{
|
||||
friend JsonValue;
|
||||
|
||||
public:
|
||||
JsonNodeWrapper()
|
||||
: _node(0)
|
||||
{
|
||||
}
|
||||
|
||||
explicit JsonNodeWrapper(JsonNode* node)
|
||||
: _node(node)
|
||||
{
|
||||
}
|
||||
|
||||
protected:
|
||||
|
||||
void duplicate(const JsonNodeWrapper& other)
|
||||
{
|
||||
if (!_node)
|
||||
{
|
||||
_node = other._node;
|
||||
}
|
||||
else
|
||||
{
|
||||
_node->duplicate(other._node);
|
||||
}
|
||||
}
|
||||
|
||||
JsonNode* _node;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user