29 #ifndef CDPL_PHARM_SCREENINGDBCREATOR_HPP
30 #define CDPL_PHARM_SCREENINGDBCREATOR_HPP
52 class ScreeningDBAccessor;
92 virtual void open(
const std::string& name,
Mode mode = CREATE,
bool allow_dup_entries =
true) = 0;
Definition of the preprocessor macro CDPL_PHARM_API.
#define CDPL_PHARM_API
Tells the compiler/linker which classes, functions and variables are part of the library API.
Abstract base class for representations of a chemical structure as a graph of bonded atoms.
Definition: MolecularGraph.hpp:57
Abstract base class for accessors that read the data stored in pharmacophore screening databases.
Definition: ScreeningDBAccessor.hpp:58
Abstract base class for creators that build optimized pharmacophore screening databases.
Definition: ScreeningDBCreator.hpp:58
virtual Mode getMode() const =0
Returns the mode in which the currently open database was opened.
Mode
Specifies how an existing database file is treated by open().
Definition: ScreeningDBCreator.hpp:71
@ UPDATE
Update an existing database in place.
Definition: ScreeningDBCreator.hpp:76
@ CREATE
Create a new database (replacing any existing file).
Definition: ScreeningDBCreator.hpp:74
ScreeningDBCreator & operator=(const ScreeningDBCreator &)
Definition: ScreeningDBCreator.hpp:157
virtual const std::string & getDatabaseName() const =0
Returns the name of the currently open database.
virtual ~ScreeningDBCreator()
Virtual destructor.
Definition: ScreeningDBCreator.hpp:84
virtual bool allowDuplicateEntries() const =0
Tells whether duplicate molecule entries are allowed.
virtual std::size_t getNumProcessed() const =0
Returns the number of molecules processed since the database was opened.
virtual void close()=0
Closes the currently open database.
virtual std::size_t getNumDeleted() const =0
Returns the number of entries that were deleted since the database was opened.
std::function< bool(double)> ProgressCallbackFunction
Type of the progress-reporting callback (argument: fraction in [0, 1], return: true to continue,...
Definition: ScreeningDBCreator.hpp:65
virtual std::size_t getNumRejected() const =0
Returns the number of molecules that were rejected (e.g. as duplicates) since the database was opened...
virtual std::size_t getNumInserted() const =0
Returns the number of entries that were inserted since the database was opened.
virtual bool process(const Chem::MolecularGraph &molgraph)=0
Processes molgraph and adds it (or its derived pharmacophores) to the database.
std::shared_ptr< ScreeningDBCreator > SharedPointer
A reference-counted smart pointer [SHPTR] for dynamically allocated ScreeningDBCreator instances.
Definition: ScreeningDBCreator.hpp:62
virtual bool merge(const ScreeningDBAccessor &db_acc, const ProgressCallbackFunction &func)=0
Merges the contents of db_acc into the currently open database.
virtual void open(const std::string &name, Mode mode=CREATE, bool allow_dup_entries=true)=0
Opens the database identified by name in the specified mode.
The namespace of the Chemical Data Processing Library.