Chemical Data Processing Library C++ API - Version 1.2.0
|
A factory interface providing methods for the creation of Base::DataWriter instances handling a particular object type and storage format. More...
#include <DataOutputHandler.hpp>
Public Types | |
typedef DataWriter< T > | WriterType |
typedef std::shared_ptr< DataOutputHandler > | SharedPointer |
Public Member Functions | |
virtual | ~DataOutputHandler () |
Virtual destructor. More... | |
virtual const DataFormat & | getDataFormat () const =0 |
Returns a Base::DataFormat object that provides information about the handled output data format. More... | |
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. More... | |
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. More... | |
A factory interface providing methods for the creation of Base::DataWriter instances handling a particular object type and storage format.
T | The type of objects handled by the created Base::DataWriter instances. |
typedef DataWriter<T> CDPL::Base::DataOutputHandler< T >::WriterType |
typedef std::shared_ptr<DataOutputHandler> CDPL::Base::DataOutputHandler< T >::SharedPointer |
|
inlinevirtual |
Virtual destructor.
|
pure virtual |
Returns a Base::DataFormat object that provides information about the handled output data format.
Implemented in CDPL::Util::DefaultDataOutputHandler< WriterImpl, FORMAT, DataType >, and CDPL::Pharm::PSDMolecularGraphOutputHandler.
|
pure virtual |
Creates a Base::DataWriter instance that will write the data to the I/O stream ios.
ios | The I/O stream to write to. |
Implemented in CDPL::Util::DefaultDataOutputHandler< WriterImpl, FORMAT, DataType >, and CDPL::Pharm::PSDMolecularGraphOutputHandler.
|
pure virtual |
Creates a Base::DataWriter instance that will write the data to the file specified by file_name.
file_name | The full path of the file to write to. |
mode | Flags specifying the file open-mode. |
Implemented in CDPL::Util::DefaultDataOutputHandler< WriterImpl, FORMAT, DataType >, and CDPL::Pharm::PSDMolecularGraphOutputHandler.