Changes in src/Parser/XyzParser.cpp [bcf653:97b825]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Parser/XyzParser.cpp
rbcf653 r97b825 1 /*2 * Project: MoleCuilder3 * Description: creates and alters molecular systems4 * Copyright (C) 2010 University of Bonn. All rights reserved.5 * Please see the LICENSE file or "Copyright notice" in builder.cpp for details.6 */7 8 1 /* 9 2 * XyzParser.cpp … … 12 5 * Author: metzler 13 6 */ 14 15 // include config.h16 #ifdef HAVE_CONFIG_H17 #include <config.h>18 #endif19 7 20 8 #include "Helpers/MemDebug.hpp" … … 63 51 newmol = World::getInstance().createMolecule(); 64 52 newmol->ActiveFlag = true; 65 // TODO: Remove the insertion into molecule when saving does not depend on them anymore. Also, remove molecule.hpp include66 53 World::getInstance().getMolecules()->insert(newmol); 67 54 for (int i = 0; i < numberOfAtoms; i++) { … … 99 86 vector<atom*> atoms = World::getInstance().getAllAtoms(); 100 87 for(vector<atom*>::iterator it = atoms.begin(); it != atoms.end(); it++) { 101 *file << noshowpoint << (*it)->getType()-> getSymbol()<< "\t" << (*it)->at(0) << "\t" << (*it)->at(1) << "\t" << (*it)->at(2) << endl;88 *file << noshowpoint << (*it)->getType()->symbol << "\t" << (*it)->at(0) << "\t" << (*it)->at(1) << "\t" << (*it)->at(2) << endl; 102 89 } 103 90 }
Note:
See TracChangeset
for help on using the changeset viewer.