29 #ifndef CDPL_BASE_DATAOUTPUTHANDLER_HPP
30 #define CDPL_BASE_DATAOUTPUTHANDLER_HPP
85 std::ios_base::openmode mode = std::ios_base::in |
86 std::ios_base::out | std::ios_base::trunc | std::ios_base::binary)
const = 0;
Definition of the class CDPL::Base::DataWriter.
A factory interface providing methods for the creation of Base::DataWriter instances handling a parti...
Definition: DataOutputHandler.hpp:53
std::shared_ptr< DataOutputHandler > SharedPointer
Definition: DataOutputHandler.hpp:58
virtual WriterType::SharedPointer createWriter(std::iostream &ios) const =0
Creates a Base::DataWriter instance that will write the data to the I/O stream ios.
virtual ~DataOutputHandler()
Virtual destructor.
Definition: DataOutputHandler.hpp:63
virtual const DataFormat & getDataFormat() const =0
Returns a Base::DataFormat object that provides information about the handled output data format.
DataWriter< T > WriterType
Definition: DataOutputHandler.hpp:56
virtual WriterType::SharedPointer createWriter(const std::string &file_name, std::ios_base::openmode mode=std::ios_base::in|std::ios_base::out|std::ios_base::trunc|std::ios_base::binary) const =0
Creates a Base::DataWriter instance that will write the data to the file specified by file_name.
An interface for writing data objects of a given type to an arbitrary data sink.
Definition: DataWriter.hpp:63
std::shared_ptr< DataWriter > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated DataWriter instances.
Definition: DataWriter.hpp:69
The namespace of the Chemical Data Processing Library.