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