HostFileStream.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  * HostFileStream.h
8  *
9  ****/
10 
11 #pragma once
12 
14 #include <IFS/File.h>
15 
21 {
22 public:
24 
25  HostFileStream(const String& fileName, IFS::OpenFlags openFlags = IFS::OpenFlag::Read) : HostFileStream()
26  {
27  open(fileName, openFlags);
28  }
29 };
Manage a set of bit values using enumeration.
Definition: BitSet.h:45
Host File stream class.
Definition: HostFileStream.h:21
HostFileStream(const String &fileName, IFS::OpenFlags openFlags=IFS::OpenFlag::Read)
Definition: HostFileStream.h:25
File stream class.
Definition: IFS/FileStream.h:23
bool open(const String &fileName, IFS::OpenFlags openFlags=OpenFlag::Read)
Open a file by path, and attach this stream object to it.
String fileName() const
Filename of file stream is attached to.
The String class.
Definition: WString.h:137