29 #ifndef CDPL_BASE_DATAOUTPUTHANDLER_HPP
30 #define CDPL_BASE_DATAOUTPUTHANDLER_HPP
86 std::ios_base::openmode mode = std::ios_base::in |
87 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:54
std::shared_ptr< DataOutputHandler > SharedPointer
Definition: DataOutputHandler.hpp:59
virtual WriterType::SharedPointer createWriter(std::ostream &os) const =0
Creates a Base::DataWriter instance that will write the data to the output stream os.
virtual ~DataOutputHandler()
Virtual destructor.
Definition: DataOutputHandler.hpp:64
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:57
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.