Class: ChemDataWriter

Kekule.IO. ChemDataWriter

new ChemDataWriter(options)

Abstract root class for all chemistry data writers.
Parameters:
Name Type Description
options Hash Some additional params passed to reader.
Source:

Extends

  • ObjectEx

Methods

writeData(obj, dataType, format, options) → {Variant}

Write Kekule object to data.
Parameters:
Name Type Description
obj Kekule.ChemObject Object to write
dataType String Type of data, value should fom Kekule.IO.ChemDataType.
format String Format ID.
options Hash Additional options to write data. Different writer may have different options.
Source:
Returns:
Data output, the type of data is decided by dataType param.
Type
Variant

Kekule.IO. ChemDataWriter

new ChemDataWriter()

Source:

Methods

writeData(obj, dataType, format, options) → {Variant}

Write Kekule object to data.
Parameters:
Name Type Description
obj Kekule.ChemObject Object to write
dataType String Type of data, value should fom Kekule.IO.ChemDataType.
format String Format ID.
options Hash Additional options to write data. Different writer may have different options.
Source:
Returns:
Data output, the type of data is decided by dataType param.
Type
Variant