28 #ifndef TABLES_BASEMAPPEDARRAYENGINE_H
29 #define TABLES_BASEMAPPEDARRAYENGINE_H
40 template<
class T>
class ArrayColumn;
286 const String& storedColumnName);
488 template<
class VirtualType,
class StoredType>
491 {
return virtualName_p; }
493 template<
class VirtualType,
class StoredType>
496 {
return storedName_p; }
498 template<
class VirtualType,
class StoredType>
503 virtualName_p = virtualName;
504 storedName_p = storedName;
507 template<
class VirtualType,
class StoredType>
510 { isWritable_p = isWritable; }
512 template<
class VirtualType,
class StoredType>
515 {
return *column_p; }
521 #ifndef CASACORE_NO_AUTO_TEMPLATES
522 #include <casacore/tables/DataMan/BaseMappedArrayEngine.tcc>
523 #endif //# CASACORE_NO_AUTO_TEMPLATES
A Vector of integers, for indexing into Array<T> objects.
virtual Bool canChangeShape() const
The data manager can handle changing the shape of an existing array when the underlying stored column...
void setNames(const String &virtualName, const String &storedName)
Set the virtual and stored column name.
Abstract base class for virtual column handling.
virtual void getColumnSliceCells(const RefRows &rownrs, const Slicer &slicer, Array< VirtualType > &data)
Get a section of some arrays in the column.
virtual void putSlice(uInt rownr, const Slicer &slicer, const Array< VirtualType > &array)
Put into a section of the array in the given row.
const String & virtualName() const
Get the virtual column name.
virtual void mapOnGet(Array< VirtualType > &array, const Array< StoredType > &stored)
Map StoredType array to VirtualType array.
virtual void putArray(uInt rownr, const Array< VirtualType > &array)
Put an array in the given row.
ArrayColumn< StoredType > & column()
Give access to the stored column.
const String & columnName() const
Get rhe column name.
virtual void prepare()
Preparing consists of setting the writable switch and adding the initial number of rows in case of cr...
Abstract base class for a column in a data manager.
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
Templated base class for virtual array column.
Templated virtual column engine for a table array of any type.
virtual void getArrayColumnCells(const RefRows &rownrs, Array< VirtualType > &data)
Get some array values in the column.
virtual void addRow(uInt nrrow)
Rows are added to the end of the table.
virtual String dataTypeId() const
Return the data type Id of the column.
virtual void putArrayColumnCells(const RefRows &rownrs, const Array< VirtualType > &data)
Put some array values in the column.
virtual void putColumnSliceCells(const RefRows &rownrs, const Slicer &slicer, const Array< VirtualType > &data)
Put into a section of some arrays in the column.
BaseMappedArrayEngine()
The default constructor is required for reconstruction of the engine when a table is read back...
void getColumnSlice(const Slicer &slicer, Array< VirtualType > &array)
Get a section of all arrays in the column.
virtual void getArray(uInt rownr, Array< VirtualType > &array)
Get an array in the given row.
virtual int dataType() const
Return the data type of the column.
virtual void mapOnPut(const Array< VirtualType > &array, Array< StoredType > &stored)
Map Bool array to bit flags array.
virtual void setShapeColumn(const IPosition &shape)
Set the shape of the FixedShape arrays in the column.
virtual void addRowInit(uInt startRow, uInt nrrow)
virtual DataManagerColumn * makeIndArrColumn(const String &columnName, int dataType, const String &dataTypeId)
Create the column object for the array column in this engine.
ABSTRACT CLASSES Deliberately vague to be general enough to allow for many different types of data
ArrayColumn< StoredType > * column_p
const String & storedName() const
Get the stored column name.
void setWritable(Bool isWritable)
Set if the column is writable or not.
void prepare1()
Do the 2 stages of the prepare (define columns and adding rows).
virtual IPosition shape(uInt rownr)
Get the shape of the (underlying) array in the given row.
virtual Slicer getStoredSlicer(const Slicer &virtualSlicer) const
Map the slicer for a virtual shape to a stored shape.
Class holding the row numbers in a RefTable.
virtual Bool isShapeDefined(uInt rownr)
Test if the (underlying) array is defined in the given row.
bool Bool
Define the standard types used by Casacore.
Read/write access to a table column.
template <class T, class U> class vector;
virtual void getArrayColumn(Array< VirtualType > &array)
Get an entire column.
virtual void create(uInt initialNrrow)
Initialize the object for a new table.
Specify which elements to extract from an n-dimensional array.
virtual void putArrayColumn(const Array< VirtualType > &array)
Put an entire column.
virtual Bool isWritable() const
The column is writable if the underlying stored column is writable.
TableColumn makeTableColumn(const String &columnName)
Make a table column object for the given column.
virtual IPosition getStoredShape(uInt rownr, const IPosition &virtualShape)
Map the virtual shape to the stored shape.
virtual void getSlice(uInt rownr, const Slicer &slicer, Array< VirtualType > &array)
Get a section of the array in the given row.
String: the storage and methods of handling collections of characters.
virtual void setShape(uInt rownr, const IPosition &shape)
Define the shape of the array in the given row.
void putColumnSlice(const Slicer &slicer, const Array< VirtualType > &array)
Put a section of all arrays in the column.
~BaseMappedArrayEngine()
Destructor is mandatory.
virtual uInt ndim(uInt rownr)
Get the dimensionality of the (underlying) array in the given row.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.