27 #ifndef TBTABLEDRIVER_H_
28 #define TBTABLEDRIVER_H_
109 bool full =
false, std::vector<casacore::String>*
fields = NULL,
110 bool parsedata =
true,
116 unsigned int col) = 0;
121 virtual std::vector<int>
dimensionsOf(
unsigned int col) = 0;
128 std::vector<int>* d = NULL) = 0;
155 std::vector<std::vector<TBData*>*>&
data;
234 std::vector<int>* d = NULL);
static const unsigned int DEFAULT_SELECT_NUM
The default number of rows to load from the table at a time.
bool releaseWriteLock()
Implements TBTableDriver::releaseWriteLock().
int totalRowsOf(casacore::String location)
Implements TBTableDriver::totalRowsOf().
virtual bool releaseWriteLock()=0
releaseWriteLock() must be implemented by any subclass.
Main interface class to a read/write table.
Convenience class for a casacore::String/bool tuple.
std::vector< int > & subtableRows
Reference to the table's subtableRows parameter.
casacore::Data types used for loaded data.
static std::vector< TBKeyword * > * getKeywords(casacore::RecordInterface &kws)
Converts keywords in a casacore::TableRecord to a vector of TBKeywords.
TBTableDriver implementation that directly accesses the table on disk.
int & totalRows
Reference to the table's totalRows parameter.
std::vector< TBField * > & fields
Reference to the table's fields parameter.
Driver for interacting with the table on disk.
virtual void loadArray(TBArrayData *d, unsigned int row, unsigned int col)=0
loadArray() must be implemented by any subclass.
virtual Result deleteRows(std::vector< int > r)=0
deleteRows() must be implemented by any subclass.
void loadArray(TBArrayData *d, unsigned int row, unsigned int col)
Implements TBTableDriver::loadArray().
casacore::Data type that holds an array.
Wrapper around a QProgressPanel or other QLabel/QProgressBar pairing.
Parameters that define all table data and meta-deta.
virtual bool tryWriteLock()=0
tryWriteLock() must be implemented by any subclass.
bool tryWriteLock()
Implements TBTableDriver::tryWriteLock().
Primary interface for the rest of the browser to a table.
virtual bool canRead()=0
canRead() must be implemented by any subclass.
std::vector< bool > & writable
Reference to the table's writable parameter.
void setPrintDebug(bool pdb)
Sets whether the driver should print debug information or not.
bool & insertRow
Reference to the table's insertRow parameter.
virtual Result insertRows(int n)=0
insertRows() must be implemented by any subclass.
bool & removeRow
Reference to the table's removeRow parameter.
Result deleteRows(std::vector< int > r)
Implements TBTableDriver::deleteRows().
virtual int totalRowsOf(casacore::String location)=0
totalRowsOf() must be implemented by any subclass.
virtual Result editData(unsigned int row, unsigned int col, TBData *newVal, std::vector< int > *d=NULL)=0
editData() must be implemented by any subclass.
virtual bool canWrite()=0
canWrite() must be implemented by any subclass.
bool & taql
Reference to the table's taql parameter.
std::vector< std::vector< TBData * > * > & data
Reference to the table's data parameter.
Result editData(unsigned int row, unsigned int col, TBData *newVal, std::vector< int > *d=NULL)
Implements TBTableDriver::editData().
virtual ~TBTableDriverDirect()
bool canRead()
Implements TBTableDriver::canRead().
TBTable * table
Reference to the table.
casacore::Table m_table
Reference to table on disk.
virtual Result loadRows(int start=0, int num=TBConstants::DEFAULT_SELECT_NUM, bool full=false, std::vector< casacore::String > *fields=NULL, bool parsedata=true, ProgressHelper *pp=NULL)=0
loadRows() must be implemented by any subclass.
Result insertRows(int n)
Implements TBTableDriver::insertRows().
std::vector< TBKeyword * > & keywords
Reference to the table's keywords parameter.
casacore::String location
The location of the table.
Result loadRows(int start, int num, bool full, std::vector< casacore::String > *fields, bool parsedata, ProgressHelper *progressPanel)
Implements TBTableDriver::loadRows().
int & loadedRows
Reference to the table's loadedRows parameter.
String: the storage and methods of handling collections of characters.
virtual std::vector< int > dimensionsOf(unsigned int col)=0
dimensionsOf() must be implemented by any subclass.
Abstract base class for Record classes.
TBTableDriver(TableParams *tp, TBTable *table)
Constructor that takes the table and the table parameters.
Parameters to indicate what driver should be used for the table backend.
TBTableDriverDirect(TableParams *tp, TBTable *table)
Constructor that takes a table and its parameters.
bool printdebug
Indicates whether the driver should print debug information or not.
std::vector< int > dimensionsOf(unsigned int col)
Implements TBTableDriver::dimensionsOf().
DriverParams * dp
Copy of the table's driver parameters.
bool canWrite()
Implements TBTableDriver::canWrite().
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.