28 #ifndef TRIALDISPLAY_DPARAMETERCHOICE_H
29 #define TRIALDISPLAY_DPARAMETERCHOICE_H
casacore::String defaultValue()
Return the default for this parameter.
casacore::String name() const
Return the name of this parameter.
casacore::Bool existsOption(const casacore::String value)
Determine whether this value exists in the list of options.
casacore::String itsValue
Store for the value of this parameter.
void setValue(const casacore::String value)
Set or change the current value.
virtual casacore::Bool fromRecord(const casacore::RecordInterface &record)
Parse record, and update this parameter if a field exists whose name matches that of this parameter...
const casacore::String & operator=(const casacore::String &value)
Convenient syntax to set (only) the value.
std::map< casacore::String, bool > colormapnamemap
Return the names of the built-in colormaps.
casacore::Bool itsEditable
DParameterChoice & operator=(const DParameterChoice &other)
(Required) copy assignment.
void setDefaultValue(const casacore::String defaultvalue)
Set or change the default value for this parameter.
casacore::String help() const
Return the help for this parameter.
casacore::Vector< casacore::String > itsOptions
Store for the allowed options for this parameter.
casacore::String description() const
Return the description of this parameter.
DParameterChoice()
(Required) default constructor.
virtual void toRecord(casacore::RecordInterface &record, const casacore::Bool fullrecord=true, const casacore::Bool overwrite=false)
Place a record describing this parameter in a sub-field of record with name matching that of this par...
casacore::Bool editable() const
Return whether this parameter is editable.
casacore::String context() const
Return the context of this parameter.
bool Bool
Define the standard types used by Casacore.
void setEditable(const casacore::Bool editable)
Set or change if this parameter is editable (determines wether choice or userchoice is returned in th...
Implementation of DisplayParameter to store choice parameters.
void setOptions(const casacore::Vector< casacore::String > &options)
Set or change the list of allowed options for this parameter.
casacore::Vector< casacore::String > options() const
Return the list of allowed options for this parameter.
casacore::String value()
Return the current value of this parameter.
String: the storage and methods of handling collections of characters.
virtual ~DParameterChoice()
Destructor.
Abstract base class for Record classes.
casacore::String itsDefaultValue
Store for the default of this parameter.
Base class for storing and parsing of parameters for display classes.