Sming Framework API
()
Toggle main menu visibility
Sming
Components
FlashString
src
include
FlashString
StringPrinter.hpp
Go to the documentation of this file.
1
/****
2
* StringPrinter.cpp - Print support for String
3
*
4
* Copyright 2019 mikee47 <mike@sillyhouse.net>
5
*
6
* This file is part of the FlashString Library
7
*
8
* This library is free software: you can redistribute it and/or modify it under the terms of the
9
* GNU General Public License as published by the Free Software Foundation, version 3 or later.
10
*
11
* This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
12
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
* See the GNU General Public License for more details.
14
*
15
* You should have received a copy of the GNU General Public License along with this library.
16
* If not, see <https://www.gnu.org/licenses/>.
17
*
18
****/
19
20
#pragma once
21
22
#include <
Printable.h
>
23
24
namespace
FSTR
25
{
26
class
String
;
27
34
class
StringPrinter
35
{
36
public
:
37
StringPrinter
(
const
String
&
string
) : string(string)
38
{
39
}
40
41
size_t
printTo
(
Print
& p)
const
;
42
43
private
:
44
const
String
& string;
45
};
46
47
}
// namespace FSTR
Printable.h
FSTR::StringPrinter::printTo
size_t printTo(Print &p) const
String
The String class.
Definition:
WString.h:136
FSTR
Definition:
Array.hpp:107
FSTR::StringPrinter::StringPrinter
StringPrinter(const String &string)
Definition:
StringPrinter.hpp:54
Print
Provides formatted output to stream.
Definition:
Print.h:36
Generated by
1.8.17