forked from bblanchon/ArduinoJson
Renamed IndentedPrintDecorator to PrettyPrintDecorator
This commit is contained in:
@ -1,32 +0,0 @@
|
||||
#pragma once
|
||||
/*
|
||||
* Arduino JSON library
|
||||
* Benoit Blanchon 2014 - MIT License
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "Print.h"
|
||||
|
||||
class IndentedPrintDecorator : public Print
|
||||
{
|
||||
public:
|
||||
|
||||
IndentedPrintDecorator(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();
|
||||
};
|
||||
|
Reference in New Issue
Block a user