- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/UIElements/CommandLineUI/Query/AtomsCommandLineQuery.cpp ¶
r955b91 rf10b0c 28 28 #include "World.hpp" 29 29 30 CommandLineDialog::AtomsCommandLineQuery::AtomsCommandLineQuery( std::string title, std::string _description) :31 Dialog::AtomsQuery( title, _description)30 CommandLineDialog::AtomsCommandLineQuery::AtomsCommandLineQuery(Parameter<std::vector<const atom *> > ¶m, std::string title, std::string _description) : 31 Dialog::AtomsQuery(param, title, _description) 32 32 {} 33 33 … … 38 38 if (CommandLineParser::getInstance().vm.count(getTitle())) { 39 39 IdxOfAtom = CommandLineParser::getInstance().vm[getTitle()].as< std::vector<int> >(); 40 std::vector<const atom *> temp_atoms; 40 41 for (std::vector<int>::iterator iter = IdxOfAtom.begin(); iter != IdxOfAtom.end(); ++iter) { 41 42 temp = World::getInstance().getAtom(AtomById(*iter)); 42 43 if (temp) 43 t mp.push_back(temp);44 temp_atoms.push_back(temp); 44 45 } 46 tmp.set(temp_atoms); 45 47 return true; 46 48 } else {
Note:
See TracChangeset
for help on using the changeset viewer.