Dakota  Version 6.15
Explore and Predict with Confidence
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Attributes | List of all members
OutputWriter Class Reference

Public Member Functions

 OutputWriter (std::ostream *output_stream)
 ostream constructor; used to construct a writer to existing stream, e.g., std::cout
 OutputWriter (const String &output_filename)
 file redirect constructor; opens an overwriting file stream to given name
const String & filename () const
 the (possibly empty) file name for this stream
std::ostream * output_stream ()
 a pointer to the stream, either cout/cerr or a file

Protected Attributes

String outputFilename
 the name of the output file (empty when constructed from pointer)
std::ofstream outputFS
 file output stream for console text; only open if string non-empty
std::ostream * outputStream
 pointer to the stream for this writer

Detailed Description

Component to manage a redirected output or error stream

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