Huge refactoring in progress...

This commit is contained in:
Benoit Blanchon
2014-10-29 14:24:34 +01:00
parent 10ab95522d
commit ba2b142c8a
27 changed files with 408 additions and 743 deletions

View File

@@ -10,17 +10,10 @@
#include "Internals/JsonObjectNode.hpp"
namespace ArduinoJson {
class JsonPair {
friend class Internals::JsonObjectIterator;
friend class Internals::JsonObjectConstIterator;
struct JsonPair {
JsonPair(const char* k) : key(k) {}
public:
JsonPair(Internals::JsonObjectNode *node) : _node(node) {}
const char *key() const { return _node->key; }
JsonValue value() { return JsonValue(&_node->value); }
private:
Internals::JsonObjectNode *_node;
const char* const key;
JsonValue value;
};
}