|
Chemical Data Processing Library C++ API - Version 1.1.1
|
Go to the documentation of this file.
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;
91 #endif // CDPL_BASE_DATAOUTPUTHANDLER_HPP
Definition of the class CDPL::Base::DataWriter.
std::shared_ptr< DataOutputHandler > SharedPointer
Definition: DataOutputHandler.hpp:58
A factory interface providing methods for the creation of Base::DataWriter instances handling a parti...
Definition: DataOutputHandler.hpp:53
virtual ~DataOutputHandler()
Virtual destructor.
Definition: DataOutputHandler.hpp:63
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.
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.
An interface for writing data objects of a given type to an arbitrary data sink.
Definition: DataWriter.hpp:63
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.
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