Changeset 73faf4 for src/Parameters/Parameter_impl.hpp
- Timestamp:
- May 8, 2017, 2:00:47 PM (8 years ago)
- Branches:
- ForceAnnealing_goodresults, ForceAnnealing_tocheck
- Children:
- c8165c
- Parents:
- ce254c (diff), cb6357 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
src/Parameters/Parameter_impl.hpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parameters/Parameter_impl.hpp
rce254c r73faf4 23 23 value(instance.value.getValidator()) 24 24 { 25 value.set(instance.value. value);25 value.set(instance.value.getUnvalidated()); 26 26 } 27 27 … … 171 171 } 172 172 173 /** Catch call to value.getAsStringUnvalidated() to add exception information. 174 * 175 * @return parameter value as string 176 */ 177 template<typename T> 178 inline const std::string Parameter<T>::getAsStringUnvalidated() const throw(ParameterValueException) 179 { 180 try { 181 return value.getAsStringUnvalidated(); 182 } catch(ParameterException &e) { 183 e << ParameterName(ParameterInterface::getName()); 184 throw; 185 } 186 } 187 173 188 /** Catch call to value.isValid() to add exception information. 174 189 * … … 258 273 try { 259 274 status = status && 260 ( value == _instance.value);275 (getUnvalidated() == _instance.getUnvalidated()); 261 276 status = status && (ParameterInterface::getName() == _instance.ParameterInterface::getName()); 262 277 } catch(ParameterException &e) { … … 276 291 Parameter<T> *instance = new Parameter<T>(ParameterInterface::getName(), value.getValidator()); 277 292 // do not use get, we do not check for validity here 278 if (value. ValueSet)279 instance->set(value. value);293 if (value.isSet()) 294 instance->set(value.getUnvalidated()); 280 295 return instance; 281 296 }
Note:
See TracChangeset
for help on using the changeset viewer.
