28 #ifndef TABLES_MSMBASE_H 29 #define TABLES_MSMBASE_H 33 #include <casacore/casa/aips.h> 34 #include <casacore/tables/DataMan/DataManager.h> 35 #include <casacore/casa/Containers/Block.h> 157 const String& dataTypeID);
160 const String& dataTypeID);
163 const String& dataTypeID);
DataManagerColumn * reallocateColumn(DataManagerColumn *column)
Reallocate the column object if it is part of this data manager.
void removeColumn(DataManagerColumn *)
Delete a column.
static DataManager * makeObject(const String &dataManagerType, const Record &spec)
Make the object from the string.
Bool canAddRow() const
Does the storage manager allow to add rows? (yes)
void removeRow(uInt rownr)
Delete a row from all columns.
String stmanName_p
Name given by user to this storage manager.
Bool canReallocateColumns() const
The MemoryStMan wants to do reallocateColumn.
AipsIO is the object persistency mechanism of Casacore.
Abstract base class for a column in a data manager.
DataManagerColumn * makeDirArrColumn(const String &name, int dataType, const String &dataTypeID)
Create a direct array column.
Base class for memory-based table storage manager class.
virtual void prepare()
Let the data manager initialize itself further.
Bool canRemoveRow() const
Does the storage manager allow to delete rows? (yes)
Bool canRemoveColumn() const
Does the storage manager allow to delete columns? (yes)
PtrBlock< MSMColumn * > colSet_p
The assembly of all columns.
virtual void create(uInt nrrow)
Let the storage manager create the nr of rows needed.
virtual Bool flush(AipsIO &, Bool fsync)
Flush and optionally fsync the data.
void addColumn(DataManagerColumn *)
Add a column.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
DataManager * clone() const
Clone this object.
String dataManagerType() const
Get the type name of the data manager (i.e.
A drop-in replacement for Block<T*>.
virtual void resync(uInt nrrow)
Resync the storage manager with the new file contents.
uInt nrrow_p
The number of rows in the columns.
virtual void open(uInt nrrow, AipsIO &)
Open the storage manager file for an existing table.
String dataManagerName() const
Get the name given to this storage manager.
Abstract base class for a data manager.
virtual void deleteManager()
The data manager will be deleted (because all its columns are requested to be deleted).
Bool canAddColumn() const
Does the storage manager allow to add columns? (yes)
void addRow(uInt nrrow)
Add rows to all columns.
String: the storage and methods of handling collections of characters.
DataManagerColumn * makeIndArrColumn(const String &name, int dataType, const String &dataTypeID)
Create an indirect array column.
DataManagerColumn * makeScalarColumn(const String &name, int dataType, const String &dataTypeID)
Create a column in the storage manager on behalf of a table column.
uInt nrrowCreate_p
The number of rows in create().
this file contains all the compiler specific defines
uInt nrow() const
Get the nr of rows in this storage manager.
MSMBase()
Create a memory storage manager.