28 #ifndef TABLES_TABLECOLUMN_H
29 #define TABLES_TABLECOLUMN_H
47 #if defined(AIPS_DEBUG)
48 # define TABLECOLUMNCHECKROW(ROWNR) \
49 (checkRowNumber (ROWNR))
51 # define TABLECOLUMNCHECKROW(ROWNR)
315 const String& dataTypeId)
const
329 {
put (rownr, that, rownr, preserveTileShape); }
Complex asComplex(uInt rownr) const
A Vector of integers, for indexing into Array<T> objects.
virtual IPosition shape(uInt rownr) const
Get the shape of an array in a particular cell.
void putScalar(uInt rownr, const double &value)
TableColumn ROTableColumn
Define ROTableColumn for backward compatibility.
void throwIfNull() const
Throw an exception if the object is null, i.e.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
virtual uInt ndimColumn() const
Get the global #dimensions of an array (ie.
#define TABLECOLUMNCHECKROW(ROWNR)
void attach(const Table &table, const String &columnName)
Attach a column to the object.
virtual uInt nrow() const =0
Get nr of rows in the column.
void put(uInt rownr, const TableColumn &that, Bool preserveTileShape=False)
Copy the value of a cell of that column to a cell of this column.
void getScalar(uInt rownr, Bool &value) const
Get the value from the row and convert it to the required type.
void getScalarValue(uInt rownr, void *value, const String &dataTypeId) const
virtual TableColumn * clone() const
Clone the object.
std::complex< Float > Complex
virtual TableRecord & keywordSet()=0
Main interface class to a read/write table.
void putScalar(uInt rownr, const DComplex &value)
void putScalar(uInt rownr, const Complex &value)
BaseColumn * baseColPtr(const TableColumn &that) const
Get the baseColPtr_p of another TableColumn object.
void putScalar(uInt rownr, const uShort &value)
Envelope class for the description of a table column.
void getScalarValue(uInt rownr, DComplex *value, const String &) const
void putScalar(uInt rownr, const Char *value)
void getScalarValue(uInt rownr, Short *value, const String &) const
uInt nrow() const
Get the number of rows in the column.
Bool isNull() const
Test if the object is null, i.e.
TableColumn()
The default constructor creates a null object, i.e.
void throwNotWritable() const
Throw the exception that the column is not writable.
void getScalarValue(uInt rownr, uInt *value, const String &) const
float asfloat(uInt rownr) const
const ColumnDesc & columnDesc() const
Get const access to the column description.
BaseColumn * baseColPtr_p
void putScalar(uInt rownr, const float &value)
void checkWritable() const
Check if the column is writable and throw an exception if not.
const TableRecord & keywordSet() const
Get readonly access to the column keyword set.
Table table() const
Get the Table object this column belongs to.
void getScalar(uInt rownr, uShort &value) const
Bool hasContent(uInt rownr=0) const
Does the column has content in the given row (default is the first row)? It has if it is defined and ...
void getScalar(uInt rownr, double &value) const
void putScalar(uInt rownr, const Int &value)
uShort asuShort(uInt rownr) const
void getScalarValue(uInt rownr, Int64 *value, const String &) const
Bool canChangeShape() const
Can the shape of an already existing non-FixedShape array be changed? This depends on the storage man...
Bool isDefined(uInt rownr) const
Test if the given cell contains a defined value.
void checkRowNumber(uInt rownr) const
Check if the row number is valid.
void getScalar(uInt rownr, Bool &value) const
Get the value of a scalar in the given row.
IPosition shape(uInt rownr) const
Get the shape of an array in a particular cell.
void getScalarValue(uInt rownr, uShort *value, const String &) const
void putScalar(uInt rownr, const String &value)
void getScalar(uInt rownr, uInt &value) const
Bool asBool(uInt rownr) const
Get the value from the row and convert it to the required type.
Abstract base class for tables.
void putColumn(const TableColumn &that)
Copy the values of that column to this column.
std::complex< Double > DComplex
Bool isWritableAtAll() const
Test if the column is writable at all (virtual columns might not be).
void putScalar(uInt rownr, const Bool &value)
Put the value of a scalar in the given row.
const ColumnCache * colCachePtr_p
void getScalar(uInt rownr, Int &value) const
Virtual column forwarding to another column.
void checkRowNumber(uInt rownr) const
Check if the row number is valid.
void getScalar(uInt rownr, Int64 &value) const
virtual void setMaximumCacheSize(uInt nbytes)=0
Set the maximum cache size (in bytes) to be used by a storage manager.
bool Bool
Define the standard types used by Casacore.
virtual Bool isWritable() const =0
Test if this table is writable.
void putScalar(uInt rownr, const uInt &value)
String asString(uInt rownr) const
A caching object for a table column.
Read/write access to a table column.
void putScalar(uInt rownr, const Bool &value)
Put the value into the row and convert it from the given type.
A hierarchical collection of named fields of various types.
TableRecord & rwKeywordSet()
Get read/write access to the column keyword set.
void putScalar(uInt rownr, const uChar &value)
IPosition tileShape(uInt rownr) const
Get the tile shape of an array in a particular cell.
void getScalar(uInt rownr, String &value) const
void getScalarValue(uInt rownr, float *value, const String &) const
void getScalarValue(uInt rownr, double *value, const String &) const
void getScalarValue(uInt rownr, uChar *value, const String &) const
void getScalarValue(uInt rownr, Int *value, const String &) const
IPosition shapeColumn() const
Get the global shape of an array (ie.
uInt ndimColumn() const
Get the global #dimensions of an array (ie.
Int64 asInt64(uInt rownr) const
Int asInt(uInt rownr) const
DComplex asDComplex(uInt rownr) const
String: the storage and methods of handling collections of characters.
void attach(const Table &table, uInt columnIndex)
void getScalar(uInt rownr, float &value) const
virtual Bool isDefined(uInt rownr) const =0
Test if the given cell contains a defined value.
Short asShort(uInt rownr) const
void getScalar(uInt rownr, Complex &value) const
void getScalar(uInt rownr, Short &value) const
void getScalarValue(uInt rownr, Bool *value, const String &) const
Get the value of a scalar in the given row.
void getScalarValue(uInt rownr, String *value, const String &) const
TableColumn & operator=(const TableColumn &)
Assignment has reference semantics.
void getScalar(uInt rownr, DComplex &value) const
void setMaximumCacheSize(uInt nbytes) const
Set the maximum cache size (in bytes) to be used by a storage manager.
Bool isWritable() const
Test if the column can be written to, thus if the column and the underlying table can be written to...
void putScalar(uInt rownr, const Short &value)
uInt ndim(uInt rownr) const
Get the #dimensions of an array in a particular cell.
virtual IPosition tileShape(uInt rownr) const
Get the tile shape of an array in a particular cell.
BaseColumn * baseColPtr() const
Get the baseColPtr_p of this TableColumn object.
void getScalar(uInt rownr, uChar &value) const
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
void reference(const TableColumn &)
Change the reference to another column.
uInt asuInt(uInt rownr) const
uChar asuChar(uInt rownr) const
void putScalar(uInt rownr, const Int64 &value)
void getScalarValue(uInt rownr, Complex *value, const String &) const
virtual IPosition shapeColumn() const
Get the global shape of an array (ie.
double asdouble(uInt rownr) const
Abstract base class for a table column.
virtual uInt ndim(uInt rownr) const
Get the #dimensions of an array in a particular cell.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.