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>
192 const Unit &defun,
const Unit &resun);
194 const Unit &defun,
const Unit &resun,
203 const Unit &defun,
const Unit &resun,
215 static void set(
uInt keyword,
const T &deflt);
245 const Unit &defun,
const Unit &resun);
281 #ifndef CASACORE_NO_AUTO_TEMPLATES
282 #include <casacore/casa/System/AipsrcValue.tcc>
Specialization of AipsrcValue for Bool.
static Bool find(Bool &value, const String &keyword)
static void save(uInt keyword)
AipsrcValue< Bool > & operator=(const AipsrcValue< Bool > &other)
static Bool find(Bool &value, const String &keyword, const Bool &deflt)
AipsrcValue(const AipsrcValue< Bool > &other)
static uInt registerRC(const String &keyword, const Bool &deflt)
static std::mutex theirMutex
static const Bool & get(uInt keyword)
static void set(uInt keyword, const Bool &deflt)
AipsrcValue(const AipsrcValue< T > &other)
static uInt registerRC(const String &keyword, const Unit &defun, const Unit &resun, const T &deflt)
static const T & get(uInt keyword)
Gets are like find, but using registered integers rather than names.
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.
~AipsrcValue()
See note with constructor.
static Bool find(T &value, const String &keyword, const Unit &defun, const Unit &resun, const T &deflt)
static void save(uInt keyword)
Save registered value to $HOME/.aipsrc
static Bool find(T &value, const String &keyword, const T &deflt)
static Bool find(T &value, const String &keyword, const Unit &defun, const Unit &resun)
These find() functions will, given a keyword, read the value of a matched keyword as a Quantity.
static uInt registerRC(const String &keyword, const T &deflt)
Functions to register keywords for later use in get() and set().
AipsrcValue< T > & operator=(const AipsrcValue< T > &other)
Copy constructor (not implemented)
Block< T > tlst
Register list.
AipsrcValue()
Default constructor Tip: A constructor (and destructor) have been provided to be able to generate a ...
static void set(uInt keyword, const T &deflt)
Sets allow registered values to be set.
static AipsrcValue myp_p
The global AipsrcValue object.
static std::mutex theirMutex
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.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.