File stream class containing factory functions for file streams.
More...
#include <filestream.h>
Static Public Member Functions
Open a new input stream representing the given file. The file should already exist on disk, or an exception will be thrown.
More...
Open a new ouput stream representing the given file. If the file does not exist, it will be create unless the folder or directory where it is to be found also does not exist.
More...
Detailed Description
template<typename _CharType>
class Concurrency::streams::file_stream< _CharType >
File stream class containing factory functions for file streams.
- Template Parameters
-
_CharType The data type of the basic element of the
file_stream
.
Member Function Documentation
template<typename _CharType >
std::ios_base::openmode
mode = std::ios_base::in
,
int
prot = 0
)
inlinestatic
Open a new input stream representing the given file. The file should already exist on disk, or an exception will be thrown.
- Parameters
-
file_name The name of the file
mode The opening mode of the file
prot The file protection mode
- Returns
- A
task
that returns an opened input stream on completion.
template<typename _CharType >
std::ios_base::openmode
mode = std::ios_base::out
,
int
prot = 0
)
inlinestatic
Open a new ouput stream representing the given file. If the file does not exist, it will be create unless the folder or directory where it is to be found also does not exist.
- Parameters
-
file_name The name of the file
mode The opening mode of the file
prot The file protection mode
- Returns
- A
task
that returns an opened output stream on completion.
The documentation for this class was generated from the following file: