kylelutz / chemkit

A C++ library for molecular modelling, cheminformatics and molecular visualization.
http://www.chemkit.org
BSD 3-Clause "New" or "Revised" License
54 stars 26 forks source link

Rewrite mdl file formats using STL iostreams #19

Closed kylelutz closed 12 years ago

kylelutz commented 13 years ago

The mdl family of file formats (mdl, mol, sd, sdf) should be rewritten using std::istream and std::ostream instead of QIODevice.

The read() method in the MdlFileFormat class in the mdl plugin should be changed from:

bool read(QIODevice *iodev, chemkit::MoleculeFile *file)

to:

bool read(std::istream &input, chemkit::MoleculeFile *file)

And the write() method should be changed from:

bool write(const chemkit::MoleculeFile *file, QIODevice *iodev)

to:

bool write(const chemkit::MoleculeFile *file, std::ostream &output)
kylelutz commented 12 years ago

Resolved by: 1e526523330f45fa53960afb871c2ba8db9cc34c