TemplateFileStream.h
Go to the documentation of this file.
1 /****
2  * Sming Framework Project - Open Source framework for high efficiency native ESP8266 development.
3  * Created 2015 by Skurydin Alexey
4  * http://github.com/SmingHub/Sming
5  * All files of the Sming Core are provided under the LGPL v3 license.
6  *
7  * TemplateFileStream.h
8  *
9  ****/
10 
11 #pragma once
12 
13 #include "FileStream.h"
14 #include "TemplateStream.h"
15 
21 {
22 public:
23  TemplateFileStream(const String& fileName) : TemplateStream(new FileStream(fileName))
24  {
25  }
26 };
The String class.
Definition: WString.h:136
Template stream using content from the filesystem.
Definition: TemplateFileStream.h:20
File stream class.
Definition: FileStream.h:20
TemplateFileStream(const String &fileName)
Definition: TemplateFileStream.h:31
TemplateStream(IDataSourceStream *stream, bool owned=true)
Create a template stream.
Definition: TemplateStream.h:58
Stream which performs variable-value substitution on-the-fly.
Definition: TemplateStream.h:41