Public Member Functions | List of all members
ecl::OFileStream Class Reference

Convenience class for OFile TextStream definitions. More...

#include <file_streams.hpp>

Inheritance diagram for ecl::OFileStream:
Inheritance graph
[legend]

Public Member Functions

 OFileStream ()
 Default constructor, underlying device must be manually opened. More...
 
 OFileStream (const std::string &file_name, const WriteMode &mode=New)
 Convenience constructor for output file text streams. More...
 
virtual ~OFileStream ()
 
- Public Member Functions inherited from ecl::TextStream< OFile >
virtual ~TextStream ()
 

Detailed Description

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.

Definition at line 48 of file file_streams.hpp.

Constructor & Destructor Documentation

◆ OFileStream() [1/2]

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 64 of file file_streams.hpp.

◆ OFileStream() [2/2]

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

Parameters
file_name: output file name.
mode: mode for writing (New, Append).
Exceptions
StandardException: throws if the connection failed to open.

Definition at line 77 of file file_streams.hpp.

◆ ~OFileStream()

virtual ecl::OFileStream::~OFileStream ( )
inlinevirtual

Definition at line 87 of file file_streams.hpp.


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


ecl_streams
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:48