Chemical Data Processing Library C++ API - Version 1.2.0
Public Member Functions | List of all members
CDPL::Pharm::PSDMoleculeInputHandler Class Reference

A handler for the input of molecule data in the PSD-format of the CDPL. More...

#include <PSDMoleculeInputHandler.hpp>

+ Inheritance diagram for CDPL::Pharm::PSDMoleculeInputHandler:

Public Member Functions

const Base::DataFormatgetDataFormat () const
 Returns a Base::DataFormat object that provides information about the handled input data format. More...
 
ReaderType::SharedPointer createReader (std::istream &is) const
 Creates a Base::DataReader instance that will read the data from the input stream is. More...
 
ReaderType::SharedPointer createReader (const std::string &file_name, std::ios_base::openmode mode) const
 Creates a Base::DataReader instance that will read the data from the file specified by file_name. More...
 
- Public Member Functions inherited from CDPL::Base::DataInputHandler< Chem::Molecule >
virtual ~DataInputHandler ()
 Virtual destructor. More...
 

Additional Inherited Members

- Public Types inherited from CDPL::Base::DataInputHandler< Chem::Molecule >
typedef DataReader< Chem::MoleculeReaderType
 
typedef std::shared_ptr< DataInputHandlerSharedPointer
 

Detailed Description

A handler for the input of molecule data in the PSD-format of the CDPL.

Member Function Documentation

◆ getDataFormat()

const Base::DataFormat& CDPL::Pharm::PSDMoleculeInputHandler::getDataFormat ( ) const
virtual

Returns a Base::DataFormat object that provides information about the handled input data format.

Returns
A Base::DataFormat object that provides information about the handled data format.

Implements CDPL::Base::DataInputHandler< Chem::Molecule >.

◆ createReader() [1/2]

ReaderType::SharedPointer CDPL::Pharm::PSDMoleculeInputHandler::createReader ( std::istream &  is) const
virtual

Creates a Base::DataReader instance that will read the data from the input stream is.

Parameters
isThe input stream to read from.
Returns
A shared pointer to the created Base::DataReader instance.

Implements CDPL::Base::DataInputHandler< Chem::Molecule >.

◆ createReader() [2/2]

ReaderType::SharedPointer CDPL::Pharm::PSDMoleculeInputHandler::createReader ( const std::string &  file_name,
std::ios_base::openmode  mode 
) const
virtual

Creates a Base::DataReader instance that will read the data from the file specified by file_name.

Parameters
file_nameThe full path of the file to read from.
modeFlags specifying the file open-mode.
Returns
A shared pointer to the created Base::DataReader instance.

Implements CDPL::Base::DataInputHandler< Chem::Molecule >.


The documentation for this class was generated from the following file: