- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/CommandLineUI/Query/ElementsCommandLineQuery.cpp
r955b91 rf10b0c 28 28 #include "World.hpp" 29 29 30 CommandLineDialog::ElementsCommandLineQuery::ElementsCommandLineQuery( std::string title, std::string _description) :31 Dialog::ElementsQuery( title, _description)30 CommandLineDialog::ElementsCommandLineQuery::ElementsCommandLineQuery(Parameter<std::vector<const element*> > ¶m, std::string title, std::string _description) : 31 Dialog::ElementsQuery(param, title, _description) 32 32 {} 33 33 … … 40 40 if (CommandLineParser::getInstance().vm.count(getTitle())) { 41 41 vector<int> AllElements = CommandLineParser::getInstance().vm[getTitle()].as< vector<int> >(); 42 vector<const element *> temp_elements; 42 43 for (vector<int>::iterator ZRunner = AllElements.begin(); ZRunner != AllElements.end(); ++ZRunner) { 43 44 temp = periode->FindElement(*ZRunner); 44 45 ASSERT(temp != NULL, "Invalid element specified in ElementCommandLineQuery"); 45 t mp.push_back(temp);46 temp_elements.push_back(temp); 46 47 } 48 tmp.set(temp_elements); 47 49 return true; 48 50 } else {
Note:
See TracChangeset
for help on using the changeset viewer.