casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
casacore::RODataManAccessor Class Reference

Base class for the Data Manager Accessor classes. More...

#include <DataManAccessor.h>

Inheritance diagram for casacore::RODataManAccessor:
casacore::ROIncrementalStManAccessor casacore::ROStandardStManAccessor casacore::ROTiledStManAccessor casacore::TiledDataStManAccessor

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

DataManagerbaseDataManager () const
 Get the data manager for the given data manager or column name. More...
 

Private Attributes

DataManageritsDataManager
 

Detailed Description

Base class for the Data Manager Accessor classes.

Intended use:

Internal

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

Prerequisite

Synopsis

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.

Motivation

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.

Constructor & Destructor Documentation

casacore::RODataManAccessor::RODataManAccessor ( )
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 casacore::RODataManAccessor::~RODataManAccessor ( )
virtual

Member Function Documentation

DataManager* casacore::RODataManAccessor::baseDataManager ( ) const
inlineprotected

Get the data manager for the given data manager or column name.

Definition at line 118 of file DataManAccessor.h.

References itsDataManager.

String casacore::RODataManAccessor::dataManagerName ( ) const
inline

Get the data manager name.

Definition at line 105 of file DataManAccessor.h.

References casacore::DataManager::dataManagerName(), and itsDataManager.

uInt casacore::RODataManAccessor::dataManagerSeqNr ( ) const
inline

Get the data manager sequence nr.

Definition at line 109 of file DataManAccessor.h.

References itsDataManager, and casacore::DataManager::sequenceNr().

String casacore::RODataManAccessor::dataManagerType ( ) const
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.

void casacore::RODataManAccessor::showCacheStatistics ( ostream &  os) const
inline

Show IO statistics.

Definition at line 113 of file DataManAccessor.h.

References itsDataManager, and casacore::DataManager::showCacheStatistics().

Member Data Documentation

DataManager* casacore::RODataManAccessor::itsDataManager
private

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