#include <file-desc.hpp>
◆ FileProvider() [1/3]
template<class DeriveT >
Kazv::FileProvider::FileProvider |
( |
DeriveT && |
o | ) |
|
|
inline |
Constructor.
Construct a FileProvider using o
.
o
should be of a copyable type T
that has a method getStream()
that takes a FileOpenMode and returns something implicitly convertible to FileStream.
That is, [o]() -> FileStream { return o.getStream(FileOpenMode::Read); }
must be well-formed.
In addition, if the FileOpenMode passed to getStream is FileOpenMode::Read, the returned stream must support read(); if the FileOpenMode passed to getStream is FileOpenMode::Write, the returned stream must support write().
◆ FileProvider() [2/3]
Kazv::FileProvider::FileProvider |
( |
const FileProvider & |
that | ) |
|
|
inline |
◆ FileProvider() [3/3]
◆ getStream()
Get the file stream provided by this.
- Returns
- a FileStream that will contain the content of the file provided by this.
◆ operator=() [1/2]
◆ operator=() [2/2]
The documentation for this class was generated from the following file: