Class SharedFileStream
Defined in File shared_file_stream.hpp
Inheritance Relationships
Base Type
public ecl::TextStream< SharedFile >
(Template Class TextStream)
Class Documentation
-
class SharedFileStream : public ecl::TextStream<SharedFile>
Convenience class for SharedFile TextStream definitions.
This class provides a convenient handle for both writing and opening TextStream<SharedFile> objects. It has no further functionality.
See also
Public Functions
-
inline SharedFileStream()
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 SharedFileStream(const std::string &file_name, const WriteMode &mode = New)
Convenience constructor for shared file text streams.
This constructor enables RAII style construction of the underlying device (this makes it distinct from a generic TextStream<SharedFile> object).
- Parameters:
file_name – : output file name.
mode – : mode for writing (New, Append).
- Throws:
StandardException – : throws if the connection failed to open.
-
inline virtual ~SharedFileStream()
-
inline SharedFileStream()