casa
$Rev:20696$
|
Class adding Table-specific support functions to PassiveCachingDD. More...
#include <PassiveTableDD.h>
Public Member Functions | |
PassiveTableDD (Table *table) | |
Constructor taking a pointer to an already constructed Table. | |
PassiveTableDD (const String tablename) | |
Constructor taking a String which describes the full pathname of a Table on disk. | |
virtual | ~PassiveTableDD () |
Destructor. | |
virtual void | setDefaultOptions () |
Install the default options for this DisplayData. | |
virtual Bool | setOptions (Record &rec, Record &recOut) |
Apply options stored in rec to the DisplayData. | |
virtual Record | getOptions () |
Retrieve the current and default options and parameter types. | |
virtual AttributeBuffer | optionsAsAttributes () |
Return the current options of this DisplayData as an AttributeBuffer. | |
Protected Member Functions | |
template<class T > | |
Bool | getTableKeyword (T &value, const String keyword) const |
Get the value of the named keyword, or the first keyword matching regex , and return it in value . | |
template<class T > | |
Bool | getTableKeyword (T &value, const Regex ®ex) const |
template<class T > | |
Bool | getColumnKeyword (T &value, const String column, const String keyword) const |
Get the value of the named keyword, or the first keyword matching regex for the named column, and return it in value . | |
template<class T > | |
Bool | getColumnKeyword (T &value, const String column, const Regex ®ex) const |
Vector< String > | getColumnNamesOfType (const DataType type) |
Get the names of the columns of the table having the given type. | |
Table * | table () |
Return the Table pointer for use by derived classes. | |
PassiveTableDD () | |
(Required) default constructor. | |
PassiveTableDD (const PassiveTableDD &other) | |
(Required) copy constructor. | |
void | operator= (const PassiveTableDD &other) |
(Required) copy assignment. | |
Private Member Functions | |
void | installDefaultOptions () |
Install the default options for this DisplayData. | |
Bool | arrangeQueryTable () |
Arrange the query table (generally called after installing new options). | |
Private Attributes | |
Table * | itsTable |
Store the primary table here. | |
Table * | itsQueryTable |
Store the result of a query on the table here. | |
String | itsOptQueryString |
Option: what is the query string, or is it unset? | |
Bool | itsOptQueryStringUnset |
Class adding Table-specific support functions to PassiveCachingDD.
This class adds support functions useful for dealing with Tables to the PassiveCachingDD class.
Definition at line 51 of file PassiveTableDD.h.
casa::PassiveTableDD::PassiveTableDD | ( | Table * | table | ) |
casa::PassiveTableDD::PassiveTableDD | ( | const String | tablename | ) |
virtual casa::PassiveTableDD::~PassiveTableDD | ( | ) | [virtual] |
Destructor.
casa::PassiveTableDD::PassiveTableDD | ( | ) | [protected] |
(Required) default constructor.
casa::PassiveTableDD::PassiveTableDD | ( | const PassiveTableDD & | other | ) | [protected] |
(Required) copy constructor.
Bool casa::PassiveTableDD::arrangeQueryTable | ( | ) | [private] |
Arrange the query table (generally called after installing new options).
Bool casa::PassiveTableDD::getColumnKeyword | ( | T & | value, |
const String | column, | ||
const String | keyword | ||
) | const [protected] |
Get the value of the named keyword, or the first keyword matching regex
for the named column, and return it in value
.
The return value is True
for success, and False
for failure, which is the result if the wrong type T
is requested, or if the keyword doesn't exist.
Bool casa::PassiveTableDD::getColumnKeyword | ( | T & | value, |
const String | column, | ||
const Regex & | regex | ||
) | const [protected] |
Vector<String> casa::PassiveTableDD::getColumnNamesOfType | ( | const DataType | type | ) | [protected] |
Get the names of the columns of the table having the given type.
virtual Record casa::PassiveTableDD::getOptions | ( | ) | [virtual] |
Retrieve the current and default options and parameter types.
Reimplemented from casa::PassiveCachingDD.
Reimplemented in casa::SkyCatOverlayDD.
Bool casa::PassiveTableDD::getTableKeyword | ( | T & | value, |
const String | keyword | ||
) | const [protected] |
Get the value of the named keyword, or the first keyword matching regex
, and return it in value
.
The return value is True
for success, and False
for failure, which is the result if the wrong type T
is requested.
Bool casa::PassiveTableDD::getTableKeyword | ( | T & | value, |
const Regex & | regex | ||
) | const [protected] |
void casa::PassiveTableDD::installDefaultOptions | ( | ) | [private] |
Install the default options for this DisplayData.
Reimplemented from casa::CachingDisplayData.
void casa::PassiveTableDD::operator= | ( | const PassiveTableDD & | other | ) | [protected] |
(Required) copy assignment.
virtual AttributeBuffer casa::PassiveTableDD::optionsAsAttributes | ( | ) | [virtual] |
Return the current options of this DisplayData as an AttributeBuffer.
Reimplemented from casa::PassiveCachingDD.
Reimplemented in casa::SkyCatOverlayDD.
virtual void casa::PassiveTableDD::setDefaultOptions | ( | ) | [virtual] |
Install the default options for this DisplayData.
Reimplemented from casa::PassiveCachingDD.
Reimplemented in casa::SkyCatOverlayDD.
virtual Bool casa::PassiveTableDD::setOptions | ( | Record & | rec, |
Record & | recOut | ||
) | [virtual] |
Apply options stored in rec
to the DisplayData.
A return value of True
means a refresh is needed. recOut
contains any fields which were implicitly changed as a result of the call to this function.
Reimplemented from casa::PassiveCachingDD.
Reimplemented in casa::SkyCatOverlayDD.
Table* casa::PassiveTableDD::table | ( | ) | [protected] |
Option: what is the query string, or is it unset?
Definition at line 134 of file PassiveTableDD.h.
Definition at line 135 of file PassiveTableDD.h.
Table* casa::PassiveTableDD::itsQueryTable [private] |
Store the result of a query on the table here.
Definition at line 131 of file PassiveTableDD.h.
Table* casa::PassiveTableDD::itsTable [private] |
Store the primary table here.
Definition at line 128 of file PassiveTableDD.h.