casa
$Rev:20696$
|
Base class for the Data Manager Accessor classes. More...
#include <DataManAccessor.h>
Public Member Functions | |
RODataManAccessor () | |
Construct an empty object. | |
RODataManAccessor (const Table &table, const String &name, Bool byColumn) | |
Construct the accessor object for a data manager in the table. | |
virtual | ~RODataManAccessor () |
void | setProperties (const Record &) const |
Set data manager properties using the fields in the record. | |
Record | getProperties () const |
Get data manager properties as a record. | |
String | dataManagerType () const |
Get the data manager type. | |
String | dataManagerName () const |
Get the data manager name. | |
uInt | dataManagerSeqNr () const |
Get the data manager sequence nr. | |
void | showCacheStatistics (ostream &os) const |
Show IO statistics. | |
Protected Member Functions | |
DataManager * | baseDataManager () const |
Get the data manager for the given data manager or column name. | |
Private Attributes | |
DataManager * | itsDataManager |
Base class for the Data Manager Accessor classes.
Internal
The Table system has one or more data managers underneath. Once a table is constructed, these data managers are invisible and there is no way to get access to them. However, sometimes limited access to them is needed (e.g. to set the size of an internal cache).
This class should be used as the base class for specialized Data Manager Accessor classes (e.g. class
ROIncrementalStManAccessor . This base class provides the functionality to get the DataManager
object for a given column.
This base class makes it possible that every derived class can get the data manager, because RODataManAccessor is a friend of class Table. Otherwise all accessor classes needed to be friend of Table.
Definition at line 77 of file DataManAccessor.h.
casa::RODataManAccessor::RODataManAccessor | ( | ) | [inline] |
Construct an empty object.
Definition at line 81 of file DataManAccessor.h.
casa::RODataManAccessor::RODataManAccessor | ( | const Table & | table, |
const String & | name, | ||
Bool | byColumn | ||
) |
Construct the accessor object for a data manager in the table.
An exception is thrown if the name of the data manager or column is unknown.
virtual casa::RODataManAccessor::~RODataManAccessor | ( | ) | [virtual] |
DataManager* casa::RODataManAccessor::baseDataManager | ( | ) | const [inline, protected] |
Get the data manager for the given data manager or column name.
Definition at line 118 of file DataManAccessor.h.
References itsDataManager.
String casa::RODataManAccessor::dataManagerName | ( | ) | const [inline] |
Get the data manager name.
Definition at line 105 of file DataManAccessor.h.
References casa::DataManager::dataManagerName(), and itsDataManager.
uInt casa::RODataManAccessor::dataManagerSeqNr | ( | ) | const [inline] |
Get the data manager sequence nr.
Definition at line 109 of file DataManAccessor.h.
References itsDataManager, and casa::DataManager::sequenceNr().
String casa::RODataManAccessor::dataManagerType | ( | ) | const [inline] |
Get the data manager type.
Definition at line 101 of file DataManAccessor.h.
References casa::DataManager::dataManagerType(), and itsDataManager.
Record casa::RODataManAccessor::getProperties | ( | ) | const |
Get data manager properties as a record.
void casa::RODataManAccessor::setProperties | ( | const Record & | ) | const |
Set data manager properties using the fields in the record.
Each data manager has its specific set of properties.
void casa::RODataManAccessor::showCacheStatistics | ( | ostream & | os | ) | const [inline] |
Show IO statistics.
Definition at line 113 of file DataManAccessor.h.
References itsDataManager, and casa::DataManager::showCacheStatistics().
Definition at line 122 of file DataManAccessor.h.
Referenced by baseDataManager(), dataManagerName(), dataManagerSeqNr(), dataManagerType(), and showCacheStatistics().