casacore
|
#include <DataManAccessor.h>
Public Member Functions | |
RODataManAccessor () | |
Construct an empty object. More... | |
RODataManAccessor (const Table &table, const String &name, Bool byColumn) | |
Construct the accessor object for a data manager in the table. More... | |
virtual | ~RODataManAccessor () |
void | setProperties (const Record &) const |
Set data manager properties using the fields in the record. More... | |
Record | getProperties () const |
Get data manager properties as a record. More... | |
String | dataManagerType () const |
Get the data manager type. More... | |
String | dataManagerName () const |
Get the data manager name. More... | |
uInt | dataManagerSeqNr () const |
Get the data manager sequence nr. More... | |
void | showCacheStatistics (ostream &os) const |
Show IO statistics. More... | |
Protected Member Functions | |
DataManager * | baseDataManager () const |
Get the data manager for the given data manager or column name. More... | |
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.
|
inline |
Construct an empty object.
Definition at line 81 of file DataManAccessor.h.
casacore::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 |
|
inlineprotected |
Get the data manager for the given data manager or column name.
Definition at line 118 of file DataManAccessor.h.
References itsDataManager.
|
inline |
Get the data manager name.
Definition at line 105 of file DataManAccessor.h.
References casacore::DataManager::dataManagerName(), and itsDataManager.
|
inline |
Get the data manager sequence nr.
Definition at line 109 of file DataManAccessor.h.
References itsDataManager, and casacore::DataManager::sequenceNr().
|
inline |
Get the data manager type.
Definition at line 101 of file DataManAccessor.h.
References casacore::DataManager::dataManagerType(), and itsDataManager.
Record casacore::RODataManAccessor::getProperties | ( | ) | const |
Get data manager properties as a record.
void casacore::RODataManAccessor::setProperties | ( | const Record & | ) | const |
Set data manager properties using the fields in the record.
Each data manager has its specific set of properties.
|
inline |
Show IO statistics.
Definition at line 113 of file DataManAccessor.h.
References itsDataManager, and casacore::DataManager::showCacheStatistics().
|
private |
Definition at line 122 of file DataManAccessor.h.
Referenced by baseDataManager(), dataManagerName(), dataManagerSeqNr(), dataManagerType(), and showCacheStatistics().