forked from bblanchon/ArduinoJson
Moved JsonValue to namespace ArduinoJson::Generator
This commit is contained in:
@ -22,7 +22,7 @@ namespace ArduinoJson
|
||||
}
|
||||
|
||||
private:
|
||||
Internals::JsonValue items[N];
|
||||
JsonValue items[N];
|
||||
};
|
||||
}
|
||||
}
|
@ -14,7 +14,7 @@ namespace ArduinoJson
|
||||
class JsonArrayBase : public JsonPrintable
|
||||
{
|
||||
public:
|
||||
JsonArrayBase(Internals::JsonValue* items, int capacity)
|
||||
JsonArrayBase(JsonValue* items, int capacity)
|
||||
: items(items), capacity(capacity), count(0)
|
||||
{
|
||||
|
||||
@ -33,7 +33,7 @@ namespace ArduinoJson
|
||||
{
|
||||
if (count >= capacity) return;
|
||||
|
||||
Internals::JsonValue& v = items[count++];
|
||||
JsonValue& v = items[count++];
|
||||
v.set<DIGITS>(value);
|
||||
}
|
||||
|
||||
@ -42,7 +42,7 @@ namespace ArduinoJson
|
||||
using JsonPrintable::printTo;
|
||||
|
||||
private:
|
||||
Internals::JsonValue* items;
|
||||
JsonValue* items;
|
||||
int capacity, count;
|
||||
};
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ namespace ArduinoJson
|
||||
void add(const char* key, double value)
|
||||
{
|
||||
getValue(key).set<DIGITS>(value);
|
||||
}
|
||||
}
|
||||
|
||||
using JsonPrintable::printTo;
|
||||
|
||||
@ -37,7 +37,7 @@ namespace ArduinoJson
|
||||
struct KeyValuePair
|
||||
{
|
||||
Internals::EscapedString key;
|
||||
Internals::JsonValue value;
|
||||
JsonValue value;
|
||||
};
|
||||
|
||||
JsonObjectBase(KeyValuePair* items, int capacity)
|
||||
@ -45,7 +45,7 @@ namespace ArduinoJson
|
||||
{
|
||||
}
|
||||
|
||||
Internals::JsonValue& getValue(const char* key);
|
||||
JsonValue& getValue(const char* key);
|
||||
|
||||
private:
|
||||
KeyValuePair* items;
|
||||
|
@ -6,7 +6,7 @@
|
||||
#include "EscapedString.h"
|
||||
#include "JsonValue.h"
|
||||
|
||||
using namespace ArduinoJson::Internals;
|
||||
using namespace ArduinoJson::Generator;
|
||||
|
||||
JsonValue JsonValue::nullInstance;
|
||||
|
||||
|
@ -11,7 +11,7 @@
|
||||
|
||||
namespace ArduinoJson
|
||||
{
|
||||
namespace Internals
|
||||
namespace Generator
|
||||
{
|
||||
class JsonValue
|
||||
{
|
||||
@ -76,7 +76,7 @@ namespace ArduinoJson
|
||||
bool asBool;
|
||||
long asLong;
|
||||
Printable* asPrintable;
|
||||
EscapedString asString;
|
||||
Internals::EscapedString asString;
|
||||
double asDouble;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user