45#include <drain/util/FilePath.h>
67 Output(
const std::string & filename){
89 void open(
const std::string & filename);
91 operator std::ostream & ();
94 operator std::ofstream & (){
100 return static_cast<bool>(ofstr);
104 std::ostream & getStream(){
105 if (ofstr.is_open()){
124Output & operator<<(Output & output,
const T& value){
125 output.getStream() << value;
Extracts and stores directory path, base filename and extension.
Definition FilePath.h:54
Output utility. Opens stdout with "-". Closes upon destruction.
Definition Output.h:55
Output(const std::string &filename)
Constructor that directly opens a file, or stdout with "-".
Definition Output.h:67
~Output()
Closes upon destruction.
Definition Output.cpp:62
Output(const char *filename)
Constructor that directly opens a file, or stdout with "-".
Definition Output.h:73
Output(const drain::FilePath &filePath)
Constructor that directly opens a file.
Definition Output.h:79
Definition DataSelector.cpp:1277