Convenience class for OFile TextStream definitions. More...
#include <file_streams.hpp>
Public Member Functions | |
OFileStream () | |
Default constructor, underlying device must be manually opened. | |
OFileStream (const std::string &file_name, const WriteMode &mode=New) ecl_throw_decl(StandardException) | |
Convenience constructor for output file text streams. | |
virtual | ~OFileStream () |
Convenience class for OFile TextStream definitions.
This class provides a convenient handle for both writing and opening TextStream<OFile> objects. It has no further functionality.
Definition at line 42 of file file_streams.hpp.
ecl::OFileStream::OFileStream | ( | ) | [inline] |
Default constructor, underlying device must be manually opened.
This must open the device manually via device().open() as you would do if using a TextStream.
Definition at line 50 of file file_streams.hpp.
ecl::OFileStream::OFileStream | ( | const std::string & | file_name, |
const WriteMode & | mode = New |
||
) | [inline] |
Convenience constructor for output file text streams.
This constructor enables RAII style construction of the underlying device (this makes it distinct from a generic TextStream<OFile> object).
file_name | : output file name. |
mode | : mode for writing (New, Append). |
StandardException | : throws if the connection failed to open. |
Definition at line 63 of file file_streams.hpp.
virtual ecl::OFileStream::~OFileStream | ( | ) | [inline, virtual] |
Definition at line 73 of file file_streams.hpp.