Go to the documentation of this file.
28 #ifndef CASA_AIPSRCVALUE_H
29 #define CASA_AIPSRCVALUE_H
31 #include <casacore/casa/aips.h>
32 #include <casacore/casa/BasicSL/String.h>
33 #include <casacore/casa/Containers/Block.h>
34 #include <casacore/casa/System/Aipsrc.h>
157 template <
class T>
class AipsrcValue :
public Aipsrc {
181 static Bool find(T &
value,
const String &keyword,
const T &deflt);
190 const Unit &defun,
const Unit &resun);
192 const Unit &defun,
const Unit &resun,
201 const Unit &defun,
const Unit &resun,
208 static const T &
get(
uInt keyword);
213 static void set(
uInt keyword,
const T &deflt);
243 const Unit &defun,
const Unit &resun);
279 #ifndef CASACORE_NO_AUTO_TEMPLATES
280 #include <casacore/casa/System/AipsrcValue.tcc>
281 #endif //# CASACORE_NO_AUTO_TEMPLATES
Class to read the casa general resource files.
Class to read values from the Aipsrc general resource files.
~AipsrcValue()
See note with constructor.
static const T & get(uInt keyword)
Gets are like find, but using registered integers rather than names.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
static uInt registerRC(const String &keyword, const T &deflt)
Functions to register keywords for later use in get() and set().
Block< T > tlst
Register list.
static Bool find(T &value, const String &keyword)
The find() functions will, given a keyword, return the value of a matched keyword found in the files.
static AipsrcValue myp_p
The global AipsrcValue object.
this file contains all the compiler specific defines
AipsrcValue()
Default constructor Tip: A constructor (and destructor) have been provided to be able to generate a ...
AipsrcValue< T > & operator=(const AipsrcValue< T > &other)
Copy constructor (not implemented)
static void set(uInt keyword, const T &deflt)
Sets allow registered values to be set.
static void save(uInt keyword)
Save registered value to $HOME/.aipsrc
Specialization of AipsrcValue for Bool.
String: the storage and methods of handling collections of characters.
Wrapper around a pthreads mutex.
bool Bool
Define the standard types used by Casacore.