2014-07-18 22:40:50 +02:00
|
|
|
/*
|
|
|
|
* Arduino JSON library
|
|
|
|
* Benoit Blanchon 2014 - MIT License
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "JsonValue.h"
|
|
|
|
#include "JsonPair.h"
|
|
|
|
#include "JsonToken.h"
|
|
|
|
|
|
|
|
namespace ArduinoJson
|
|
|
|
{
|
|
|
|
namespace Parser
|
|
|
|
{
|
2014-07-19 12:44:27 +02:00
|
|
|
class JsonObjectIterator : public JsonToken
|
2014-07-18 22:40:50 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2014-07-19 12:44:27 +02:00
|
|
|
JsonObjectIterator(JsonToken token)
|
|
|
|
: JsonToken(token)
|
2014-07-18 22:40:50 +02:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
void operator++()
|
|
|
|
{
|
2014-07-19 12:44:27 +02:00
|
|
|
*this = JsonObjectIterator(nextSibling().nextSibling());
|
2014-07-18 22:40:50 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
JsonPair operator*() const
|
|
|
|
{
|
2014-07-19 12:44:27 +02:00
|
|
|
return JsonPair(*this);
|
2014-07-18 22:40:50 +02:00
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|