Added namespace

This commit is contained in:
Benoît Blanchon
2014-07-03 13:54:27 +02:00
parent 538b15b400
commit bae5c36f41
12 changed files with 248 additions and 212 deletions

View File

@ -9,16 +9,21 @@
#include "Print.h"
#include "Printable.h"
class JsonObjectBase : public Printable
namespace ArduinoJson
{
public:
size_t printTo(char* buffer, size_t bufferSize)
namespace Generator
{
StringBuilder sb(buffer, bufferSize);
return printTo(sb);
class JsonObjectBase : public Printable
{
public:
size_t printTo(char* buffer, size_t bufferSize)
{
StringBuilder sb(buffer, bufferSize);
return printTo(sb);
}
virtual size_t printTo(Print& p) const = 0;
};
}
virtual size_t printTo(Print& p) const = 0;
};
}