TemplateStream.hpp
Go to the documentation of this file.
1 /****
2  * TemplateStream.hpp
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  * @author: 23 Oct 2018 - mikee47 <mike@sillyhouse.net>
19  *
20  ****/
21 
22 #pragma once
23 
24 #include "Stream.hpp"
26 
27 namespace FSTR
28 {
34 {
35 public:
39  TemplateStream(const String& string) : ::TemplateStream(new FSTR::Stream(string))
40  {
41  }
42 };
43 
44 } // namespace FSTR
Definition: Stream.hpp:35
describes a counted string stored in flash memory
Definition: String.hpp:174
Template Flash memory stream class.
Definition: TemplateStream.hpp:34
TemplateStream(const String &string)
Create a template stream on top of a flash memory stream.
Definition: TemplateStream.hpp:39
Definition: Array.hpp:108