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