Go to the documentation of this file.
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);
AipsIO is the object persistency mechanism of Casacore
Abstract base class for a data manager.
A drop-in replacement for Block<T*>.
DataManagerColumn * makeScalarColumn(const String &name, int dataType, const String &dataTypeID)
Create a column in the storage manager on behalf of a table column.
void addColumn(DataManagerColumn *)
Add a column.
virtual void create(uInt nrrow)
Let the storage manager create the nr of rows needed.
MSMBase(const String &storageManagerName)
Create a memory storage manager with the given name.
Abstract base class for a column in a data manager.
MSMBase()
Create a memory storage 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)
DataManagerColumn * makeDirArrColumn(const String &name, int dataType, const String &dataTypeID)
Create a direct array column.
MSMBase(const String &storageManagerName, const Record &)
virtual void resync(uInt nrrow)
Resync the storage manager with the new file contents.
void removeRow(uInt rownr)
Delete a row from all columns.
DataManagerColumn * makeIndArrColumn(const String &name, int dataType, const String &dataTypeID)
Create an indirect array column.
uInt nrow() const
Get the nr of rows in this storage manager.
virtual void prepare()
Let the data manager initialize itself further.
void removeColumn(DataManagerColumn *)
Delete a column.
Base class for memory-based table storage manager class.
this file contains all the compiler specific defines
Bool canReallocateColumns() const
The MemoryStMan wants to do reallocateColumn.
virtual void open(uInt nrrow, AipsIO &)
Open the storage manager file for an existing table.
String dataManagerType() const
Get the type name of the data manager (i.e.
uInt nrrow_p
The number of rows in the columns.
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.
uInt nrrowCreate_p
The number of rows in create().
Bool canRemoveRow() const
Does the storage manager allow to delete rows? (yes)
String dataManagerName() const
Get the name given to this storage manager.
String: the storage and methods of handling collections of characters.
Bool canAddRow() const
Does the storage manager allow to add rows? (yes)
virtual Bool flush(AipsIO &, Bool fsync)
Flush and optionally fsync the data.
bool Bool
Define the standard types used by Casacore.
void addRow(uInt nrrow)
Add rows to all columns.
A hierarchical collection of named fields of various types.
DataManagerColumn * reallocateColumn(DataManagerColumn *column)
Reallocate the column object if it is part of this data manager.
DataManager * clone() const
Clone this object.
PtrBlock< MSMColumn * > colSet_p
The assembly of all columns.
Bool canRemoveColumn() const
Does the storage manager allow to delete columns? (yes)