- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/TextUI/Query/UnsignedIntsTextQuery.cpp
r955b91 rf10b0c 28 28 29 29 30 TextDialog::UnsignedIntsTextQuery::UnsignedIntsTextQuery( std::string title, std::string _description) :31 Dialog::UnsignedIntsQuery( title,_description)30 TextDialog::UnsignedIntsTextQuery::UnsignedIntsTextQuery(Parameter<std::vector<unsigned int> > ¶m, std::string title, std::string _description) : 31 Dialog::UnsignedIntsQuery(param, title,_description) 32 32 {} 33 33 … … 39 39 getline(std::cin,line); 40 40 // dissect by " " 41 std::vector<unsigned int> temp_uints; 41 42 std::string::iterator olditer = line.begin(); 42 43 for(std::string::iterator iter = line.begin(); iter != line.end(); ++iter) { … … 44 45 std::istringstream stream(std::string(iter, olditer)); 45 46 stream >> temp; 46 t mp.push_back(temp);47 temp_uints.push_back(temp); 47 48 olditer = iter; 48 49 } … … 51 52 std::istringstream stream(std::string(olditer, line.end())); 52 53 stream >> temp; 53 t mp.push_back(temp);54 temp_uints.push_back(temp); 54 55 } 56 tmp.set(temp_uints); 55 57 56 58 return true;
Note:
See TracChangeset
for help on using the changeset viewer.