Changeset 3e6b93 for src/Parameters/Value_impl.hpp
- Timestamp:
- Feb 4, 2015, 9:56:43 PM (11 years ago)
- Parents:
- 76a109
- git-author:
- Frederik Heber <heber@…> (09/23/14 16:34:50)
- git-committer:
- Frederik Heber <heber@…> (02/04/15 21:56:43)
- File:
-
- 1 edited
-
src/Parameters/Value_impl.hpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Parameters/Value_impl.hpp
r76a109 r3e6b93 119 119 inline const T & Value<T>::get() const throw(ParameterValueException) 120 120 { 121 if (!isValid(value)) throw ParameterValueException(); 121 // Actions' parameters may later become invalid because a file has been 122 // written that was supposed to not exist (!FilePresentValidator()) 123 // if (!isValid(value)) throw ParameterValueException(); 122 124 if (!ValueSet) throw ParameterValueException(); 123 125 return value; … … 131 133 inline void Value<T>::set(const T & _value) throw(ParameterException) 132 134 { 133 // any value may be set, this allows Actions to have invalid parameters 134 // (e.g. because the given atom id does not yet exist) that are checked 135 // on performCall() 136 // if (!isValid(_value)) throw ParameterValueException(); 135 if (!isValid(_value)) throw ParameterValueException(); 137 136 if (!ValueSet) 138 137 ValueSet = true;
Note:
See TracChangeset
for help on using the changeset viewer.
