Class OFileStream

Inheritance Relationships

Base Type

Class Documentation

class OFileStream : public ecl::TextStream<OFile>

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.

See also

TextStream.

Public Functions

inline OFileStream()

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.

inline OFileStream(const std::string &file_name, const WriteMode &mode = New)

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).

Parameters
  • file_name – : output file name.

  • mode – : mode for writing (New, Append).

Throws

StandardException – : throws if the connection failed to open.

inline virtual ~OFileStream()