2014-10-05 14:40:03 +02:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "JsonContainer.h"
|
|
|
|
|
|
|
|
class JsonArray : public JsonContainer
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
JsonArray()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
explicit JsonArray(JsonNode* node)
|
|
|
|
: JsonContainer(node)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2014-10-05 14:55:14 +02:00
|
|
|
JsonValue operator[](int index) const;
|
2014-10-05 14:40:03 +02:00
|
|
|
|
2014-10-05 15:04:17 +02:00
|
|
|
void add(bool value);
|
2014-10-05 15:02:40 +02:00
|
|
|
void add(const char* value);
|
|
|
|
void add(double value, int decimals=2);
|
|
|
|
void add(int value) { add((long) value); }
|
|
|
|
void add(long value);
|
2014-10-05 15:13:00 +02:00
|
|
|
void add(JsonContainer& innerContainer);
|
2014-10-05 14:40:03 +02:00
|
|
|
};
|
|
|
|
|