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

Handler for the input of pharmacophore data in the CDPL PSD-format. More...

#include <PSDPharmacophoreInputHandler.hpp>

+ Inheritance diagram for CDPL::Pharm::PSDPharmacophoreInputHandler:

Public Member Functions

const Base::DataFormatgetDataFormat () const
 Returns the data format advertised by this handler (Pharm::DataFormat::PSD). More...
 
ReaderType::SharedPointer createReader (std::istream &is) const
 Creates a Pharm::PSDPharmacophoreReader that reads from the input stream is. More...
 
ReaderType::SharedPointer createReader (const std::string &file_name, std::ios_base::openmode mode) const
 Creates a Pharm::PSDPharmacophoreReader that reads from the file file_name. More...
 
- Public Member Functions inherited from CDPL::Base::DataInputHandler< Pharmacophore >
virtual ~DataInputHandler ()
 Virtual destructor. More...
 

Additional Inherited Members

- Public Types inherited from CDPL::Base::DataInputHandler< Pharmacophore >
typedef DataReader< Pharmacophore > ReaderType
 
typedef std::shared_ptr< DataInputHandlerSharedPointer
 

Detailed Description

Handler for the input of pharmacophore data in the CDPL PSD-format.

Member Function Documentation

◆ getDataFormat()

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

Returns the data format advertised by this handler (Pharm::DataFormat::PSD).

Returns
A const reference to the PSD Base::DataFormat instance.

Implements CDPL::Base::DataInputHandler< Pharmacophore >.

◆ createReader() [1/2]

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

Creates a Pharm::PSDPharmacophoreReader that reads from the input stream is.

Parameters
isThe input stream to read from.
Returns
A shared pointer to the constructed reader.

Implements CDPL::Base::DataInputHandler< Pharmacophore >.

◆ createReader() [2/2]

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

Creates a Pharm::PSDPharmacophoreReader that reads from the file file_name.

Parameters
file_nameThe input file to read from.
modeThe open mode of the underlying file stream.
Returns
A shared pointer to the constructed reader.

Implements CDPL::Base::DataInputHandler< Pharmacophore >.


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