32 #include <casacore/casa/aips.h> 33 #include <casacore/casa/Containers/Block.h> 34 #include <casacore/casa/BasicSL/String.h> 35 #include <casacore/casa/IO/AipsIO.h> 36 #include <casacore/casa/stdlib.h> 37 #include <casacore/casa/string.h> 40 #include <casacore/casa/iosfwd.h> 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.
Block< Int > getIntArray(Bool do_prompt=False) const
get an Block<Int> parameter value; prompt if switch is TRUE
friend ostream & operator<<(ostream &, const Param &p)
I/O operators.
Param()
constructors and destructor default constructor
Bool put(const String &a_value)
set new parameter value; return FALSE if invalid value
const String & getHelp() const
get parameter help string
AipsIO is the object persistency mechanism of Casacore.
String range
range/validity/pre-check
A simple keyword/value pair with internal help Strings.
Block< Double > getDoubleArray(Bool do_prompt=False) const
get a Block<double> parameter value; prompt if switch is TRUE
const String & getRange() const
get the valid range of a parameter
Bool operator==(const Param &) const
Equality comparitor.
void setSystem(Bool val)
set a parameter as a system parameter
String type
type of parameter
friend istream & operator>>(istream &, Param &p)
const String & getString(Bool do_prompt=False) const
get a String parameter value; prompt if switch is TRUE
const String & getKey() const
get parameter name
Bool getBool(Bool do_prompt=False) const
get a Boolean parameter value; prompt if switch is TRUE
const String & getType() const
get the type of a parameter
bool Bool
Define the standard types used by Casacore.
const String & getUnit() const
get the units of a parameter
Bool system
boolean data member which indicates the Param is system wide.
String value
parameter value
String keyVal() const
get the string `key = value' for the parameter
String unit
optional unit associated with value
Double getDouble(Bool do_prompt=False) const
get a double parameter value; prompt if switch is TRUE
Int getInt(Bool do_prompt=False) const
get an Int parameter value; prompt if switch is TRUE
Bool isSystem() const
check if a parameter is a system parameter
Param & operator=(const Param &)
assignment operator
Int getIndex() const
get the index of a parameter
String: the storage and methods of handling collections of characters.
Block< String > getStringArray(Bool do_prompt=False) const
get a Block<String> parameter value; prompt if switch is TRUE
this file contains all the compiler specific defines
void setIndex(Int inx)
set an index for a program parameter