ParameterAccessor.h
Classes
- ParameterAccessor -- (full description)
Interface
- Public Members
- ParameterAccessor(const String &name, ParameterSet::Direction direction, GlishRecord *values, T *valueFromNewOrNull=0, T *defaultFromNewOrNull=0)
- virtual ~ParameterAccessor()
- virtual const String &type() const
- virtual Bool copyIn(String &error)
- virtual Bool copyOut(String &error) const
- virtual Bool fromRecord(String &error) = 0
- virtual Bool toRecord(String &error) const = 0
- virtual Bool verifyValue(String &error) const
- T &operator()()
- const T &operator()() const
- Bool hasDefault()
- const T &getDefaultValue() const
- virtual void setDefaultValue(const T &defaultVal)
- virtual void setConstraint(const ParameterConstraint<T> &constraint)
or
Review Status
- Date Reviewed:
- yyyy/mm/dd
Prerequisite
- SomeClass
- SomeOtherClass
- some concept
Etymology
Synopsis
Example
Motivation
Template Type Argument Requirements (T)
Thrown Exceptions
To Do
- add this feature
- fix this bug
- start discussion of this possible extension
Member Description
ParameterAccessor(const String &name, ParameterSet::Direction direction, GlishRecord *values, T *valueFromNewOrNull=0, T *defaultFromNewOrNull=0)
virtual const String &type() const
These call to/fromRecord if there's a field, otherwise it uses the
default if it exists, otherwise error
virtual Bool copyOut(String &error) const
field exists in record
virtual Bool toRecord(String &error) const = 0
A default implementation is provided - just check against the constraint
virtual void setDefaultValue(const T &defaultVal)
virtual void setConstraint(const ParameterConstraint<T> &constraint)