#include <AipsrcVector.h>
Inheritance diagram for casa::AipsrcVector< T >:


Part of API
A class for getting multiple values from the Aipsrc files
The available functions (and notes) are the same as in AipsrcValue , but with a Vector result.
>> 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.
Programs need a way to get multi-valued keywords from the Aipsrc files.
Definition at line 85 of file AipsrcVector.h.
Public Member Functions | |
| AipsrcVector () | |
| Default constructor See a note in AipsrcValue . | |
| ~AipsrcVector () | |
Static Public Member Functions | |
| static void | save (uInt keyword) |
Save registered value to $HOME/.aipsrc. | |
| 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. | |
| 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. | |
| 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(). | |
| 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 void | set (uInt keyword, const Vector< T > &deflt) |
| Sets allow registered values to be set. | |
Private Member Functions | |
| AipsrcVector< T > & | operator= (const AipsrcVector< T > &other) |
| Copy constructor (not implemented). | |
| AipsrcVector (const AipsrcVector< T > &other) | |
Private Attributes | |
| Block< Vector< T > > | tlst |
| register list | |
| Block< String > | ntlst |
Static Private Attributes | |
| static AipsrcVector | myp_p |
| casa::AipsrcVector< T >::AipsrcVector | ( | ) |
Default constructor See a note in AipsrcValue .
| casa::AipsrcVector< T >::~AipsrcVector | ( | ) |
| casa::AipsrcVector< T >::AipsrcVector | ( | const AipsrcVector< T > & | other | ) | [private] |
| static Bool casa::AipsrcVector< T >::find | ( | Vector< T > & | value, | |
| const String & | keyword | |||
| ) | [static] |
The find() functions will, given a keyword, return the value of a matched keyword found in the files.
If no match found the function will be False, and the default returned if specified.
| static Bool casa::AipsrcVector< T >::find | ( | Vector< T > & | value, | |
| const String & | keyword, | |||
| const Vector< T > & | deflt | |||
| ) | [static] |
| static Bool casa::AipsrcVector< T >::find | ( | Vector< T > & | value, | |
| const String & | keyword, | |||
| const Unit & | defun, | |||
| const Unit & | resun | |||
| ) | [static] |
These find() functions will, given a keyword, read the values of a matched keyword as a Quantity.
If no unit has been given in the keyword value, the defun Unit will be assumed. The value returned will be converted to the resun Unit. If no match found, the default value is returned (see example above).
| static Bool casa::AipsrcVector< T >::find | ( | Vector< T > & | value, | |
| const String & | keyword, | |||
| const Unit & | defun, | |||
| const Unit & | resun, | |||
| const Vector< T > & | deflt | |||
| ) | [static] |
| static uInt casa::AipsrcVector< T >::registerRC | ( | const String & | keyword, | |
| const Vector< T > & | deflt | |||
| ) | [static] |
| static uInt casa::AipsrcVector< T >::registerRC | ( | const String & | keyword, | |
| const Unit & | defun, | |||
| const Unit & | resun, | |||
| const Vector< T > & | deflt | |||
| ) | [static] |
| static const Vector<T>& casa::AipsrcVector< T >::get | ( | uInt | keyword | ) | [static] |
Gets are like find, but using registered integers rather than names.
Reimplemented from casa::Aipsrc.
| static void casa::AipsrcVector< T >::set | ( | uInt | keyword, | |
| const Vector< T > & | deflt | |||
| ) | [static] |
Sets allow registered values to be set.
| static void casa::AipsrcVector< T >::save | ( | uInt | keyword | ) | [static] |
| AipsrcVector<T>& casa::AipsrcVector< T >::operator= | ( | const AipsrcVector< T > & | other | ) | [private] |
Copy constructor (not implemented).
AipsrcVector casa::AipsrcVector< T >::myp_p [static, private] |
Definition at line 141 of file AipsrcVector.h.
Block<Vector<T> > casa::AipsrcVector< T >::tlst [private] |
Block<String> casa::AipsrcVector< T >::ntlst [private] |
Definition at line 145 of file AipsrcVector.h.
1.5.1