Files
ArduinoJson/JsonGenerator/IndentedPrintDecorator.h

27 lines
365 B
C
Raw Normal View History

#pragma once
/*
* Arduino JSON library
* Benoit Blanchon 2014 - MIT License
*/
#pragma once
#include "Print.h"
class IndentedPrintDecorator : public Print
{
public:
IndentedPrintDecorator(Print& p)
2014-08-25 09:17:32 +02:00
: currentLevel(0), sink(p)
{
}
virtual size_t write(uint8_t);
private:
int currentLevel;
2014-08-25 09:17:32 +02:00
Print& sink;
};