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>
Bool getBool(Bool do_prompt=False) const
get a Boolean parameter value; prompt if switch is TRUE
Double getDouble(Bool do_prompt=False) const
get a double parameter value; prompt if switch is TRUE
const String & getUnit() const
get the units of a parameter
Block< Int > getIntArray(Bool do_prompt=False) const
get an Block<Int> parameter value; prompt if switch is TRUE
String keyVal() const
get the string ‘key = value’ for the parameter
const String & getHelp() const
get parameter help string
Param(const Param &)
copy constructor
void setSystem(Bool val)
set a parameter as a system parameter
Int getInt(Bool do_prompt=False) const
get an Int parameter value; prompt if switch is TRUE
Param & operator=(const Param &)
assignment operator
Int index
index for program keywords (>=1)
friend istream & operator>>(istream &, Param &p)
const String & getRange() const
get the valid range of a parameter
Block< String > getStringArray(Bool do_prompt=False) const
get a Block<String> parameter value; prompt if switch is TRUE
String range
range/validity/pre-check
Bool system
boolean data member which indicates the Param is system wide.
const String & getType() const
get the type of a parameter
Param()
constructors and destructor default constructor
void setIndex(Int inx)
set an index for a program parameter
Int getIndex() const
get the index of a parameter
const String & getString(Bool do_prompt=False) const
get a String parameter value; prompt if switch is TRUE
Bool isSystem() const
check if a parameter is a system parameter
String type
type of parameter
String value
parameter value
const String & getKey() const
get parameter name
Bool put(const String &a_value)
set new parameter value; return FALSE if invalid value
Bool operator==(const Param &) const
Equality comparitor.
const String & get() const
get parameter value as a string
String unit
optional unit associated with value
Block< Double > getDoubleArray(Bool do_prompt=False) const
get a Block<double> parameter value; prompt if switch is TRUE
friend ostream & operator<<(ostream &, const Param &p)
I/O operators.
Bool hasvalue
boolean data member which indicates the Param's key has a value.
Param(const String &key, const String &value, const String &help, const String &type, const String &range, const String &unit)
normal constructor with optional value and help strings
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.