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/Specifics/Value_vector.cpp

    rac3a04 rddceb1  
    190190const std::string Value<Vector>::getAsString() const throw(ParameterValueException)
    191191{
     192  converted_value = parseAsVector(value);
     193  if (!ValueSet) throw ParameterValueException();
     194  if (!isValid(converted_value)) throw ParameterValueException();
    192195  return value;
    193196}
    194197
     198const std::string Value<Vector>::getAsStringUnvalidated() const throw(ParameterValueException)
     199{
     200  if (!ValueSet) throw ParameterValueException();
     201  return value;
     202}
    195203
    196204void Value<Vector>::setAsString(const std::string &_value) throw(ParameterException)
Note: See TracChangeset for help on using the changeset viewer.