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