|
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. More...
|
|
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. More...
|
|
static Bool | find (Vector< T > &value, const String &keyword, const Unit &defun, const Unit &resun, const Vector< T > &deflt) |
|
static uInt | registerRC (const String &keyword, const Vector< T > &deflt) |
| Functions to register keywords for later use in get() and set(). More...
|
|
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. More...
|
|
static void | set (uInt keyword, const Vector< T > &deflt) |
| Sets allow registered values to be set. More...
|
|
static void | save (uInt keyword) |
| Save registered value to $HOME/.aipsrc More...
|
|
template<class T>
class casacore::AipsrcVector< T >
Read multiple values from the Aipsrc resource files.
Intended use:
Public interface
Review Status
- Reviewed By:
- mhaller
- Date Reviewed:
- 1997/10/08
- Test programs:
- tAipsrcValue
Prerequisite
Etymology
A class for getting multiple values from the Aipsrc files
Synopsis
The available functions (and notes) are the same as in AipsrcValue, but with a Vector result.
Template Type Argument Requirements
-
All types with a
>>
defined.
Warning: Since interpretation of the keyword value string is done with the standard input right-shift operator, specialisations are necessary for non-standard cases like Bool and String; They are provided;
Example
Motivation
Programs need a way to get multi-valued keywords from the Aipsrc files.
Thrown Exceptions
-
AipsError if the environment variables HOME and/or AIPSPATH not set.
Definition at line 41 of file Aipsrc.h.