28 #ifndef TRIALDISPLAY_DISPLAYPARAMETER_H
29 #define TRIALDISPLAY_DISPLAYPARAMETER_H
DisplayParameter()
Default constructor yielding a useless DisplayParameter.
Class to provide option parsing routines for display classes.
casacore::String itsContext
Store for the context of this parameter.
casacore::String name() const
Return the name of this parameter.
const DisplayOptions & displayOptions() const
Return the DisplayOptions to use for parsing Records.
casacore::String itsDescription
Store for the description of this parameter.
casacore::Record baseDescription()
Return a basic description of this parameter; used by virtual implementations of toRecord method to f...
casacore::String itsHelp
Store for the help for this parameter.
casacore::String help() const
Return the help for this parameter.
DisplayParameter & operator=(const DisplayParameter &other)
Copy assignment.
void setName(const casacore::String name)
Set or change the name of this parameter to that specified.
casacore::String description() const
Return the description of this parameter.
void setAllowUnset(const casacore::Bool allowunset)
Set or change whether this parameter may be unset, according to the function argument value...
virtual ~DisplayParameter()
Destructor.
DisplayOptions itsDisplayOptions
Store for a DisplayOptions object for parsing Records.
void setDescription(const casacore::String description)
Set or change the description of this parameter to what is specified.
casacore::Bool editable() const
Return whether this parameter is editable.
casacore::String context() const
Return the context of this parameter.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
casacore::Bool itsEditable
Store for whether this parameter is editable.
casacore::Bool allowUnset() const
Return whether this parameter can be unset.
virtual casacore::Bool fromRecord(const casacore::RecordInterface &record)=0
Parse record, and update this parameter if a field exists whose name matches that of this parameter...
void setHelp(const casacore::String help)
Set or change the help for this parameter to what is specified.
String: the storage and methods of handling collections of characters.
virtual void toRecord(casacore::RecordInterface &record, const casacore::Bool fullrecord=true, const casacore::Bool overwrite=false)=0
Place a record describing this parameter in a sub-field of record with name matching that of this par...
void setContext(const casacore::String context)
Set or change the context of this parameter to what is specified.
Abstract base class for Record classes.
void setEditable(const casacore::Bool editable)
Set or change whether this parameter is editable according to the function argument.
casacore::String itsName
Store for the name of this parameter.
casacore::Bool itsAllowUnset
Store for whether this parameter can be unset.
Base class for storing and parsing of parameters for display classes.