Go to the documentation of this file.
28 #ifndef CASA_AIPSRCVECTOR_H
29 #define CASA_AIPSRCVECTOR_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>
35 #include <casacore/casa/OS/Mutex.h>
40 template<
class T>
class Vector;
86 template <
class T>
class AipsrcVector :
public Aipsrc {
103 const Vector<T> &deflt);
112 const Unit &defun,
const Unit &resun);
114 const Unit &defun,
const Unit &resun,
115 const Vector<T> &deflt);
121 const Vector<T> &deflt);
123 const Unit &defun,
const Unit &resun,
124 const Vector<T> &deflt);
129 static const Vector<T> &
get(
uInt keyword);
134 static void set(
uInt keyword,
const Vector<T> &deflt);
160 #define AipsrcVector_String AipsrcVector
180 static void save(
uInt keyword);
192 #undef AipsrcVector_String
194 #define AipsrcVector_Bool AipsrcVector
214 static void save(
uInt keyword);
226 #undef AipsrcVector_Bool
231 #ifndef CASACORE_NO_AUTO_TEMPLATES
232 #include <casacore/casa/System/AipsrcVector.tcc>
233 #endif //# CASACORE_NO_AUTO_TEMPLATES
Class to read the casa general resource files.
static AipsrcVector myp_p
PtrHolder< T > & operator=(const PtrHolder< T > &other)
Block< Vector< T > > tlst
register list
Block< Vector< String > > tlst
Block< Vector< Bool > > tlst
Read multiple values from the Aipsrc resource files.
AipsrcVector< T > & operator=(const AipsrcVector< T > &other)
Copy constructor (not implemented)
static const Vector< T > & get(uInt keyword)
Gets are like find, but using registered integers rather than names.
Specialization of AipsrcVector for Bool.
static Bool find(Vector< T > &value, const String &keyword)
The find() functions will, given a keyword, return the value of a matched keyword found in the files.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
static AipsrcVector_String myp_p
this file contains all the compiler specific defines
static uInt registerRC(const String &keyword, const Vector< T > &deflt)
Functions to register keywords for later use in get() and set().
AipsrcVector()
Default constructor See a note in AipsrcValue.
static void set(uInt keyword, const Vector< T > &deflt)
Sets allow registered values to be set.
String: the storage and methods of handling collections of characters.
static void save(uInt keyword)
Save registered value to $HOME/.aipsrc
Wrapper around a pthreads mutex.
bool Bool
Define the standard types used by Casacore.
A 1-D Specialization of the Array class.
#define AipsrcVector_Bool
Specialization of AipsrcVector for String.
static AipsrcVector_Bool myp_p
#define AipsrcVector_String