Formated code with clang-format

This commit is contained in:
Benoit Blanchon
2014-10-23 19:54:00 +02:00
parent 888fdc1d54
commit 9175046f35
52 changed files with 2002 additions and 2638 deletions

View File

@ -3,40 +3,26 @@
#include "ArduinoJson/JsonContainer.hpp"
#include "ArduinoJson/JsonObjectIterator.hpp"
namespace ArduinoJson
{
class JsonObject : public JsonContainer
{
public:
namespace ArduinoJson {
class JsonObject : public JsonContainer {
public:
JsonObject() {}
JsonObject()
{
}
explicit JsonObject(Internals::JsonNode *node) : JsonContainer(node) {}
explicit JsonObject(Internals::JsonNode* node)
: JsonContainer(node)
{
}
JsonValue operator[](const char *key);
void remove(const char *key);
JsonValue operator[](const char* key);
void remove(const char* key);
JsonArray createNestedArray(const char *key);
JsonObject createNestedObject(const char *key);
JsonArray createNestedArray(const char* key);
JsonObject createNestedObject(const char* key);
bool success() { return _node && _node->isObject(); }
bool success()
{
return _node && _node->isObject();
}
JsonObjectIterator begin();
JsonObjectIterator begin();
JsonObjectIterator end() { return JsonObjectIterator(0); }
JsonObjectIterator end()
{
return JsonObjectIterator(0);
}
private:
Internals::JsonNode* getOrCreateNodeAt(const char* key);
};
private:
Internals::JsonNode *getOrCreateNodeAt(const char *key);
};
}