Files
ArduinoJson/JsonGenerator/IndentedPrintDecorator.h
2014-08-25 09:17:32 +02:00

27 lines
365 B
C++

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