Changeset 70caa3 for src/Parser/FormatParserStorage.cpp
- Timestamp:
- Jun 20, 2018, 8:20:43 AM (7 years ago)
- Branches:
- AutomationFragmentation_failures, Candidate_v1.6.1, ChemicalSpaceEvaluator, Exclude_Hydrogens_annealWithBondGraph, ForceAnnealing_with_BondGraph_contraction-expansion, StoppableMakroAction
- Children:
- 883d98, a6c11a
- Parents:
- 4b2adf
- git-author:
- Frederik Heber <frederik.heber@…> (09/15/17 08:21:12)
- git-committer:
- Frederik Heber <frederik.heber@…> (06/20/18 08:20:43)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/FormatParserStorage.cpp
r4b2adf r70caa3 201 201 { 202 202 std::string filename; 203 for (ParserTypes iter = ParserTypes_begin; iter < ParserTypes_end; ++iter) 203 for (ParserTypes iter = ParserTypes_begin; iter < ParserTypes_end; ++iter) { 204 // open a new stream, if parser is desired. Reopen such stream if already present 204 205 if (ParserPresent[iter] && ParserDesiredOutputFormat[iter]) { 206 if (ParserStream[iter] != NULL) { 207 if (ParserStream[iter]->is_open()) { 208 ParserStream[iter]->flush(); 209 ParserStream[iter]->close(); 210 } 211 delete ParserStream[iter]; 212 ParserStream[iter] = NULL; 213 ParserList[iter]->setOstream(ParserStream[iter]); 214 } 205 215 filename = prefix; 206 216 filename += "."; … … 209 219 ParserList[iter]->setOstream((std::ostream *)ParserStream[iter]); 210 220 } 221 } 211 222 } 212 223
Note:
See TracChangeset
for help on using the changeset viewer.