Pulled up code from JsonObject to JsonContainer

This commit is contained in:
Benoit Blanchon
2014-10-01 16:56:22 +02:00
parent b0e43f7538
commit 4d2d535a03
9 changed files with 138 additions and 53 deletions

View File

@ -7,8 +7,6 @@ struct JsonNode;
class JsonObject : public JsonContainer
{
friend JsonValue;
public:
JsonObject()
{
@ -19,13 +17,9 @@ public:
{
}
size_t size();
JsonValue operator[](const char* key);
void remove(const char* key);
bool operator==(const JsonObject& other) const;
private:
JsonNode* getOrCreateNodeAt(char const* key);
};