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