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 {
112 const Unit &defun,
const Unit &resun);
114 const Unit &defun,
const Unit &resun,
123 const Unit &defun,
const Unit &resun,
160 #define AipsrcVector_String AipsrcVector
192 #undef AipsrcVector_String
194 #define AipsrcVector_Bool AipsrcVector
226 #undef AipsrcVector_Bool
231 #ifndef CASACORE_NO_AUTO_TEMPLATES
232 #include <casacore/casa/System/AipsrcVector.tcc>
233 #endif //# CASACORE_NO_AUTO_TEMPLATES
static Bool find(Vector< String > &value, const String &keyword)
Class to read the casa general resource files.
AipsrcVector_Bool< Bool > & operator=(const AipsrcVector_Bool< Bool > &other)
static AipsrcVector myp_p
AipsrcVector_String< String > & operator=(const AipsrcVector_String< String > &other)
Block< Vector< T > > tlst
register list
static uInt registerRC(const String &keyword, const Vector< Bool > &deflt)
Block< Vector< String > > tlst
Block< Vector< Bool > > tlst
static Bool find(Vector< Bool > &value, const String &keyword, const Vector< Bool > &deflt)
static void set(uInt keyword, const Vector< Bool > &deflt)
Read multiple values from the Aipsrc resource files.
AipsrcVector< T > & operator=(const AipsrcVector< T > &other)
Copy constructor (not implemented)
static uInt registerRC(const String &keyword, const Unit &defun, const Unit &resun, const Vector< T > &deflt)
static const Vector< T > & get(uInt keyword)
Gets are like find, but using registered integers rather than names.
static Bool find(Vector< String > &value, const String &keyword, const Vector< String > &deflt)
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.
AipsrcVector_Bool(const AipsrcVector_Bool< Bool > &other)
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
AipsrcVector_String(const AipsrcVector_String< String > &other)
static Bool find(Vector< T > &value, const String &keyword, const Unit &defun, const Unit &resun, const Vector< T > &deflt)
static AipsrcVector_String myp_p
static const Vector< Bool > & get(uInt keyword)
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().
static void set(uInt keyword, const Vector< String > &deflt)
static Bool find(Vector< T > &value, const String &keyword, const Vector< T > &deflt)
static Bool find(Vector< T > &value, const String &keyword, const Unit &defun, const Unit &resun)
These find() functions will, given a keyword, read the values of a matched keyword as a Quantity.
AipsrcVector()
Default constructor See a note in AipsrcValue.
static Bool find(Vector< Bool > &value, const String &keyword)
static const Vector< String > & get(uInt keyword)
static uInt registerRC(const String &keyword, const Vector< String > &deflt)
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 void save(uInt keyword)
static void save(uInt keyword)
static AipsrcVector_Bool myp_p
#define AipsrcVector_String
AipsrcVector(const AipsrcVector< T > &other)