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 mol2 file format using STL iostreams #22

Closed kylelutz closed 12 years ago

kylelutz commented 13 years ago

The mol2 file format should be rewritten using std::istream instead of QIODevice.

The read() method in the Mol2FileFormat class in the sybyl 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

Completed in: ca39e6c2b6f0ce8b529c0cdf59149f3d18b4cd6c