- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/TextUI/Query/AtomsTextQuery.cpp
r955b91 rf10b0c 31 31 32 32 33 TextDialog::AtomsTextQuery::AtomsTextQuery( std::string title, std::string _description) :34 Dialog::AtomsQuery( title,_description)33 TextDialog::AtomsTextQuery::AtomsTextQuery(Parameter<std::vector<const atom *> > ¶m, std::string title, std::string _description) : 34 Dialog::AtomsQuery(param, title,_description) 35 35 {} 36 36 … … 44 44 // dissect by " " 45 45 std::string::iterator olditer = line.begin(); 46 std::vector<const atom *> temp_atoms; 46 47 for(std::string::iterator iter = line.begin(); iter != line.end(); ++iter) { 47 48 if (*iter == ' ') { … … 53 54 break; 54 55 } 55 t mp.push_back(temp);56 temp_atoms.push_back(temp); 56 57 olditer = iter; 57 58 } … … 63 64 if(!temp && idxOfAtom!=-1) { 64 65 std::cout << "Invalid Atom Index" << idxOfAtom << std::endl; 65 t mp.push_back(temp);66 temp_atoms.push_back(temp); 66 67 } 67 68 } 69 tmp.set(temp_atoms); 68 70 69 71 return (idxOfAtom!=-1);
Note:
See TracChangeset
for help on using the changeset viewer.