new ChemDataReader(options)
Abstract root class for all chemistry data readers.
Parameters:
| Name | Type | Description |
|---|---|---|
options |
Hash | Some additional params passed to reader. |
- Source:
Extends
- ObjectEx
Methods
-
doReadData(data, dataType, format, options) → {Variant}
-
Do actual work for Kekule.IO.ChemDataReader#readData. Descendants should override this method.
Parameters:
Name Type Description dataVariant dataTypeString Type of data, value should fom Kekule.IO.ChemDataType. formatString Format ID. optionsHash Additional options to read data. Different reader may have different options. - Source:
Returns:
Instance created by data.- Type
- Variant
-
readData(data, dataType, format, options) → {Variant}
-
Read from data and return a related instance.
Parameters:
Name Type Description dataVariant dataTypeString Type of data, value should fom Kekule.ChemStructureDataType. formatString Format ID. optionsHash Additional options to read data. Different reader may have different options. - Source:
Returns:
Instance created by data.- Type
- Variant