RTduino Source Code Reference Manual
Printable.h
1 /*
2  * Copyright (c) 2021-2022, RTduino Development Team
3  *
4  * SPDX-License-Identifier: LGPL-v2.1
5  *
6  * https://github.com/RTduino/RTduino
7  * https://gitee.com/rtduino/RTduino
8  *
9  * Change Logs:
10  * Date Author Notes
11  * 2022-04-23 Meco Man port to RTduino
12  */
13 /*
14  Printable.h - Interface class that allows printing of complex types
15  Copyright (c) 2011 Adrian McEwen. All right reserved.
16 
17  This library is free software; you can redistribute it and/or
18  modify it under the terms of the GNU Lesser General Public
19  License as published by the Free Software Foundation; either
20  version 2.1 of the License, or (at your option) any later version.
21 
22  This library is distributed in the hope that it will be useful,
23  but WITHOUT ANY WARRANTY; without even the implied warranty of
24  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
25  Lesser General Public License for more details.
26 
27  You should have received a copy of the GNU Lesser General Public
28  License along with this library; if not, write to the Free Software
29  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
30 */
31 
32 #ifndef Printable_h
33 #define Printable_h
34 
35 #include <stdlib.h>
36 
37 class Print;
38 
45 class Printable
46 {
47  public:
48  virtual size_t printTo(Print& p) const = 0;
49 };
50 
51 #endif
Definition: Print.h:47
Definition: Printable.h:46