Public Member Functions | Protected Attributes | List of all members
Output Class Reference

Output utility. Opens stdout with "-". Closes upon destruction. More...

#include <Output.h>

Public Member Functions

 Output (const Output &output)
 
 Output (const std::string &filename)
 Constructor that directly opens a file, or stdout with "-".
 
 Output (const char *filename)
 Constructor that directly opens a file, or stdout with "-".
 
 Output (const drain::FilePath &filePath)
 Constructor that directly opens a file.
 
 ~Output ()
 Closes upon destruction.
 
void open (const std::string &filename)
 
 operator std::ostream & ()
 
 operator std::ofstream & ()
 
 operator bool ()
 
std::ostream & getStream ()
 

Protected Attributes

std::ofstream ofstr
 

Detailed Description

Output utility. Opens stdout with "-". Closes upon destruction.

Note: This class does nout (yet) support format strings of arbitrary size. (output str length has limited size).


The documentation for this class was generated from the following files: