mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-17 12:32:17 +02:00
27 lines
630 B
C++
27 lines
630 B
C++
// Copyright Benoit Blanchon 2014
|
|
// MIT License
|
|
//
|
|
// Arduino JSON library
|
|
// https://github.com/bblanchon/ArduinoJson
|
|
|
|
#pragma once
|
|
|
|
#include "ForwardDeclarations.hpp"
|
|
#include "Arduino/Printable.hpp"
|
|
|
|
namespace ArduinoJson {
|
|
|
|
class JsonPrintable : public Printable {
|
|
public:
|
|
size_t printTo(char *buffer, size_t bufferSize) const;
|
|
virtual size_t printTo(Print &print) const;
|
|
|
|
size_t prettyPrintTo(char *buffer, size_t bufferSize) const;
|
|
size_t prettyPrintTo(Internals::IndentedPrint &print) const;
|
|
size_t prettyPrintTo(Print &print) const;
|
|
|
|
protected:
|
|
virtual void writeTo(Internals::JsonWriter &) const = 0;
|
|
};
|
|
}
|