casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
casa::PassiveTableDD Class Reference

Class adding Table-specific support functions to PassiveCachingDD. More...

#include <PassiveTableDD.h>

Inheritance diagram for casa::PassiveTableDD:
casa::PassiveCachingDD casa::CachingDisplayData casa::DisplayData casa::DisplayOptions casa::DisplayEH casa::DlTarget casa::SkyCatOverlayDD

List of all members.

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 &regex) 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 &regex) const
Vector< StringgetColumnNamesOfType (const DataType type)
 Get the names of the columns of the table having the given type.
Tabletable ()
 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

TableitsTable
 Store the primary table here.
TableitsQueryTable
 Store the result of a query on the table here.
String itsOptQueryString
 Option: what is the query string, or is it unset?
Bool itsOptQueryStringUnset

Detailed Description

Class adding Table-specific support functions to PassiveCachingDD.

Synopsis

This class adds support functions useful for dealing with Tables to the PassiveCachingDD class.

Definition at line 51 of file PassiveTableDD.h.


Constructor & Destructor Documentation

Constructor taking a pointer to an already constructed Table.

The Table will be deleted by this class.

Constructor taking a String which describes the full pathname of a Table on disk.

Destructor.

(Required) default constructor.

casa::PassiveTableDD::PassiveTableDD ( const PassiveTableDD other) [protected]

(Required) copy constructor.


Member Function Documentation

Arrange the query table (generally called after installing new options).

template<class T >
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.

template<class T >
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.

Retrieve the current and default options and parameter types.

Reimplemented from casa::PassiveCachingDD.

Reimplemented in casa::SkyCatOverlayDD.

template<class T >
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.

template<class T >
Bool casa::PassiveTableDD::getTableKeyword ( T &  value,
const Regex regex 
) const [protected]

Install the default options for this DisplayData.

Reimplemented from casa::CachingDisplayData.

void casa::PassiveTableDD::operator= ( const PassiveTableDD other) [protected]

(Required) copy assignment.

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.

Return the Table pointer for use by derived classes.

If a query is active (via setOptions), then the result of the query is returned, otherwise the construction Table is returned.


Member Data Documentation

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.

Store the result of a query on the table here.

Definition at line 131 of file PassiveTableDD.h.

Store the primary table here.

Definition at line 128 of file PassiveTableDD.h.


The documentation for this class was generated from the following file: