![]() |
Chemical Data Processing Library Python API - Version 1.4.0
|
Factory interface providing methods for the creation of Chem.MoleculeReaderBase instances for reading data provided in a particular storage format. More...
Inheritance diagram for CDPL.Chem.MoleculeInputHandler:Public Member Functions | |
| None | __init__ () |
Contructs the MoleculeInputHandler instance. | |
| int | getObjectID () |
| Returns the numeric identifier (ID) of the wrapped C++ class instance. More... | |
| Base.DataFormat | getDataFormat () |
| Returns a Base.DataFormat instance that provides information about the handled input data format. More... | |
| MoleculeReaderBase | createReader (Base.IStream is) |
| Creates a MoleculeReaderBase instance that will read the data from the input stream is. More... | |
| MoleculeReaderBase | createReader (str file_name, OpenMode mode=Base.IOStream.OpenMode(12)) |
| Creates a MoleculeReaderBase instance that will read the data from the file specified by file_name. More... | |
Properties | |
| objectID = property(getObjectID) | |
Factory interface providing methods for the creation of Chem.MoleculeReaderBase instances for reading data provided in a particular storage format.
| int CDPL.Chem.MoleculeInputHandler.getObjectID | ( | ) |
Returns the numeric identifier (ID) of the wrapped C++ class instance.
Different Python MoleculeInputHandler instances may reference the same underlying C++ class instance. The commonly used Python expression a is not b thus cannot tell reliably whether the two MoleculeInputHandler instances a and b reference different C++ objects. The numeric identifier returned by this method allows to correctly implement such an identity test via the simple expression a.getObjectID() != b.getObjectID().
| Base.DataFormat CDPL.Chem.MoleculeInputHandler.getDataFormat | ( | ) |
Returns a Base.DataFormat instance that provides information about the handled input data format.
| MoleculeReaderBase CDPL.Chem.MoleculeInputHandler.createReader | ( | Base.IStream | is | ) |
Creates a MoleculeReaderBase instance that will read the data from the input stream is.
| is | The input stream to read from. |
| MoleculeReaderBase CDPL.Chem.MoleculeInputHandler.createReader | ( | str | file_name, |
| OpenMode | mode = Base.IOStream.OpenMode(12) |
||
| ) |
Creates a MoleculeReaderBase 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. |