$extrastylesheet
Dakota  Version 6.2
Public Member Functions | Protected Attributes
OutputWriter Class Reference

List of all members.

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: