Changeset cb5231 for src/UIElements/Dialog.cpp
- Timestamp:
- May 8, 2017, 1:54:50 PM (8 years ago)
- Branches:
- ForceAnnealing_goodresults, ForceAnnealing_tocheck
- Children:
- d7bd62
- Parents:
- a443e1
- git-author:
- Frederik Heber <heber@…> (03/30/17 21:59:00)
- git-committer:
- Frederik Heber <frederik.heber@…> (05/08/17 13:54:50)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/UIElements/Dialog.cpp
ra443e1 rcb5231 145 145 } 146 146 147 static const std::string concatenateStrings(const std::vector<std::string> &_strings) 148 { 149 std::stringstream output; 150 for (std::vector<std::string>::const_iterator iter = _strings.begin(); 151 iter != _strings.end(); ++iter) 152 output << *iter << " "; 153 return output.str(); 154 } 155 156 bool Dialog::TQuery< std::vector<Vector> >::isValid() 157 { 158 return param.isValidAsString(concatenateStrings(temp)); 159 } 160 void Dialog::TQuery< std::vector<Vector> >::setResult() 161 { 162 param.setAsString(concatenateStrings(temp)); 163 } 164 147 165 /** With the following boost::preprocessor code we generate template 148 166 * specializations for each desired query types in the abstract class Dialog.
Note:
See TracChangeset
for help on using the changeset viewer.