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