forked from bblanchon/ArduinoJson
Added skeleton of class IndentedPrintDecorator
This commit is contained in:
26
JsonGenerator/IndentedPrintDecorator.h
Normal file
26
JsonGenerator/IndentedPrintDecorator.h
Normal file
@ -0,0 +1,26 @@
|
||||
#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), print(p)
|
||||
{
|
||||
}
|
||||
|
||||
virtual size_t write(uint8_t);
|
||||
|
||||
private:
|
||||
int currentLevel;
|
||||
Print& print;
|
||||
};
|
||||
|
Reference in New Issue
Block a user