28 #ifndef TABLES_MSMCOLUMN_H
29 #define TABLES_MSMCOLUMN_H
33 #include <casacore/casa/aips.h>
34 #include <casacore/tables/DataMan/StManColumnBase.h>
35 #include <casacore/casa/Containers/Block.h>
36 #include <casacore/casa/BasicSL/Complex.h>
37 #include <casacore/casa/Arrays/IPosition.h>
38 #include <casacore/casa/BasicSL/String.h>
Non-templated base class for templated Array class.
virtual void getdouble(rownr_t rownr, double *dataPtr)
virtual void getComplex(rownr_t rownr, Complex *dataPtr)
virtual void putComplex(rownr_t rownr, const Complex *dataPtr)
virtual void remove(rownr_t rownr)
Remove the given row.
virtual void putuShort(rownr_t rownr, const uShort *dataPtr)
void deleteAll()
Delete all extensions.
virtual void getuShort(rownr_t rownr, uShort *dataPtr)
Bool byPtr_p
The data is indirectly accessed via a pointer (for the derived classes).
virtual ~MSMColumn()
Frees up the storage.
void resize(rownr_t nrval)
Resize the data blocks.
virtual void putDComplex(rownr_t rownr, const DComplex *dataPtr)
virtual void addRow(rownr_t newNrrow, rownr_t oldNrrow)
Add (newNrrow-oldNrrow) rows to the column.
uInt findExt(rownr_t rownr, Bool setCache)
Find the extension in which the row number is.
Block< rownr_t > ncum_p
The cumulative nr of rows in all extensions.
MSMColumn(MSMBase *smptr, int dataType, Bool byPtr)
Create a column of the given type.
virtual void putString(rownr_t rownr, const String *dataPtr)
void putArrayPtr(rownr_t rownr, void *dataPtr)
Put the pointer for the given row.
virtual void initData(void *datap, rownr_t nrval)
Initialize the data (after an open).
virtual void putBool(rownr_t rownr, const Bool *dataPtr)
Put a scalar value into the given row.
virtual void getInt64(rownr_t rownr, Int64 *dataPtr)
virtual void getDComplex(rownr_t rownr, DComplex *dataPtr)
Block< void * > data_p
The assembly of all extensions (actually Block<T*>).
virtual void putdouble(rownr_t rownr, const double *dataPtr)
virtual void getInt(rownr_t rownr, Int *dataPtr)
virtual void getShort(rownr_t rownr, Short *dataPtr)
virtual void putFile(rownr_t nrval, AipsIO &)
Make it possible to write the column data.
virtual void getuInt(rownr_t rownr, uInt *dataPtr)
void * getArrayPtr(rownr_t rownr)
Get the pointer for the given row.
virtual void putfloat(rownr_t rownr, const float *dataPtr)
virtual Bool ok() const
Check if the class invariants still hold.
virtual void putuInt(rownr_t rownr, const uInt *dataPtr)
virtual void getuChar(rownr_t rownr, uChar *dataPtr)
virtual void putuChar(rownr_t rownr, const uChar *dataPtr)
virtual void getScalarColumnV(ArrayBase &data)
Get all scalar values in the column.
virtual void putInt64(rownr_t rownr, const Int64 *dataPtr)
virtual void getBool(rownr_t rownr, Bool *dataPtr)
Get a scalar value in the given row.
void * allocData(rownr_t nrval, Bool byPtr)
Allocate an extension with the data type of the column.
virtual void putShort(rownr_t rownr, const Short *dataPtr)
MSMColumn & operator=(const MSMColumn &)
Forbid assignment.
virtual void putInt(rownr_t rownr, const Int *dataPtr)
virtual void getfloat(rownr_t rownr, float *dataPtr)
virtual void doCreate(rownr_t nrrow)
Create the number of rows in a new table.
void removeData(void *datap, rownr_t inx, rownr_t nrvalAfter)
Remove an entry (i.e.
virtual void getFile(rownr_t nrval, AipsIO &)
Make it possible to read the column data.
virtual void reopenRW()
Reopen the storage manager files for read/write.
virtual void putScalarColumnV(const ArrayBase &data)
Put all scalar values in the column.
uInt nrext_p
The nr of extensions in use.
void deleteData(void *datap, Bool byPtr)
Delete an extension.
rownr_t nralloc_p
The number of allocated rows in the column.
virtual void getString(rownr_t rownr, String *dataPtr)
MSMColumn(const MSMColumn &)
Forbid copy constructor.
virtual int dataType() const
Return the data type of the column.
String: the storage and methods of handling collections of characters.
std::complex< Float > Complex
std::complex< Double > DComplex
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.