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 
20 {
21 public:
23 
24  HostFileStream(const String& fileName, IFS::OpenFlags openFlags = IFS::OpenFlag::Read) : HostFileStream()
25  {
26  open(fileName, openFlags);
27  }
28 };
The String class.
Definition: WString.h:136
String fileName() const
Filename of file stream is attached to.
Manage a set of bit values using enumeration.
Definition: BitSet.h:43
Host File stream class.
Definition: HostFileStream.h:19
bool open(const String &fileName, IFS::OpenFlags openFlags=OpenFlag::Read)
Open a file by path, and attach this stream object to it.
File stream class.
Definition: IFS/FileStream.h:22
HostFileStream(const String &fileName, IFS::OpenFlags openFlags=IFS::OpenFlag::Read)
Definition: HostFileStream.h:24