Ignore:
Timestamp:
May 8, 2017, 1:54:50 PM (8 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
ForceAnnealing_goodresults, ForceAnnealing_tocheck
Children:
7630e3
Parents:
ac3a04
git-author:
Frederik Heber <heber@…> (03/31/17 19:18:12)
git-committer:
Frederik Heber <frederik.heber@…> (05/08/17 13:54:50)
Message:

Action::outputAsPython() access Parameters via getAsStringUnvalidated().

  • otherwise this would not work for Geometry Actions as these cannot yet be validated on e.g. dry-run.
  • as python commands operate via string arguments anyway, this is nothing but an additional transformation.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Parameters/Parameter_impl.hpp

    rac3a04 rddceb1  
    165165  try {
    166166    return value.getAsString();
     167  } catch(ParameterException &e) {
     168    e << ParameterName(ParameterInterface::getName());
     169    throw;
     170  }
     171}
     172
     173/** Catch call to value.getAsStringUnvalidated() to add exception information.
     174 *
     175 * @return parameter value as string
     176 */
     177template<typename T>
     178inline const std::string Parameter<T>::getAsStringUnvalidated() const throw(ParameterValueException)
     179{
     180  try {
     181    return value.getAsStringUnvalidated();
    167182  } catch(ParameterException &e) {
    168183    e << ParameterName(ParameterInterface::getName());
Note: See TracChangeset for help on using the changeset viewer.