#include <genesis/utils/io/strict_fstream.hpp>
Inherits fstream.
Stream that defines a strict wrapper around std::fstream.
The wrapper performs the following steps:
This is useful to ensure proper file handling.
The class is based on the strict_fstream::fstream class of the excellent zstr library by Matei David; see also our Acknowledgements.
Definition at line 171 of file strict_fstream.hpp.
Public Member Functions | |
StrictFStream ()=default | |
StrictFStream (std::string const &filename, std::ios_base::openmode mode=std::ios_base::in) | |
void | open (std::string const &filename, std::ios_base::openmode mode=std::ios_base::in) |
|
default |
|
inline |
Definition at line 178 of file strict_fstream.hpp.
void open | ( | std::string const & | filename, |
std::ios_base::openmode | mode = std::ios_base::in |
||
) |
Definition at line 232 of file strict_fstream.cpp.