-
- Downloads
mmcif writer: move stream handling to StarWriter::Write
Before, we already opened a file and the respective stream at Writer initialization. This is weird when Write never gets called and and empty file remains on disk. Furthermore, Write just wrote to a stream. That stream was never flushed, so in principle you potentially called Write but even after completion, the file is not necessarily written to disk. Now, the file gets opened in Write, everything is written to the respective stream and once done, the destructor of the stream ensures that everything concludes.
Showing
- modules/io/pymod/export_mmcif_io.cc 8 additions, 3 deletionsmodules/io/pymod/export_mmcif_io.cc
- modules/io/src/mol/mmcif_writer.cc 0 additions, 4 deletionsmodules/io/src/mol/mmcif_writer.cc
- modules/io/src/mol/mmcif_writer.hh 1 addition, 1 deletionmodules/io/src/mol/mmcif_writer.hh
- modules/io/src/mol/star_writer.cc 16 additions, 18 deletionsmodules/io/src/mol/star_writer.cc
- modules/io/src/mol/star_writer.hh 5 additions, 6 deletionsmodules/io/src/mol/star_writer.hh
Loading
Please register or sign in to comment