Go to the documentation of this file.
28 #ifndef TABLES_RETYPEDARRAYENGINE_H
29 #define TABLES_RETYPEDARRAYENGINE_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/tables/DataMan/BaseMappedArrayEngine.h>
34 #include <casacore/tables/Tables/TableRecord.h>
461 const String& storedColumnName);
472 const String& storedColumnName,
599 #ifndef CASACORE_NO_AUTO_TEMPLATES
600 #include <casacore/tables/DataMan/RetypedArrayEngine.tcc>
601 #endif //# CASACORE_NO_AUTO_TEMPLATES
RetypedArrayEngine(const RetypedArrayEngine< VirtualType, StoredType > &)
Copy constructor is only used by clone().
RetypedArrayEngine(const Record &spec)
Construct from a record specification as created by getmanagerSpec().
Abstract base class for a data manager.
virtual Slicer getStoredSlicer(const Slicer &virtualSlicer) const
Convert the Slicer for a virtual to a Slicer for the stored.
Bool isVirtualFixedShape_p
void setShapeColumn(const IPosition &shape)
Set the shape of the FixedShape arrays in the column.
virtual String dataManagerType() const
Return the type name of the engine (i.e.
void create(uInt initialNrrow)
Initialize the object for a new table.
RetypedArrayEngine(const String &virtualColumnName, const String &storedColumnName)
Construct an engine to map a virtual column containing arrays with an arbitrary data type to arrays i...
IPosition checkShape(const Array< VirtualType > &source, const Array< StoredType > &target)
Check if the shapes of virtual and stored match.
void prepare()
Preparing consists of setting the writable switch and adding the initial number of rows in case of cr...
void setShape(uInt rownr, const IPosition &shape)
Define the shape of the array in the given row.
static DataManager * makeObject(const String &dataManagerType, const Record &spec)
this file contains all the compiler specific defines
IPosition virtualFixedShape_p
TableExprNode array(const TableExprNode &values, const TableExprNodeSet &shape)
Create an array of the given shape and fill it with the values.
uInt ndim(uInt rownr)
Get the dimensionality of the array in the given row.
static String className()
Return the name of the class.
~RetypedArrayEngine()
Destructor is mandatory.
virtual void mapOnGet(Array< VirtualType > &array, const Array< StoredType > &stored)
Copy the stored array to the virtual array.
template <class T, class U> class vector;
String: the storage and methods of handling collections of characters.
bool Bool
Define the standard types used by Casacore.
DataManager * clone() const
Clone the engine object.
virtual void mapOnPut(const Array< VirtualType > &array, Array< StoredType > &stored)
Copy the virtual array to the stored array.
IPosition shape(uInt rownr)
Get the shape of the array in the given row.
RetypedArrayEngine(const String &virtualColumnName, const String &storedColumnName, const IPosition &virtualElementShape, const TableRecord &extraInformation)
Construct an engine to map a virtual column containing arrays with an arbitrary data type to arrays i...
virtual IPosition getStoredShape(uInt rownr, const IPosition &virtualShape)
Map the virtual shape to the stored shape.
virtual String dataManagerName() const
Get the name given to the engine (is the virtual column name).
virtual Record dataManagerSpec() const
Record a record containing data manager specifications.
static void registerClass()
Register the class name and the static makeObject "constructor".