Implement Printable

This commit is contained in:
Benoit Blanchon
2014-09-30 16:43:10 +02:00
parent 6b2705769a
commit 3243f2dc58
6 changed files with 37 additions and 35 deletions

24
srcs/Printable.h Normal file
View File

@ -0,0 +1,24 @@
/*
* Arduino JSON library
* Benoit Blanchon 2014 - MIT License
*/
#pragma once
#ifndef ARDUINO
class Print;
class Printable
{
public:
virtual size_t printTo(Print& p) const = 0;
};
#else
#include <Printable.h>
#endif