50 class TBFilterRuleSequence;
93 std::vector<std::vector<TBData*>*>& d,
94 std::vector<TBField*>& f, std::vector<TBKeyword*>& k,
95 std::vector<int>& sr,
int& tr,
int& lr, std::vector<bool>& w,
bool& t,
112 std::vector<std::vector<TBData*>*>&
data;
271 bool full =
false, std::vector<casacore::String>* columns = NULL,
272 bool parsedata =
true,
297 std::vector<int> coords,
TBData* newVal,
bool oneDim);
356 std::vector< std::vector<TBData*>* >
data;
394 int rowFrom,
int rowTo,
int rowInterval);
bool canRead()
See TBTableDriver::canRead().
static const unsigned int DEFAULT_SELECT_NUM
The default number of rows to load from the table at a time.
int loadedRows
The number of rows currently loaded in the table.
std::vector< TBKeyword * > & keywords
See TBTable::keywords.
DriverParams * dParams
See TBTable::dParams.
std::vector< TBField * > fields
The table fields.
bool isEditable()
Returns whether all the columns in this table are editable or not.
std::vector< TBField * > * getFields()
Returns the fields for this table.
int totalRows
The total number of rows in the table.
TBField * field(int i)
Returns the field at the given index, or NULL if there is none.
bool canWrite()
See TBTableDriver::canWrite().
Convenience class for a casacore::String/bool tuple.
Result editArrayData(unsigned int row, unsigned int col, std::vector< int > coords, TBData *newVal, bool oneDim)
Updates the table on disk with the new value at the given coordinates in the array at the given row a...
bool removeRow
Indicates whether this table allows for the deletion of rows or not.
double getDouble(TBData *d, std::vector< int > *slice, bool complex, bool amp)
Helper method for plotRows().
casacore::String tableToolTip()
Returns a tooltip for this table.
void exportVOTable(casacore::String file, ProgressHelper *progressPanel=NULL)
Exports the entirety of this table to VOTable XML format to the given file.
std::vector< TBField * > & fields
See TBTable::fields.
bool & removeRow
See TBTable::removeRow.
casacore::Data for plotting.
casacore::Data types used for loaded data.
std::vector< bool > writable
Indicates whether this table is writable or not.
std::vector< std::vector< TBData * > * > data
Holds the table data.
tb::Parser parser
Parser type (for XML driver).
bool & insertRow
See TBTable::insertRow.
bool canInsertRows()
Returns true if the underlying table allows for insertion of rows, false otherwise.
void setPrintDebug(bool pdb)
Sets whether the table should print debug information or not.
int totalRowsOf(casacore::String location)
Returns the total number of rows for the table at the given location, or -1 for an invalid location o...
bool canDeleteRows()
Returns true if the underlying table allows for deletion of rows, false otherwise.
TBData * dataAt(unsigned int row, unsigned int col)
Returns the data at the given indices, or NULL if they are invalid.
Result insertRows(int n)
Inserts the given number of rows at the end of the table.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
Parser
Enum to indicate the different parsers available for XML drivers.
void filter(TBPlotData *data, TBTable &table, TBFilterRuleSequence *rules, int rowFrom, int rowTo, int rowInterval)
Helper method for plotRows().
std::vector< int > subtableRows
Cache of total number of rows for subtables.
Driver for interacting with the table on disk.
int rowIndex
The index of the first row loaded in this table.
bool releaseArray(unsigned int row, unsigned int col)
Release the array at the given indices and returns whether the release succeeded. ...
int getRowIndex()
Returns the first loaded row in the table.
casacore::Data type that holds an array.
std::vector< int > & subtableRows
See TBTable::subtableRows.
Wrapper around a QProgressPanel or other QLabel/QProgressBar pairing.
Result deleteRows(std::vector< int > r)
Deletes the given rows from the table.
Parameters that define all table data and meta-deta.
int & totalRows
See TBTable::totalRows.
std::vector< std::vector< TBData * > * > & data
See TBTable::data.
bool isTaQL()
Returns whether this table is constructed from a TaQL query or not.
bool ready
Indicates whether the table is ready for access or not.
tb::Driver type
Driver type.
TBArrayData * loadArray(unsigned int row, unsigned int col)
Loads and returns the array at the given indices.
int & loadedRows
See TBTable::loadedRows.
bool isAnyEditable()
Returns whether any of the columns in this table are editable or not.
bool isReady()
Indicates if the table is ready for access or not.
std::vector< casacore::String > getColumnHeaders()
Returns the column headers (field names) for this table.
casacore::String getName()
Returns the name of this table (which the last the part of the filename).
bool taql
Indates whether this table was constructed from a TaQL command or not.
Primary interface for the rest of the browser to a table.
LatticeExprNode amp(const LatticeExprNode &left, const LatticeExprNode &right)
This function finds sqrt(left^2+right^2).
TBPlotData * plotRows(PlotParams &x, PlotParams &y, int rowFrom, int rowTo, int rowInterval, TBFilterRuleSequence *rule=NULL, ProgressHelper *ph=NULL)
Returns data used for plotting, using the given plot parameters and row information.
std::vector< casacore::String > getRowHeaders()
Returns the row headers (row numbers) for the loaded rows in this table.
TBTableDriver * driver
casacore::Table driver.
Driver
Enum to indicate the different driver types.
bool releaseWriteLock()
See TBTableDriver::releaseWriteLock().
Result loadRows(int start=0, int number=TBConstants::DEFAULT_SELECT_NUM, bool full=false, std::vector< casacore::String > *columns=NULL, bool parsedata=true, ProgressHelper *progressPanel=NULL)
Loads the given rows into the table and returns a Result indicating the success of the loading...
std::vector< TBKeyword * > * getTableKeywords()
Returns the table keywords.
std::vector< int > dataDimensionsAt(unsigned int col)
Returns the shape of the array for the given field, or an empty list if the field is not an array...
std::vector< TBKeyword * > keywords
The table keywords.
int getLoadedRows()
Returns the number of rows loaded into the table.
TBPlotData * plotIndices(PlotParams &dp, int axis, bool x, int row, TBFilterRuleSequence *rule=NULL, ProgressHelper *ph=NULL)
Returns data used for plotting (an 1-D array and its indices), using the given plot parameters...
TBTable(casacore::String filename, DriverParams *dp, bool taql=false)
Constructor that takes the filename and driver parameters.
int getSelectedRows()
Returns the number of selected rows.
A sequence of TBFilterRules that can be used to filter rows.
casacore::String fieldToolTip(int i)
Returns a tooltip for the field at index i.
bool & taql
See TBTable::taql.
Representation of a table field.
TBKeyword * keyword(int i)
Returns the keyword at the given index, or NULL if there is none.
DriverParams(tb::Driver t=tb::DIRECT, tb::Parser p=tb::XERCES_SAX)
Default Constructor.
Result editData(unsigned int row, unsigned int col, TBData *newVal)
Edits the data at the given indices to have the new value and returns whether the operation succeeded...
casacore::String getFile()
Returns the filename where this table is located.
int selectedRows
The last number of rows selected for loading during the last load.
DriverParams * getDriverParams()
Returns the driver parameters for this table.
int getPage()
Return the currently loaded page.
String: the storage and methods of handling collections of characters.
bool tryWriteLock()
See TBTableDriver::tryWriteLock().
casacore::String & location
See TBTable::location.
Parameters for a single field for collecting plotting data.
int getNumPages()
Returns the number of pages in the table.
bool insertRow
Indicates whether this table allows for the insertion of rows or not.
DriverParams(DriverParams *dp)
Copy Constructor.
casacore::String location
Location of the table.
Representation of a keyword attached to a table or field.
Parameters to indicate what driver should be used for the table backend.
DriverParams * dParams
Driver parameters.
std::vector< bool > & writable
See TBTable::writable.
int getNumFields()
Returns the number of columns in the table.
int getTotalRows()
Returns the total number of rows in the table.
TableParams(casacore::String &l, bool &ir, bool &rr, std::vector< std::vector< TBData * > * > &d, std::vector< TBField * > &f, std::vector< TBKeyword * > &k, std::vector< int > &sr, int &tr, int &lr, std::vector< bool > &w, bool &t, DriverParams *dp)
Defines nreal time structures used by the VLA table filler.