mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 12:32:17 +02:00
27 lines
367 B
C
27 lines
367 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), print(p)
|
||
|
{
|
||
|
}
|
||
|
|
||
|
virtual size_t write(uint8_t);
|
||
|
|
||
|
private:
|
||
|
int currentLevel;
|
||
|
Print& print;
|
||
|
};
|
||
|
|