29 #ifndef CDPL_UTIL_DEFAULTDATAOUTPUTHANDLER_HPP
30 #define CDPL_UTIL_DEFAULTDATAOUTPUTHANDLER_HPP
51 template <
typename WriterImpl, const Base::DataFormat& FORMAT,
typename DataType =
typename WriterImpl::DataType>
Definition of class CDPL::Base::DataOutputHandler.
Definition of class CDPL::Util::FileDataWriter.
Factory interface providing methods for the creation of Base::DataWriter instances handling a particu...
Definition: DataOutputHandler.hpp:54
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
Default Base::DataOutputHandler implementation that exposes a fixed Base::DataFormat and instantiates...
Definition: DefaultDataOutputHandler.hpp:53
const Base::DataFormat & getDataFormat() const
Returns the data format advertised by this handler.
Definition: DefaultDataOutputHandler.hpp:63
WriterType::SharedPointer createWriter(const std::string &file_name, std::ios_base::openmode mode) const
Creates a writer that writes to the file file_name (opened in mode mode).
Definition: DefaultDataOutputHandler.hpp:84
WriterType::SharedPointer createWriter(std::ostream &os) const
Creates a writer that writes to the output stream os.
Definition: DefaultDataOutputHandler.hpp:73
Base::DataOutputHandler< DataType >::WriterType WriterType
Type of the Base::DataWriter specialization produced by this handler.
Definition: DefaultDataOutputHandler.hpp:57
Convenience wrapper that adapts a stream-based writer implementation WriterImpl into a file-based Bas...
Definition: FileDataWriter.hpp:55
The namespace of the Chemical Data Processing Library.