OEIsValidSubSearchDatabase

Attention

This is a preliminary API and may be improved based on user feedback. It is currently available in C++ and Python.

bool OEIsValidSubSearchDatabase(oemolistream &ifs)
bool OEIsValidSubSearchDatabase(const std::string &filename)

Returns true if the given molecule stream or the file is a valid substructure search database that was created by the OECreateSubSearchDatabaseFile function.

bool OEIsValidSubSearchDatabase(oemolistream &ifs,
                                const OESubSearchScreenTypeBase *)
bool OEIsValidSubSearchDatabase(const std::string &filename,
                                const OESubSearchScreenTypeBase *)

Returns true if the given molecule stream or the file is a valid substructure search database that was created by the OECreateSubSearchDatabaseFile function. These functions also check if the database stores substructure search screens with the given type.

See also