26#ifndef TABLES_TABLEROW_H
27#define TABLES_TABLEROW_H
30#include <casacore/casa/aips.h>
31#include <casacore/tables/Tables/Table.h>
32#include <casacore/tables/Tables/TableRecord.h>
33#include <casacore/casa/Containers/Block.h>
34#include <casacore/casa/BasicSL/String.h>
35#include <casacore/casa/Arrays/ArrayFwd.h>
239 Int whichColumn,
Int whichField);
Block< void * > itsColumns
ROTableRow(const ROTableRow &)
Copy constructor (copy semantics).
void copy(const ROTableRow &that)
Copy that object to this object.
void putRecord(rownr_t rownr)
Put the values found in the internal TableRecord at the given row.
Vector< String > columnNames() const
Get a vector consisting of all columns names.
ROTableRow & operator=(const ROTableRow &)
Assignment (copy semantics).
void deleteObjects()
Delete all objects.
void addColumnToDesc(RecordDesc &description, const TableColumn &column, Bool skipOther)
Add a column to the record.
Block< void * > itsFields
void makeObjects(const RecordDesc &description)
Make the required objects.
ROTableRow(const Table &table, Bool storedColumnsOnly=True)
Create a ROTableRow object for the given Table.
ROTableRow(const Table &table, const Vector< String > &columnNames, Bool exclude=False)
Create a ROTableRow object for the given Table.
void setReread(rownr_t rownr)
Set the switch to reread when the current row has been put.
void putField(rownr_t rownr, const TableRecord &record, Int whichColumn, Int whichField)
Put a value in the given field in the TableRecord into the given row and column.
const Block< Bool > & getDefined() const
Get the block telling for each column if its value in the row was indefined in the table.
Int64 rowNumber() const
Get the number of the last row read.
void makeDescExclude(RecordDesc &description, const Vector< String > &columnNames, Bool writable)
Make a RecordDesc from the table with some excluded column names.
Bool isAttached() const
Test if a Table is attached to this object.
void create(const Table &table, const Vector< String > &columnNames, Bool exclude, Bool writable)
Create the record, column, and field objects for the given columns.
const TableRecord & record() const
Get the record containing all fields.
void init()
Initialize the object.
const Table & table() const
Get the Table used for this object.
Block< void * > itsTabCols
void create(const Table &table, Bool storedColumnsOnly, Bool writable)
Create the record, column, and field objects for all columns in the table.
const TableRecord & get(rownr_t rownr, Bool alwaysRead=False) const
Get the values of all columns used from the given row.
ROTableRow()
Create a detached ROTableRow object.
Read/write access to a table row.
TableRow(const Table &table, const Vector< String > &columnNames, Bool exclude=False)
Create a TableRow object for the given Table.
Bool namesConform(const TableRecord &that) const
Check if the names of the given record match this row.
void put(rownr_t rownr, const TableRecord &record, const Block< Bool > &valuesDefined, Bool checkConformance=True)
void put(rownr_t rownr, const TableRecord &record, Bool checkConformance=True)
Put the values found in the TableRecord in the appropriate columns in the given row.
TableRow(const TableRow &)
Copy constructor (copy semantics).
TableRow(const Table &table, Bool storedColumnsOnly=True)
Create a TableRow object for the given Table.
void put()
Put into the last row read.
TableRecord & record()
Get non-const access to the TableRecord in this object.
TableRow & operator=(const TableRow &)
Assignment (copy semantics).
void putMatchingFields(rownr_t rownr, const TableRecord &record)
Put the values found in the TableRecord.
TableRow()
Create a detached TableRow object.
this file contains all the compiler specific defines
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
bool Bool
Define the standard types used by Casacore.
uInt64 rownr_t
Define the type of a row number in a table.