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 txyz file format using STL iostreams #23

Closed kylelutz closed 12 years ago

kylelutz commented 13 years ago

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

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

Implemented in: dab0e3f7880511ced80056861a2ee794f4b6a329