Renamed IndentedPrintDecorator to PrettyPrintDecorator

This commit is contained in:
Benoit Blanchon
2014-08-25 11:42:07 +02:00
parent f7aa0f89e3
commit 2ddf8f1619
11 changed files with 27 additions and 27 deletions

View File

@ -0,0 +1,32 @@
#pragma once
/*
* Arduino JSON library
* Benoit Blanchon 2014 - MIT License
*/
#pragma once
#include "Print.h"
class PrettyPrintDecorator : public Print
{
public:
PrettyPrintDecorator(Print& p)
: indent(0), sink(p)
{
previousChar = 0;
isInAString = false;
}
virtual size_t write(uint8_t);
private:
int indent;
uint8_t previousChar;
Print& sink;
bool isInAString;
size_t writeln();
};