ParameterAccessor.h

Classes

ParameterAccessor -- (full description)

template<class T> class ParameterAccessor : public ParameterAccessorBase

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)

Description

or

Review Status

Date Reviewed:
yyyy/mm/dd

Prerequisite

Etymology

Synopsis

Example

Motivation

Template Type Argument Requirements (T)

Thrown Exceptions

To Do

Member Description

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)

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

virtual Bool fromRecord(String &error) = 0

field exists in record

virtual Bool toRecord(String &error) const = 0

virtual Bool verifyValue(String &error) const

A default implementation is provided - just check against the constraint

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)