![]() |
Chemical Data Processing Library C++ API - Version 1.2.3
|
A factory interface providing methods for the creation of Base::DataReader instances handling a particular object type and storage format. More...
#include <DataInputHandler.hpp>
Inheritance diagram for CDPL::Base::DataInputHandler< T >:Public Types | |
| typedef DataReader< T > | ReaderType |
| typedef std::shared_ptr< DataInputHandler > | SharedPointer |
Public Member Functions | |
| virtual | ~DataInputHandler () |
| Virtual destructor. More... | |
| virtual const DataFormat & | getDataFormat () const =0 |
| Returns a Base::DataFormat object that provides information about the handled input data format. More... | |
| virtual ReaderType::SharedPointer | createReader (std::istream &is) const =0 |
| Creates a Base::DataReader instance that will read the data from the input stream is. More... | |
| virtual ReaderType::SharedPointer | createReader (const std::string &file_name, std::ios_base::openmode mode=std::ios_base::in|std::ios_base::binary) const =0 |
| Creates a Base::DataReader instance that will read the data from the file specified by file_name. More... | |
A factory interface providing methods for the creation of Base::DataReader instances handling a particular object type and storage format.
| T | The type of objects handled by the created Base::DataReader instances. |
| typedef DataReader<T> CDPL::Base::DataInputHandler< T >::ReaderType |
| typedef std::shared_ptr<DataInputHandler> CDPL::Base::DataInputHandler< T >::SharedPointer |
|
inlinevirtual |
Virtual destructor.
|
pure virtual |
Returns a Base::DataFormat object that provides information about the handled input data format.
Implemented in CDPL::Util::DefaultDataInputHandler< ReaderImpl, Format, DataType >, CDPL::Pharm::PSDPharmacophoreInputHandler, and CDPL::Pharm::PSDMoleculeInputHandler.
|
pure virtual |
Creates a Base::DataReader instance that will read the data from the input stream is.
| is | The input stream to read from. |
Implemented in CDPL::Util::DefaultDataInputHandler< ReaderImpl, Format, DataType >, CDPL::Pharm::PSDPharmacophoreInputHandler, and CDPL::Pharm::PSDMoleculeInputHandler.
|
pure virtual |
Creates a Base::DataReader instance that will read the data from the file specified by file_name.
| file_name | The full path of the file to read from. |
| mode | Flags specifying the file open-mode. |
Implemented in CDPL::Util::DefaultDataInputHandler< ReaderImpl, Format, DataType >, CDPL::Pharm::PSDPharmacophoreInputHandler, and CDPL::Pharm::PSDMoleculeInputHandler.