casa
$Rev:20696$
|
TBTableDriver implementation that directly accesses the table on disk. More...
#include <TBTableDriver.h>
Public Member Functions | |
TBTableDriverDirect (TableParams *tp, TBTable *table) | |
Constructor that takes a table and its parameters. | |
virtual | ~TBTableDriverDirect () |
bool | canRead () |
Implements TBTableDriver::canRead(). | |
bool | canWrite () |
Implements TBTableDriver::canWrite(). | |
bool | tryWriteLock () |
Implements TBTableDriver::tryWriteLock(). | |
bool | releaseWriteLock () |
Implements TBTableDriver::releaseWriteLock(). | |
Result | loadRows (int start, int num, bool full, vector< String > *fields, bool parsedata, ProgressHelper *progressPanel) |
Implements TBTableDriver::loadRows(). | |
void | loadArray (TBArrayData *d, unsigned int row, unsigned int col) |
Implements TBTableDriver::loadArray(). | |
vector< int > | dimensionsOf (unsigned int col) |
Implements TBTableDriver::dimensionsOf(). | |
Result | editData (unsigned int row, unsigned int col, TBData *newVal, vector< int > *d=NULL) |
Implements TBTableDriver::editData(). | |
int | totalRowsOf (String location) |
Implements TBTableDriver::totalRowsOf(). | |
Result | insertRows (int n) |
Implements TBTableDriver::insertRows(). | |
Result | deleteRows (vector< int > r) |
Implements TBTableDriver::deleteRows(). | |
Static Public Member Functions | |
static vector< TBKeyword * > * | getKeywords (RecordInterface &kws) |
Converts keywords in a TableRecord to a vector of TBKeywords. | |
Private Attributes | |
Table | m_table |
Reference to table on disk. |
TBTableDriver implementation that directly accesses the table on disk.
TBTableDriverDirect is a table driver that accesses the table on disk via the CASA tables code module. It is therefore faster than the XML driver and is the default for the table browser. See casa::Table.
Definition at line 201 of file TBTableDriver.h.
casa::TBTableDriverDirect::TBTableDriverDirect | ( | TableParams * | tp, |
TBTable * | table | ||
) |
Constructor that takes a table and its parameters.
virtual casa::TBTableDriverDirect::~TBTableDriverDirect | ( | ) | [virtual] |
bool casa::TBTableDriverDirect::canRead | ( | ) | [virtual] |
Implements TBTableDriver::canRead().
Implements casa::TBTableDriver.
bool casa::TBTableDriverDirect::canWrite | ( | ) | [virtual] |
Implements TBTableDriver::canWrite().
Implements casa::TBTableDriver.
Result casa::TBTableDriverDirect::deleteRows | ( | vector< int > | r | ) | [virtual] |
Implements TBTableDriver::deleteRows().
Implements casa::TBTableDriver.
vector<int> casa::TBTableDriverDirect::dimensionsOf | ( | unsigned int | col | ) | [virtual] |
Implements TBTableDriver::dimensionsOf().
Implements casa::TBTableDriver.
Result casa::TBTableDriverDirect::editData | ( | unsigned int | row, |
unsigned int | col, | ||
TBData * | newVal, | ||
vector< int > * | d = NULL |
||
) | [virtual] |
Implements TBTableDriver::editData().
Implements casa::TBTableDriver.
static vector<TBKeyword*>* casa::TBTableDriverDirect::getKeywords | ( | RecordInterface & | kws | ) | [static] |
Converts keywords in a TableRecord to a vector of TBKeywords.
Result casa::TBTableDriverDirect::insertRows | ( | int | n | ) | [virtual] |
Implements TBTableDriver::insertRows().
Implements casa::TBTableDriver.
void casa::TBTableDriverDirect::loadArray | ( | TBArrayData * | d, |
unsigned int | row, | ||
unsigned int | col | ||
) | [virtual] |
Implements TBTableDriver::loadArray().
Implements casa::TBTableDriver.
Result casa::TBTableDriverDirect::loadRows | ( | int | start, |
int | num, | ||
bool | full, | ||
vector< String > * | fields, | ||
bool | parsedata, | ||
ProgressHelper * | progressPanel | ||
) | [virtual] |
Implements TBTableDriver::loadRows().
Implements casa::TBTableDriver.
bool casa::TBTableDriverDirect::releaseWriteLock | ( | ) | [virtual] |
Implements TBTableDriver::releaseWriteLock().
Implements casa::TBTableDriver.
int casa::TBTableDriverDirect::totalRowsOf | ( | String | location | ) | [virtual] |
Implements TBTableDriver::totalRowsOf().
Implements casa::TBTableDriver.
bool casa::TBTableDriverDirect::tryWriteLock | ( | ) | [virtual] |
Implements TBTableDriver::tryWriteLock().
Implements casa::TBTableDriver.
Table casa::TBTableDriverDirect::m_table [private] |
Reference to table on disk.
Definition at line 249 of file TBTableDriver.h.