|
Celeritas 0.7.0-dev.555+develop.5c5a8f0a7
|
Construct an output to a new file, or stdout if the filename is "-". More...
#include <FileOrConsole.hh>
Public Types | |
| using | Mode = std::ios::openmode |
Public Member Functions | |
| FileOrStdout (std::string filename) | |
| Construct with filename in "append" mode. | |
| FileOrStdout (std::string filename, Mode) | |
| Construct with filename and custom mode. | |
| operator std::ostream & () | |
| Implicitly cast to the opened stream. | |
| std::string const & | filename () const |
| Get the filename or renamed placeholder. | |
Construct an output to a new file, or stdout if the filename is "-".
std::ios::out mode to clobber an existing file.
|
inlineexplicit |
Construct with filename in "append" mode.
This gives consistent behavior between output files and the console.