181 {
return key +
"=" +
value; }
Int index
index for program keywords (>=1)
Bool hasvalue
boolean data member which indicates the Param's key has a value.
friend ostream & operator<<(ostream &, const Param &p)
I/O operators.
Param()
constructors and destructor default constructor
Block< Int > getIntArray(Bool do_prompt=False) const
get an Block<Int> parameter value; prompt if switch is TRUE
Bool put(const String &a_value)
set new parameter value; return FALSE if invalid value
Int getIndex() const
get the index of a parameter
Bool isSystem() const
check if a parameter is a system parameter
const String & getHelp() const
get parameter help string
AipsIO is the object persistency mechanism of Casacore.
String range
range/validity/pre-check
Block< String > getStringArray(Bool do_prompt=False) const
get a Block<String> parameter value; prompt if switch is TRUE
A simple keyword/value pair with internal help Strings.
String keyVal() const
get the string `key = value' for the parameter
Double getDouble(Bool do_prompt=False) const
get a double parameter value; prompt if switch is TRUE
void setSystem(Bool val)
set a parameter as a system parameter
String type
type of parameter
const String & getString(Bool do_prompt=False) const
get a String parameter value; prompt if switch is TRUE
friend istream & operator>>(istream &, Param &p)
Block< Double > getDoubleArray(Bool do_prompt=False) const
get a Block<double> parameter value; prompt if switch is TRUE
Bool operator==(const Param &) const
Equality comparitor.
bool Bool
Define the standard types used by Casacore.
Bool system
boolean data member which indicates the Param is system wide.
String value
parameter value
Int getInt(Bool do_prompt=False) const
get an Int parameter value; prompt if switch is TRUE
String unit
optional unit associated with value
const String & getRange() const
get the valid range of a parameter
const String & getType() const
get the type of a parameter
Param & operator=(const Param &)
assignment operator
const String & getUnit() const
get the units of a parameter
String: the storage and methods of handling collections of characters.
Bool getBool(Bool do_prompt=False) const
get a Boolean parameter value; prompt if switch is TRUE
const String & getKey() const
get parameter name
void setIndex(Int inx)
set an index for a program parameter