FileStream.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  * FileStream.h
8  *
9  ****/
10 
11 #pragma once
12 
13 #include "IFS/FileStream.h"
14 #include <FileSystem.h>
15 
21 {
22 public:
23  using IFS::FileStream::FileStream;
24 
30  {
31  open(fileName, openFlags);
32  }
33 
35 };
FileStream(const String &fileName, FileOpenFlags openFlags=File::ReadOnly)
Create a file stream.
Definition: FileStream.h:37
The String class.
Definition: WString.h:136
File stream class.
Definition: IFS/FileStream.h:30
File stream class.
Definition: FileStream.h:20
static constexpr OpenFlags ReadOnly
Read-only.
Definition: File.h:72
void attach(FileHandle file, size_t size)
Attach this stream object to an open file handle.
Manage a set of bit values using enumeration.
Definition: BitSet.h:44
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.