28 #ifndef TABLES_MSMBASE_H
29 #define TABLES_MSMBASE_H
162 const String& dataTypeID);
165 const String& dataTypeID);
168 const String& dataTypeID);
static DataManager * makeObject(const String &dataManagerType, const Record &spec)
Make the object from the string.
String stmanName_p
Name given by user to this storage manager.
virtual Bool canRemoveColumn() const
Does the storage manager allow to delete columns? (yes)
AipsIO is the object persistency mechanism of Casacore.
Abstract base class for a column in a data manager.
Bool hasPut_p
Has anything been put since the last flush?
void setHasPut()
Set the hasPut_p flag.
Base class for memory-based table storage manager class.
virtual void prepare()
Let the data manager initialize itself further.
virtual void addRow64(rownr_t nrrow)
Add rows to all columns.
virtual DataManagerColumn * makeDirArrColumn(const String &name, int dataType, const String &dataTypeID)
Create a direct array column.
PtrBlock< MSMColumn * > colSet_p
The assembly of all columns.
virtual Bool canRemoveRow() const
Does the storage manager allow to delete rows? (yes)
virtual Bool canAddColumn() const
Does the storage manager allow to add columns? (yes)
virtual rownr_t open64(rownr_t nrrow, AipsIO &)
Open the storage manager file for an existing table.
virtual DataManager * clone() const
Clone this object.
virtual Bool flush(AipsIO &, Bool fsync)
Flush and optionally fsync the data.
virtual DataManagerColumn * reallocateColumn(DataManagerColumn *column)
Reallocate the column object if it is part of this data manager.
rownr_t nrow() const
Get the nr of rows in this storage manager.
virtual rownr_t resync64(rownr_t nrrow)
Resync the storage manager with the new file contents.
A hierarchical collection of named fields of various types.
bool Bool
Define the standard types used by Casacore.
virtual void removeColumn(DataManagerColumn *)
Delete a column.
virtual void removeRow64(rownr_t rownr)
Delete a row from all columns.
virtual DataManagerColumn * makeScalarColumn(const String &name, int dataType, const String &dataTypeID)
Create a column in the storage manager on behalf of a table column.
A drop-in replacement for Block<T*>.
rownr_t nrrowCreate_p
The number of rows in create().
uInt64 rownr_t
Define the type of a row number in a table.
virtual String dataManagerType() const
Get the type name of the data manager (i.e.
rownr_t nrrow_p
The number of rows in the columns.
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).
String: the storage and methods of handling collections of characters.
virtual void addColumn(DataManagerColumn *)
Add a column.
virtual Bool canReallocateColumns() const
The MemoryStMan wants to do reallocateColumn.
virtual DataManagerColumn * makeIndArrColumn(const String &name, int dataType, const String &dataTypeID)
Create an indirect array column.
virtual void create64(rownr_t nrrow)
Let the storage manager create the nr of rows needed.
virtual String dataManagerName() const
Get the name given to this storage manager.
virtual Bool canAddRow() const
Does the storage manager allow to add rows? (yes)
MSMBase()
Create a memory storage manager.