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

TBTableDriver implementation that directly accesses the table on disk. More...

#include <TBTableDriver.h>

Inheritance diagram for casa::TBTableDriverDirect:
casa::TBTableDriver

Public Member Functions

 TBTableDriverDirect (TableParams *tp, TBTable *table)
 Constructor that takes a table and its parameters. More...
 
virtual ~TBTableDriverDirect ()
 
bool canRead ()
 Implements TBTableDriver::canRead(). More...
 
bool canWrite ()
 Implements TBTableDriver::canWrite(). More...
 
bool tryWriteLock ()
 Implements TBTableDriver::tryWriteLock(). More...
 
bool releaseWriteLock ()
 Implements TBTableDriver::releaseWriteLock(). More...
 
Result loadRows (int start, int num, bool full, std::vector< casacore::String > *fields, bool parsedata, ProgressHelper *progressPanel)
 Implements TBTableDriver::loadRows(). More...
 
void loadArray (TBArrayData *d, unsigned int row, unsigned int col)
 Implements TBTableDriver::loadArray(). More...
 
std::vector< int > dimensionsOf (unsigned int col)
 Implements TBTableDriver::dimensionsOf(). More...
 
Result editData (unsigned int row, unsigned int col, TBData *newVal, std::vector< int > *d=NULL)
 Implements TBTableDriver::editData(). More...
 
int totalRowsOf (casacore::String location)
 Implements TBTableDriver::totalRowsOf(). More...
 
Result insertRows (int n)
 Implements TBTableDriver::insertRows(). More...
 
Result deleteRows (std::vector< int > r)
 Implements TBTableDriver::deleteRows(). More...
 
- Public Member Functions inherited from casa::TBTableDriver
 TBTableDriver (TableParams *tp, TBTable *table)
 Constructor that takes the table and the table parameters. More...
 
virtual ~TBTableDriver ()
 
void setPrintDebug (bool pdb)
 Sets whether the driver should print debug information or not. More...
 

Static Public Member Functions

static std::vector< TBKeyword * > * getKeywords (casacore::RecordInterface &kws)
 Converts keywords in a casacore::TableRecord to a vector of TBKeywords. More...
 

Private Attributes

casacore::Table m_table
 Reference to table on disk. More...
 

Additional Inherited Members

- Protected Attributes inherited from casa::TBTableDriver
casacore::String location
 The location of the table. More...
 
bool & insertRow
 Reference to the table's insertRow parameter. More...
 
bool & removeRow
 Reference to the table's removeRow parameter. More...
 
std::vector< std::vector
< TBData * > * > & 
data
 Reference to the table's data parameter. More...
 
std::vector< TBField * > & fields
 Reference to the table's fields parameter. More...
 
std::vector< TBKeyword * > & keywords
 Reference to the table's keywords parameter. More...
 
std::vector< int > & subtableRows
 Reference to the table's subtableRows parameter. More...
 
int & totalRows
 Reference to the table's totalRows parameter. More...
 
int & loadedRows
 Reference to the table's loadedRows parameter. More...
 
std::vector< bool > & writable
 Reference to the table's writable parameter. More...
 
bool & taql
 Reference to the table's taql parameter. More...
 
DriverParamsdp
 Copy of the table's driver parameters. More...
 
bool printdebug
 Indicates whether the driver should print debug information or not. More...
 
TBTabletable
 Reference to the table. More...
 

Detailed Description

TBTableDriver implementation that directly accesses the table on disk.

Synopsis

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 202 of file TBTableDriver.h.

Constructor & Destructor Documentation

casa::TBTableDriverDirect::TBTableDriverDirect ( TableParams tp,
TBTable table 
)

Constructor that takes a table and its parameters.

virtual casa::TBTableDriverDirect::~TBTableDriverDirect ( )
virtual

Member Function Documentation

bool casa::TBTableDriverDirect::canRead ( )
virtual
bool casa::TBTableDriverDirect::canWrite ( )
virtual
Result casa::TBTableDriverDirect::deleteRows ( std::vector< int >  r)
virtual
std::vector<int> casa::TBTableDriverDirect::dimensionsOf ( unsigned int  col)
virtual
Result casa::TBTableDriverDirect::editData ( unsigned int  row,
unsigned int  col,
TBData newVal,
std::vector< int > *  d = NULL 
)
virtual
static std::vector<TBKeyword*>* casa::TBTableDriverDirect::getKeywords ( casacore::RecordInterface kws)
static

Converts keywords in a casacore::TableRecord to a vector of TBKeywords.

Result casa::TBTableDriverDirect::insertRows ( int  n)
virtual
void casa::TBTableDriverDirect::loadArray ( TBArrayData d,
unsigned int  row,
unsigned int  col 
)
virtual
Result casa::TBTableDriverDirect::loadRows ( int  start,
int  num,
bool  full,
std::vector< casacore::String > *  fields,
bool  parsedata,
ProgressHelper progressPanel 
)
virtual
bool casa::TBTableDriverDirect::releaseWriteLock ( )
virtual
int casa::TBTableDriverDirect::totalRowsOf ( casacore::String  location)
virtual
bool casa::TBTableDriverDirect::tryWriteLock ( )
virtual

Member Data Documentation

casacore::Table casa::TBTableDriverDirect::m_table
private

Reference to table on disk.

Definition at line 250 of file TBTableDriver.h.


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