Extracted class IndentedPrintDecorator from PrettyPrintDecorator

This commit is contained in:
Benoit Blanchon
2014-08-26 09:28:41 +02:00
parent d877d77b63
commit 6539c6982c
12 changed files with 128 additions and 31 deletions

View File

@@ -26,12 +26,18 @@ namespace ArduinoJson
return printTo(sb);
}
size_t prettyPrintTo(Print& p) const
size_t prettyPrintTo(IndentedPrintDecorator& p) const
{
PrettyPrintDecorator decorator(p);
return printTo(decorator);
}
size_t prettyPrintTo(Print& p) const
{
IndentedPrintDecorator decorator(p);
return printTo(decorator);
}
virtual size_t printTo(Print& p) const = 0;
};
}