casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions | List of all members
casacore::SSMColumn Class Reference

A Column in the Standard Storage Manager. More...

#include <SSMColumn.h>

Inheritance diagram for casacore::SSMColumn:
casacore::StManColumn casacore::DataManagerColumn casacore::SSMDirColumn casacore::SSMIndColumn casacore::SSMIndStringColumn

Public Member Functions

 SSMColumn (SSMBase *aParent, int aDataType, uInt aColNr)
 Create a SSMColumn object with the given parent. More...
 
virtual ~SSMColumn ()
 
virtual void setShapeColumn (const IPosition &aShape)
 Set the shape of an array in the column. More...
 
virtual void setMaxLength (uInt maxLength)
 Set the maximum length of a 'fixed length' string. More...
 
virtual uInt ndim (uInt aRowNr)
 Get the dimensionality of the item in the given row. More...
 
virtual IPosition shape (uInt aRowNr)
 Get the shape of the array in the given row. More...
 
virtual void doCreate (uInt aNrRows)
 Let the object initialize itself for a newly created table. More...
 
virtual void getFile (uInt aNrRows)
 Let the column object initialize itself for an existing table. More...
 
void resync (uInt aNrRow)
 Resync the storage manager with the new file contents. More...
 
virtual void getBoolV (uInt aRowNr, Bool *aDataPtr)
 Get the scalar value in the given row. More...
 
virtual void getuCharV (uInt aRowNr, uChar *aDataPtr)
 
virtual void getShortV (uInt aRowNr, Short *aDataPtr)
 
virtual void getuShortV (uInt aRowNr, uShort *aDataPtr)
 
virtual void getIntV (uInt aRowNr, Int *aDataPtr)
 
virtual void getuIntV (uInt aRowNr, uInt *aDataPtr)
 
virtual void getInt64V (uInt aRowNr, Int64 *aDataPtr)
 
virtual void getfloatV (uInt aRowNr, float *aDataPtr)
 
virtual void getdoubleV (uInt aRowNr, double *aDataPtr)
 
virtual void getComplexV (uInt aRowNr, Complex *aDataPtr)
 
virtual void getDComplexV (uInt aRowNr, DComplex *aDataPtr)
 
virtual void getStringV (uInt aRowNr, String *aDataPtr)
 
virtual void putBoolV (uInt aRowNr, const Bool *aDataPtr)
 Put the scalar value in the given row. More...
 
virtual void putuCharV (uInt aRowNr, const uChar *aDataPtr)
 
virtual void putShortV (uInt aRowNr, const Short *aDataPtr)
 
virtual void putuShortV (uInt aRowNr, const uShort *aDataPtr)
 
virtual void putIntV (uInt aRowNr, const Int *aDataPtr)
 
virtual void putuIntV (uInt aRowNr, const uInt *aDataPtr)
 
virtual void putInt64V (uInt aRowNr, const Int64 *aDataPtr)
 
virtual void putfloatV (uInt aRowNr, const float *aDataPtr)
 
virtual void putdoubleV (uInt aRowNr, const double *aDataPtr)
 
virtual void putComplexV (uInt aRowNr, const Complex *aDataPtr)
 
virtual void putDComplexV (uInt aRowNr, const DComplex *aDataPtr)
 
virtual void putStringV (uInt aRowNr, const String *aDataPtr)
 
virtual void getScalarColumnBoolV (Vector< Bool > *aDataPtr)
 Get the scalar values of the entire column. More...
 
virtual void getScalarColumnuCharV (Vector< uChar > *aDataPtr)
 
virtual void getScalarColumnShortV (Vector< Short > *aDataPtr)
 
virtual void getScalarColumnuShortV (Vector< uShort > *aDataPtr)
 
virtual void getScalarColumnIntV (Vector< Int > *aDataPtr)
 
virtual void getScalarColumnuIntV (Vector< uInt > *aDataPtr)
 
virtual void getScalarColumnInt64V (Vector< Int64 > *aDataPtr)
 
virtual void getScalarColumnfloatV (Vector< float > *aDataPtr)
 
virtual void getScalarColumndoubleV (Vector< double > *aDataPtr)
 
virtual void getScalarColumnComplexV (Vector< Complex > *aDataPtr)
 
virtual void getScalarColumnDComplexV (Vector< DComplex > *aDataPtr)
 
virtual void getScalarColumnStringV (Vector< String > *aDataPtr)
 
virtual void putScalarColumnBoolV (const Vector< Bool > *aDataPtr)
 Put the scalar values of the entire column. More...
 
virtual void putScalarColumnuCharV (const Vector< uChar > *aDataPtr)
 
virtual void putScalarColumnShortV (const Vector< Short > *aDataPtr)
 
virtual void putScalarColumnuShortV (const Vector< uShort > *aDataPtr)
 
virtual void putScalarColumnIntV (const Vector< Int > *aDataPtr)
 
virtual void putScalarColumnuIntV (const Vector< uInt > *aDataPtr)
 
virtual void putScalarColumnInt64V (const Vector< Int64 > *aDataPtr)
 
virtual void putScalarColumnfloatV (const Vector< float > *aDataPtr)
 
virtual void putScalarColumndoubleV (const Vector< double > *aDataPtr)
 
virtual void putScalarColumnComplexV (const Vector< Complex > *aDataPtr)
 
virtual void putScalarColumnDComplexV (const Vector< DComplex > *aDataPtr)
 
virtual void putScalarColumnStringV (const Vector< String > *aDataPtr)
 
virtual void addRow (uInt aNewNrRows, uInt anOldNrRows, Bool doInit)
 Add (NewNrRows-OldNrRows) rows to the Column and initialize the new rows when needed. More...
 
virtual void deleteRow (uInt aRowNr)
 Remove the given row from the data bucket and possibly string bucket. More...
 
uInt getExternalSizeBytes () const
 Get the size of the dataType in bytes!! More...
 
uInt getExternalSizeBits () const
 Get the size of the dataType in bits!! More...
 
uInt getColNr ()
 get the sequence number of this column. More...
 
void setColNr (uInt aColNr)
 set the sequence number of this column. More...
 
void removeColumn ()
 If something special has to be done before removing the Column, as is the case with Strings, it can be done here. More...
 
- Public Member Functions inherited from casacore::StManColumn
 StManColumn (int dataType)
 Default constructor. More...
 
 ~StManColumn ()
 
int dataType () const
 Return the data type of the column. More...
 
Bool canAccessScalarColumn (Bool &reask) const
 By default the storage manager can handle access to a scalar column. More...
 
Bool canAccessScalarColumnCells (Bool &reask) const
 All storage managers can handle access to scalar column cells, because this class contains a default implementation of getScalarColumnCellsV. More...
 
Bool canAccessArrayColumnCells (Bool &reask) const
 All storage managers can handle access to array column cells, because this class contains a default implementation of getArrayColumnCellsV. More...
 
void getScalarColumnV (void *dataPtr)
 Get all scalar values in the column. More...
 
void putScalarColumnV (const void *dataPtr)
 Put all scalar values in the column. More...
 
void getScalarColumnCellsV (const RefRows &rownrs, void *dataPtr)
 Get some scalar values in the column. More...
 
void putScalarColumnCellsV (const RefRows &rownrs, const void *dataPtr)
 Put some scalar values in the column. More...
 
uInt getBlockV (uInt rownr, uInt nrmax, void *dataPtr)
 Get scalars from the given row on with a maximum of nrmax values. More...
 
void putBlockV (uInt rownr, uInt nrmax, const void *dataPtr)
 Put nrmax scalars from the given row on. More...
 
void getArrayV (uInt rownr, void *dataPtr)
 Get the array value in the given row. More...
 
void putArrayV (uInt rownr, const void *dataPtr)
 Put the array value into the given row. More...
 
void getArrayColumnV (void *dataPtr)
 Get all array values in the column. More...
 
void putArrayColumnV (const void *dataPtr)
 Put all array values in the column. More...
 
void getArrayColumnCellsV (const RefRows &rownrs, void *dataPtr)
 Get some array values in the column. More...
 
void putArrayColumnCellsV (const RefRows &rownrs, const void *dataPtr)
 Put some array values in the column. More...
 
void getSliceV (uInt rownr, const Slicer &slicer, void *dataPtr)
 Get a section of the array in the given row. More...
 
void putSliceV (uInt rownr, const Slicer &slicer, const void *dataPtr)
 Put into a section of the array in the given row. More...
 
void getColumnSliceV (const Slicer &slicer, void *dataPtr)
 Get a section of all arrays in the column. More...
 
void putColumnSliceV (const Slicer &slicer, const void *dataPtr)
 Put into a section of all arrays in the column. More...
 
virtual void getColumnSliceCellsV (const RefRows &rownrs, const Slicer &slicer, void *dataPtr)
 Get a section of some arrays in the column. More...
 
virtual void putColumnSliceCellsV (const RefRows &rownrs, const Slicer &slicer, const void *dataPtr)
 Put into a section of some arrays in the column. More...
 
- Public Member Functions inherited from casacore::DataManagerColumn
 DataManagerColumn ()
 Create a column. More...
 
virtual ~DataManagerColumn ()
 Frees up the storage. More...
 
void setIsFixedShape (Bool isFixedShape)
 Set the isFixedShape flag. More...
 
Bool isFixedShape () const
 Is this a fixed shape column? More...
 
virtual String dataTypeId () const
 Get the data type id of the column for dataType==TpOther. More...
 
virtual Bool isWritable () const
 Test if data can be put into this column. More...
 
void setFixedShapeColumn (const IPosition &shape)
 Set the shape of all (fixed-shaped) arrays in the column. More...
 
virtual void setShape (uInt rownr, const IPosition &shape)
 Set the shape of an (variable-shaped) array in the given row. More...
 
virtual void setShapeTiled (uInt rownr, const IPosition &shape, const IPosition &tileShape)
 Set the shape and tile shape of an (variable-shaped) array in the given row. More...
 
virtual Bool isShapeDefined (uInt rownr)
 Is the value shape defined in the given row? By default it returns True. More...
 
virtual IPosition tileShape (uInt rownr)
 Get the tile shape of the item in the given row. More...
 
virtual Bool canChangeShape () const
 Can the data manager handle chaging the shape of an existing array? Default is no. More...
 
virtual Bool canAccessArrayColumn (Bool &reask) const
 Can the column data manager handle access to a scalar column? If not, the caller should access the column by looping through all cells in the column. More...
 
virtual Bool canAccessSlice (Bool &reask) const
 Can the column data manager handle access to a cell slice? If not, the caller should do slicing itself (by accessing the entire array and slicing it). More...
 
virtual Bool canAccessColumnSlice (Bool &reask) const
 Can the column data manager handle access to a column slice? If not, the caller should access the column slice by looping through all cell slices in the column. More...
 
ColumnCachecolumnCache ()
 Get access to the ColumnCache object. More...
 
const ColumnCachecolumnCachePtr () const
 
void get (uInt rownr, Bool *dataPtr)
 Get the scalar value in the given row. More...
 
void get (uInt rownr, uChar *dataPtr)
 
void get (uInt rownr, Short *dataPtr)
 
void get (uInt rownr, uShort *dataPtr)
 
void get (uInt rownr, Int *dataPtr)
 
void get (uInt rownr, uInt *dataPtr)
 
void get (uInt rownr, Int64 *dataPtr)
 
void get (uInt rownr, float *dataPtr)
 
void get (uInt rownr, double *dataPtr)
 
void get (uInt rownr, Complex *dataPtr)
 
void get (uInt rownr, DComplex *dataPtr)
 
void get (uInt rownr, String *dataPtr)
 
void get (uInt rownr, void *dataPtr)
 This function is the get for all non-standard data types. More...
 
void put (uInt rownr, const Bool *dataPtr)
 Put the scalar value into the given row. More...
 
void put (uInt rownr, const uChar *dataPtr)
 
void put (uInt rownr, const Short *dataPtr)
 
void put (uInt rownr, const uShort *dataPtr)
 
void put (uInt rownr, const Int *dataPtr)
 
void put (uInt rownr, const uInt *dataPtr)
 
void put (uInt rownr, const Int64 *dataPtr)
 
void put (uInt rownr, const float *dataPtr)
 
void put (uInt rownr, const double *dataPtr)
 
void put (uInt rownr, const Complex *dataPtr)
 
void put (uInt rownr, const DComplex *dataPtr)
 
void put (uInt rownr, const String *dataPtr)
 
void put (uInt rownr, const void *dataPtr)
 This function is the put for all non-standard data types. More...
 
void throwGet () const
 Throw an "invalid operation" exception for the default implementation of get. More...
 
void throwPut () const
 Throw an "invalid operation" exception for the default implementation of put. More...
 
void setColumnName (const String &colName)
 Set the column name. More...
 
const StringcolumnName () const
 Get rhe column name. More...
 

Protected Member Functions

void shiftRows (char *aValue, uInt rowNr, uInt startRow, uInt endRow)
 Shift the rows in the bucket one to the left when removing the given row. More...
 
void getValue (uInt aRowNr)
 Fill the cache with data of the bucket containing the given row. More...
 
ChargetRowValue (Int *data, uInt aRowNr)
 Get the bucketnr, offset, and length of a variable length string. More...
 
void putValue (uInt aRowNr, const void *aValue)
 Put the given value for the row into the correct data bucket. More...
 
void putValueShortString (uInt aRowNr, const void *aValue, const String &string)
 Put the given string for the row into the correct data bucket. More...
 
void getColumnValue (void *anArray, uInt aNrRows)
 Get the values for the entire column. More...
 
void putColumnValue (const void *anArray, uInt aNrRows)
 Put the values from the array in the entire column. More...
 
- Protected Member Functions inherited from casacore::StManColumn
virtual void getScalarColumnCellsBoolV (const RefRows &rownrs, Vector< Bool > *dataPtr)
 Get the scalar values in some cells of the column. More...
 
virtual void getScalarColumnCellsuCharV (const RefRows &rownrs, Vector< uChar > *dataPtr)
 
virtual void getScalarColumnCellsShortV (const RefRows &rownrs, Vector< Short > *dataPtr)
 
virtual void getScalarColumnCellsuShortV (const RefRows &rownrs, Vector< uShort > *dataPtr)
 
virtual void getScalarColumnCellsIntV (const RefRows &rownrs, Vector< Int > *dataPtr)
 
virtual void getScalarColumnCellsuIntV (const RefRows &rownrs, Vector< uInt > *dataPtr)
 
virtual void getScalarColumnCellsInt64V (const RefRows &rownrs, Vector< Int64 > *dataPtr)
 
virtual void getScalarColumnCellsfloatV (const RefRows &rownrs, Vector< float > *dataPtr)
 
virtual void getScalarColumnCellsdoubleV (const RefRows &rownrs, Vector< double > *dataPtr)
 
virtual void getScalarColumnCellsComplexV (const RefRows &rownrs, Vector< Complex > *dataPtr)
 
virtual void getScalarColumnCellsDComplexV (const RefRows &rownrs, Vector< DComplex > *dataPtr)
 
virtual void getScalarColumnCellsStringV (const RefRows &rownrs, Vector< String > *dataPtr)
 
virtual void putScalarColumnCellsBoolV (const RefRows &rownrs, const Vector< Bool > *dataPtr)
 Put the scalar values into some cells of the column. More...
 
virtual void putScalarColumnCellsuCharV (const RefRows &rownrs, const Vector< uChar > *dataPtr)
 
virtual void putScalarColumnCellsShortV (const RefRows &rownrs, const Vector< Short > *dataPtr)
 
virtual void putScalarColumnCellsuShortV (const RefRows &rownrs, const Vector< uShort > *dataPtr)
 
virtual void putScalarColumnCellsIntV (const RefRows &rownrs, const Vector< Int > *dataPtr)
 
virtual void putScalarColumnCellsuIntV (const RefRows &rownrs, const Vector< uInt > *dataPtr)
 
virtual void putScalarColumnCellsInt64V (const RefRows &rownrs, const Vector< Int64 > *dataPtr)
 
virtual void putScalarColumnCellsfloatV (const RefRows &rownrs, const Vector< float > *dataPtr)
 
virtual void putScalarColumnCellsdoubleV (const RefRows &rownrs, const Vector< double > *dataPtr)
 
virtual void putScalarColumnCellsComplexV (const RefRows &rownrs, const Vector< Complex > *dataPtr)
 
virtual void putScalarColumnCellsDComplexV (const RefRows &rownrs, const Vector< DComplex > *dataPtr)
 
virtual void putScalarColumnCellsStringV (const RefRows &rownrs, const Vector< String > *dataPtr)
 
virtual uInt getBlockBoolV (uInt rownr, uInt nrmax, Bool *dataPtr)
 Get scalars from the given row on with a maximum of nrmax values. More...
 
virtual uInt getBlockuCharV (uInt rownr, uInt nrmax, uChar *dataPtr)
 
virtual uInt getBlockShortV (uInt rownr, uInt nrmax, Short *dataPtr)
 
virtual uInt getBlockuShortV (uInt rownr, uInt nrmax, uShort *dataPtr)
 
virtual uInt getBlockIntV (uInt rownr, uInt nrmax, Int *dataPtr)
 
virtual uInt getBlockuIntV (uInt rownr, uInt nrmax, uInt *dataPtr)
 
virtual uInt getBlockInt64V (uInt rownr, uInt nrmax, Int64 *dataPtr)
 
virtual uInt getBlockfloatV (uInt rownr, uInt nrmax, float *dataPtr)
 
virtual uInt getBlockdoubleV (uInt rownr, uInt nrmax, double *dataPtr)
 
virtual uInt getBlockComplexV (uInt rownr, uInt nrmax, Complex *dataPtr)
 
virtual uInt getBlockDComplexV (uInt rownr, uInt nrmax, DComplex *dataPtr)
 
virtual uInt getBlockStringV (uInt rownr, uInt nrmax, String *dataPtr)
 
virtual void putBlockBoolV (uInt rownr, uInt nrmax, const Bool *dataPtr)
 Put nrmax scalars from the given row on. More...
 
virtual void putBlockuCharV (uInt rownr, uInt nrmax, const uChar *dataPtr)
 
virtual void putBlockShortV (uInt rownr, uInt nrmax, const Short *dataPtr)
 
virtual void putBlockuShortV (uInt rownr, uInt nrmax, const uShort *dataPtr)
 
virtual void putBlockIntV (uInt rownr, uInt nrmax, const Int *dataPtr)
 
virtual void putBlockuIntV (uInt rownr, uInt nrmax, const uInt *dataPtr)
 
virtual void putBlockInt64V (uInt rownr, uInt nrmax, const Int64 *dataPtr)
 
virtual void putBlockfloatV (uInt rownr, uInt nrmax, const float *dataPtr)
 
virtual void putBlockdoubleV (uInt rownr, uInt nrmax, const double *dataPtr)
 
virtual void putBlockComplexV (uInt rownr, uInt nrmax, const Complex *dataPtr)
 
virtual void putBlockDComplexV (uInt rownr, uInt nrmax, const DComplex *dataPtr)
 
virtual void putBlockStringV (uInt rownr, uInt nrmax, const String *dataPtr)
 
virtual void getArrayBoolV (uInt rownr, Array< Bool > *dataPtr)
 Get the array value in the given row. More...
 
virtual void getArrayuCharV (uInt rownr, Array< uChar > *dataPtr)
 
virtual void getArrayShortV (uInt rownr, Array< Short > *dataPtr)
 
virtual void getArrayuShortV (uInt rownr, Array< uShort > *dataPtr)
 
virtual void getArrayIntV (uInt rownr, Array< Int > *dataPtr)
 
virtual void getArrayuIntV (uInt rownr, Array< uInt > *dataPtr)
 
virtual void getArrayInt64V (uInt rownr, Array< Int64 > *dataPtr)
 
virtual void getArrayfloatV (uInt rownr, Array< float > *dataPtr)
 
virtual void getArraydoubleV (uInt rownr, Array< double > *dataPtr)
 
virtual void getArrayComplexV (uInt rownr, Array< Complex > *dataPtr)
 
virtual void getArrayDComplexV (uInt rownr, Array< DComplex > *dataPtr)
 
virtual void getArrayStringV (uInt rownr, Array< String > *dataPtr)
 
virtual void putArrayBoolV (uInt rownr, const Array< Bool > *dataPtr)
 Put the array value into the given row. More...
 
virtual void putArrayuCharV (uInt rownr, const Array< uChar > *dataPtr)
 
virtual void putArrayShortV (uInt rownr, const Array< Short > *dataPtr)
 
virtual void putArrayuShortV (uInt rownr, const Array< uShort > *dataPtr)
 
virtual void putArrayIntV (uInt rownr, const Array< Int > *dataPtr)
 
virtual void putArrayuIntV (uInt rownr, const Array< uInt > *dataPtr)
 
virtual void putArrayInt64V (uInt rownr, const Array< Int64 > *dataPtr)
 
virtual void putArrayfloatV (uInt rownr, const Array< float > *dataPtr)
 
virtual void putArraydoubleV (uInt rownr, const Array< double > *dataPtr)
 
virtual void putArrayComplexV (uInt rownr, const Array< Complex > *dataPtr)
 
virtual void putArrayDComplexV (uInt rownr, const Array< DComplex > *dataPtr)
 
virtual void putArrayStringV (uInt rownr, const Array< String > *dataPtr)
 
virtual void getArrayColumnBoolV (Array< Bool > *dataPtr)
 Get the array values in the entire column. More...
 
virtual void getArrayColumnuCharV (Array< uChar > *dataPtr)
 
virtual void getArrayColumnShortV (Array< Short > *dataPtr)
 
virtual void getArrayColumnuShortV (Array< uShort > *dataPtr)
 
virtual void getArrayColumnIntV (Array< Int > *dataPtr)
 
virtual void getArrayColumnuIntV (Array< uInt > *dataPtr)
 
virtual void getArrayColumnInt64V (Array< Int64 > *dataPtr)
 
virtual void getArrayColumnfloatV (Array< float > *dataPtr)
 
virtual void getArrayColumndoubleV (Array< double > *dataPtr)
 
virtual void getArrayColumnComplexV (Array< Complex > *dataPtr)
 
virtual void getArrayColumnDComplexV (Array< DComplex > *dataPtr)
 
virtual void getArrayColumnStringV (Array< String > *dataPtr)
 
virtual void putArrayColumnBoolV (const Array< Bool > *dataPtr)
 Put the array values into the entire column. More...
 
virtual void putArrayColumnuCharV (const Array< uChar > *dataPtr)
 
virtual void putArrayColumnShortV (const Array< Short > *dataPtr)
 
virtual void putArrayColumnuShortV (const Array< uShort > *dataPtr)
 
virtual void putArrayColumnIntV (const Array< Int > *dataPtr)
 
virtual void putArrayColumnuIntV (const Array< uInt > *dataPtr)
 
virtual void putArrayColumnInt64V (const Array< Int64 > *dataPtr)
 
virtual void putArrayColumnfloatV (const Array< float > *dataPtr)
 
virtual void putArrayColumndoubleV (const Array< double > *dataPtr)
 
virtual void putArrayColumnComplexV (const Array< Complex > *dataPtr)
 
virtual void putArrayColumnDComplexV (const Array< DComplex > *dataPtr)
 
virtual void putArrayColumnStringV (const Array< String > *dataPtr)
 
virtual void getArrayColumnCellsBoolV (const RefRows &rownrs, Array< Bool > *dataPtr)
 Get the array values in some cells of the column. More...
 
virtual void getArrayColumnCellsuCharV (const RefRows &rownrs, Array< uChar > *dataPtr)
 
virtual void getArrayColumnCellsShortV (const RefRows &rownrs, Array< Short > *dataPtr)
 
virtual void getArrayColumnCellsuShortV (const RefRows &rownrs, Array< uShort > *dataPtr)
 
virtual void getArrayColumnCellsIntV (const RefRows &rownrs, Array< Int > *dataPtr)
 
virtual void getArrayColumnCellsuIntV (const RefRows &rownrs, Array< uInt > *dataPtr)
 
virtual void getArrayColumnCellsInt64V (const RefRows &rownrs, Array< Int64 > *dataPtr)
 
virtual void getArrayColumnCellsfloatV (const RefRows &rownrs, Array< float > *dataPtr)
 
virtual void getArrayColumnCellsdoubleV (const RefRows &rownrs, Array< double > *dataPtr)
 
virtual void getArrayColumnCellsComplexV (const RefRows &rownrs, Array< Complex > *dataPtr)
 
virtual void getArrayColumnCellsDComplexV (const RefRows &rownrs, Array< DComplex > *dataPtr)
 
virtual void getArrayColumnCellsStringV (const RefRows &rownrs, Array< String > *dataPtr)
 
virtual void putArrayColumnCellsBoolV (const RefRows &rownrs, const Array< Bool > *dataPtr)
 Put the array values into some cells of the column. More...
 
virtual void putArrayColumnCellsuCharV (const RefRows &rownrs, const Array< uChar > *dataPtr)
 
virtual void putArrayColumnCellsShortV (const RefRows &rownrs, const Array< Short > *dataPtr)
 
virtual void putArrayColumnCellsuShortV (const RefRows &rownrs, const Array< uShort > *dataPtr)
 
virtual void putArrayColumnCellsIntV (const RefRows &rownrs, const Array< Int > *dataPtr)
 
virtual void putArrayColumnCellsuIntV (const RefRows &rownrs, const Array< uInt > *dataPtr)
 
virtual void putArrayColumnCellsInt64V (const RefRows &rownrs, const Array< Int64 > *dataPtr)
 
virtual void putArrayColumnCellsfloatV (const RefRows &rownrs, const Array< float > *dataPtr)
 
virtual void putArrayColumnCellsdoubleV (const RefRows &rownrs, const Array< double > *dataPtr)
 
virtual void putArrayColumnCellsComplexV (const RefRows &rownrs, const Array< Complex > *dataPtr)
 
virtual void putArrayColumnCellsDComplexV (const RefRows &rownrs, const Array< DComplex > *dataPtr)
 
virtual void putArrayColumnCellsStringV (const RefRows &rownrs, const Array< String > *dataPtr)
 
virtual void getSliceBoolV (uInt rownr, const Slicer &ns, Array< Bool > *dataPtr)
 Get the array value in the given row. More...
 
virtual void getSliceuCharV (uInt rownr, const Slicer &ns, Array< uChar > *dataPtr)
 
virtual void getSliceShortV (uInt rownr, const Slicer &ns, Array< Short > *dataPtr)
 
virtual void getSliceuShortV (uInt rownr, const Slicer &ns, Array< uShort > *dataPtr)
 
virtual void getSliceIntV (uInt rownr, const Slicer &ns, Array< Int > *dataPtr)
 
virtual void getSliceuIntV (uInt rownr, const Slicer &ns, Array< uInt > *dataPtr)
 
virtual void getSliceInt64V (uInt rownr, const Slicer &ns, Array< Int64 > *dataPtr)
 
virtual void getSlicefloatV (uInt rownr, const Slicer &ns, Array< float > *dataPtr)
 
virtual void getSlicedoubleV (uInt rownr, const Slicer &ns, Array< double > *dataPtr)
 
virtual void getSliceComplexV (uInt rownr, const Slicer &ns, Array< Complex > *dataPtr)
 
virtual void getSliceDComplexV (uInt rownr, const Slicer &ns, Array< DComplex > *dataPtr)
 
virtual void getSliceStringV (uInt rownr, const Slicer &ns, Array< String > *dataPtr)
 
virtual void putSliceBoolV (uInt rownr, const Slicer &ns, const Array< Bool > *dataPtr)
 Put the array value into the given row. More...
 
virtual void putSliceuCharV (uInt rownr, const Slicer &ns, const Array< uChar > *dataPtr)
 
virtual void putSliceShortV (uInt rownr, const Slicer &ns, const Array< Short > *dataPtr)
 
virtual void putSliceuShortV (uInt rownr, const Slicer &ns, const Array< uShort > *dataPtr)
 
virtual void putSliceIntV (uInt rownr, const Slicer &ns, const Array< Int > *dataPtr)
 
virtual void putSliceuIntV (uInt rownr, const Slicer &ns, const Array< uInt > *dataPtr)
 
virtual void putSliceInt64V (uInt rownr, const Slicer &ns, const Array< Int64 > *dataPtr)
 
virtual void putSlicefloatV (uInt rownr, const Slicer &ns, const Array< float > *dataPtr)
 
virtual void putSlicedoubleV (uInt rownr, const Slicer &ns, const Array< double > *dataPtr)
 
virtual void putSliceComplexV (uInt rownr, const Slicer &ns, const Array< Complex > *dataPtr)
 
virtual void putSliceDComplexV (uInt rownr, const Slicer &ns, const Array< DComplex > *dataPtr)
 
virtual void putSliceStringV (uInt rownr, const Slicer &ns, const Array< String > *dataPtr)
 
virtual void getColumnSliceBoolV (const Slicer &ns, Array< Bool > *dataPtr)
 Get the array values in the entire column. More...
 
virtual void getColumnSliceuCharV (const Slicer &ns, Array< uChar > *dataPtr)
 
virtual void getColumnSliceShortV (const Slicer &ns, Array< Short > *dataPtr)
 
virtual void getColumnSliceuShortV (const Slicer &ns, Array< uShort > *dataPtr)
 
virtual void getColumnSliceIntV (const Slicer &ns, Array< Int > *dataPtr)
 
virtual void getColumnSliceuIntV (const Slicer &ns, Array< uInt > *dataPtr)
 
virtual void getColumnSliceInt64V (const Slicer &ns, Array< Int64 > *dataPtr)
 
virtual void getColumnSlicefloatV (const Slicer &ns, Array< float > *dataPtr)
 
virtual void getColumnSlicedoubleV (const Slicer &ns, Array< double > *dataPtr)
 
virtual void getColumnSliceComplexV (const Slicer &ns, Array< Complex > *dataPtr)
 
virtual void getColumnSliceDComplexV (const Slicer &ns, Array< DComplex > *dataPtr)
 
virtual void getColumnSliceStringV (const Slicer &ns, Array< String > *dataPtr)
 
virtual void putColumnSliceBoolV (const Slicer &ns, const Array< Bool > *dataPtr)
 Put the array values into the entire column. More...
 
virtual void putColumnSliceuCharV (const Slicer &ns, const Array< uChar > *dataPtr)
 
virtual void putColumnSliceShortV (const Slicer &ns, const Array< Short > *dataPtr)
 
virtual void putColumnSliceuShortV (const Slicer &ns, const Array< uShort > *dataPtr)
 
virtual void putColumnSliceIntV (const Slicer &ns, const Array< Int > *dataPtr)
 
virtual void putColumnSliceuIntV (const Slicer &ns, const Array< uInt > *dataPtr)
 
virtual void putColumnSliceInt64V (const Slicer &ns, const Array< Int64 > *dataPtr)
 
virtual void putColumnSlicefloatV (const Slicer &ns, const Array< float > *dataPtr)
 
virtual void putColumnSlicedoubleV (const Slicer &ns, const Array< double > *dataPtr)
 
virtual void putColumnSliceComplexV (const Slicer &ns, const Array< Complex > *dataPtr)
 
virtual void putColumnSliceDComplexV (const Slicer &ns, const Array< DComplex > *dataPtr)
 
virtual void putColumnSliceStringV (const Slicer &ns, const Array< String > *dataPtr)
 
virtual void getColumnSliceCellsBoolV (const RefRows &rownrs, const Slicer &ns, Array< Bool > *dataPtr)
 Get the array values in some cells of the column. More...
 
virtual void getColumnSliceCellsuCharV (const RefRows &rownrs, const Slicer &ns, Array< uChar > *dataPtr)
 
virtual void getColumnSliceCellsShortV (const RefRows &rownrs, const Slicer &ns, Array< Short > *dataPtr)
 
virtual void getColumnSliceCellsuShortV (const RefRows &rownrs, const Slicer &ns, Array< uShort > *dataPtr)
 
virtual void getColumnSliceCellsIntV (const RefRows &rownrs, const Slicer &ns, Array< Int > *dataPtr)
 
virtual void getColumnSliceCellsuIntV (const RefRows &rownrs, const Slicer &ns, Array< uInt > *dataPtr)
 
virtual void getColumnSliceCellsInt64V (const RefRows &rownrs, const Slicer &ns, Array< Int64 > *dataPtr)
 
virtual void getColumnSliceCellsfloatV (const RefRows &rownrs, const Slicer &ns, Array< float > *dataPtr)
 
virtual void getColumnSliceCellsdoubleV (const RefRows &rownrs, const Slicer &ns, Array< double > *dataPtr)
 
virtual void getColumnSliceCellsComplexV (const RefRows &rownrs, const Slicer &ns, Array< Complex > *dataPtr)
 
virtual void getColumnSliceCellsDComplexV (const RefRows &rownrs, const Slicer &ns, Array< DComplex > *dataPtr)
 
virtual void getColumnSliceCellsStringV (const RefRows &rownrs, const Slicer &ns, Array< String > *dataPtr)
 
virtual void putColumnSliceCellsBoolV (const RefRows &rownrs, const Slicer &ns, const Array< Bool > *dataPtr)
 Put the array values into some cells of the column. More...
 
virtual void putColumnSliceCellsuCharV (const RefRows &rownrs, const Slicer &ns, const Array< uChar > *dataPtr)
 
virtual void putColumnSliceCellsShortV (const RefRows &rownrs, const Slicer &ns, const Array< Short > *dataPtr)
 
virtual void putColumnSliceCellsuShortV (const RefRows &rownrs, const Slicer &ns, const Array< uShort > *dataPtr)
 
virtual void putColumnSliceCellsIntV (const RefRows &rownrs, const Slicer &ns, const Array< Int > *dataPtr)
 
virtual void putColumnSliceCellsuIntV (const RefRows &rownrs, const Slicer &ns, const Array< uInt > *dataPtr)
 
virtual void putColumnSliceCellsInt64V (const RefRows &rownrs, const Slicer &ns, const Array< Int64 > *dataPtr)
 
virtual void putColumnSliceCellsfloatV (const RefRows &rownrs, const Slicer &ns, const Array< float > *dataPtr)
 
virtual void putColumnSliceCellsdoubleV (const RefRows &rownrs, const Slicer &ns, const Array< double > *dataPtr)
 
virtual void putColumnSliceCellsComplexV (const RefRows &rownrs, const Slicer &ns, const Array< Complex > *dataPtr)
 
virtual void putColumnSliceCellsDComplexV (const RefRows &rownrs, const Slicer &ns, const Array< DComplex > *dataPtr)
 
virtual void putColumnSliceCellsStringV (const RefRows &rownrs, const Slicer &ns, const Array< String > *dataPtr)
 
- Protected Member Functions inherited from casacore::DataManagerColumn
virtual void getOtherV (uInt rownr, void *dataPtr)
 This function is the get for all non-standard data types. More...
 
virtual void putOtherV (uInt rownr, const void *dataPtr)
 This function is the put for all non-standard data types. More...
 

Protected Attributes

SSMBaseitsSSMPtr
 Pointer to the parent storage manager. More...
 
uInt itsExternalSizeBytes
 Length of column cell value in storage format (0 = variable length). More...
 
uInt itsExternalSizeBits
 
uInt itsColNr
 Column sequence number of this column. More...
 
IPosition itsShape
 The shape of the column. More...
 
uInt itsMaxLen
 The maximum length of a 'fixed length' string. More...
 
uInt itsNrElem
 Number of elements in a value for this column. More...
 
uInt itsNrCopy
 Number of values to be copied. More...
 
uInt itsLocalSize
 The sizeof the datatype in local format. More...
 
void * itsData
 The data in local format. More...
 
Conversion::ValueFunctionitsWriteFunc
 Pointer to a convert function for writing. More...
 
Conversion::ValueFunctionitsReadFunc
 Pointer to a convert function for reading. More...
 

Private Member Functions

 SSMColumn (const SSMColumn &)
 Forbid copy constructor. More...
 
SSMColumnoperator= (const SSMColumn &)
 Forbid assignment. More...
 
void init ()
 Initialize part of the object. More...
 
char * getDataPtr ()
 Get the pointer to the cache. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from casacore::StManColumn
static Bool isNativeDataType (int dtype)
 Test if the given data type is supported by storage managers. More...
 

Detailed Description

A Column in the Standard Storage Manager.

Intended use:

Internal

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25
Test programs:
tStandardStMan

Prerequisite

Etymology

SSMColumn represents a Column in the Standard Storage Manager.

Synopsis

SSMColumn is the base class for access to a column stored with the Standard Storage manager. It provides some basic functionality for the derived classes handling direct and indirect arrays.

The main task of SSMColumn is handling the access to a column containing scalars of the various data types. The data is stored in buckets. The classes SSMBase and SSMIndex keep track in which data bucket a given row is stored and at which offset the column starts. Using that information SSMColumn can access its data easily.

Almost all data types have a fixed length and can be handled easily. However, strings are a special case.
If the string is fixed length (which means it has a maximum length), the string is stored directly in the data bucket. If the string is shorter than the maximum length, its length is indicated by a trailing 0.
Variable strings are in principle stored in a special string bucket. The data bucket contains 3 integers telling the bucketnr, offset, and length of the string. However, it the string is short enough (ie. <= 8 characters), the string is stored directly in data bucket using the space for bucketnr and offset.

The class maintains a cache of the data in the bucket last read. This cache is used by the higher level table classes to get faster read access to the data. The cache is not used for strings, because they are stored differently.

Definition at line 99 of file SSMColumn.h.

Constructor & Destructor Documentation

casacore::SSMColumn::SSMColumn ( SSMBase aParent,
int  aDataType,
uInt  aColNr 
)

Create a SSMColumn object with the given parent.

It initializes the various variables. It keeps the pointer to its parent (but does not own it).

virtual casacore::SSMColumn::~SSMColumn ( )
virtual
casacore::SSMColumn::SSMColumn ( const SSMColumn )
private

Forbid copy constructor.

Member Function Documentation

virtual void casacore::SSMColumn::addRow ( uInt  aNewNrRows,
uInt  anOldNrRows,
Bool  doInit 
)
virtual

Add (NewNrRows-OldNrRows) rows to the Column and initialize the new rows when needed.

Reimplemented in casacore::SSMIndColumn.

virtual void casacore::SSMColumn::deleteRow ( uInt  aRowNr)
virtual

Remove the given row from the data bucket and possibly string bucket.

If needed, it also removes it from the cache.

Reimplemented in casacore::SSMIndColumn, and casacore::SSMDirColumn.

virtual void casacore::SSMColumn::doCreate ( uInt  aNrRows)
virtual

Let the object initialize itself for a newly created table.

It is meant for a derived class.

Reimplemented in casacore::SSMIndColumn.

virtual void casacore::SSMColumn::getBoolV ( uInt  aRowNr,
Bool aDataPtr 
)
virtual

Get the scalar value in the given row.

Reimplemented from casacore::DataManagerColumn.

uInt casacore::SSMColumn::getColNr ( )
inline

get the sequence number of this column.

Definition at line 318 of file SSMColumn.h.

References itsColNr.

void casacore::SSMColumn::getColumnValue ( void *  anArray,
uInt  aNrRows 
)
protected

Get the values for the entire column.

The data from all buckets is copied to the array.

virtual void casacore::SSMColumn::getComplexV ( uInt  aRowNr,
Complex *  aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

char * casacore::SSMColumn::getDataPtr ( )
inlineprivate

Get the pointer to the cache.

It is created if not done yet.

Definition at line 310 of file SSMColumn.h.

References casacore::SSMBase::getRowsPerBucket(), itsColNr, itsData, itsLocalSize, and itsSSMPtr.

virtual void casacore::SSMColumn::getDComplexV ( uInt  aRowNr,
DComplex *  aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

virtual void casacore::SSMColumn::getdoubleV ( uInt  aRowNr,
double *  aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

uInt casacore::SSMColumn::getExternalSizeBits ( ) const
inline

Get the size of the dataType in bits!!

Definition at line 305 of file SSMColumn.h.

References itsExternalSizeBits.

uInt casacore::SSMColumn::getExternalSizeBytes ( ) const
inline

Get the size of the dataType in bytes!!

Definition at line 300 of file SSMColumn.h.

References itsExternalSizeBytes.

virtual void casacore::SSMColumn::getFile ( uInt  aNrRows)
virtual

Let the column object initialize itself for an existing table.

Reimplemented in casacore::SSMIndColumn.

virtual void casacore::SSMColumn::getfloatV ( uInt  aRowNr,
float *  aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

virtual void casacore::SSMColumn::getInt64V ( uInt  aRowNr,
Int64 aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

virtual void casacore::SSMColumn::getIntV ( uInt  aRowNr,
Int aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

Char* casacore::SSMColumn::getRowValue ( Int data,
uInt  aRowNr 
)
protected

Get the bucketnr, offset, and length of a variable length string.

data must have 3 Ints to hold the values. It returns a pointer to the data in the bucket, which can be used for the case that the data bucket contains the (short) string.

virtual void casacore::SSMColumn::getScalarColumnBoolV ( Vector< Bool > *  aDataPtr)
virtual

Get the scalar values of the entire column.

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::getScalarColumnComplexV ( Vector< Complex > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::getScalarColumnDComplexV ( Vector< DComplex > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::getScalarColumndoubleV ( Vector< double > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::getScalarColumnfloatV ( Vector< float > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::getScalarColumnInt64V ( Vector< Int64 > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::getScalarColumnIntV ( Vector< Int > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::getScalarColumnShortV ( Vector< Short > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::getScalarColumnStringV ( Vector< String > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::getScalarColumnuCharV ( Vector< uChar > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::getScalarColumnuIntV ( Vector< uInt > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::getScalarColumnuShortV ( Vector< uShort > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::getShortV ( uInt  aRowNr,
Short aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

virtual void casacore::SSMColumn::getStringV ( uInt  aRowNr,
String aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

virtual void casacore::SSMColumn::getuCharV ( uInt  aRowNr,
uChar aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

virtual void casacore::SSMColumn::getuIntV ( uInt  aRowNr,
uInt aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

virtual void casacore::SSMColumn::getuShortV ( uInt  aRowNr,
uShort aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

void casacore::SSMColumn::getValue ( uInt  aRowNr)
protected

Fill the cache with data of the bucket containing the given row.

void casacore::SSMColumn::init ( )
private

Initialize part of the object.

It determines the nr of elements, the function to use to convert from local to file format, etc..

virtual uInt casacore::SSMColumn::ndim ( uInt  aRowNr)
virtual

Get the dimensionality of the item in the given row.

Reimplemented from casacore::DataManagerColumn.

Reimplemented in casacore::SSMIndColumn, and casacore::SSMIndStringColumn.

SSMColumn& casacore::SSMColumn::operator= ( const SSMColumn )
private

Forbid assignment.

virtual void casacore::SSMColumn::putBoolV ( uInt  aRowNr,
const Bool aDataPtr 
)
virtual

Put the scalar value in the given row.

It updates the cache if the row is contained in the cache.

Reimplemented from casacore::DataManagerColumn.

void casacore::SSMColumn::putColumnValue ( const void *  anArray,
uInt  aNrRows 
)
protected

Put the values from the array in the entire column.

Each data bucket is filled with the the appropriate part of the array.

virtual void casacore::SSMColumn::putComplexV ( uInt  aRowNr,
const Complex *  aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

virtual void casacore::SSMColumn::putDComplexV ( uInt  aRowNr,
const DComplex *  aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

virtual void casacore::SSMColumn::putdoubleV ( uInt  aRowNr,
const double *  aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

virtual void casacore::SSMColumn::putfloatV ( uInt  aRowNr,
const float *  aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

virtual void casacore::SSMColumn::putInt64V ( uInt  aRowNr,
const Int64 aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

virtual void casacore::SSMColumn::putIntV ( uInt  aRowNr,
const Int aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

virtual void casacore::SSMColumn::putScalarColumnBoolV ( const Vector< Bool > *  aDataPtr)
virtual

Put the scalar values of the entire column.

It invalidates the cache.

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::putScalarColumnComplexV ( const Vector< Complex > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::putScalarColumnDComplexV ( const Vector< DComplex > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::putScalarColumndoubleV ( const Vector< double > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::putScalarColumnfloatV ( const Vector< float > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::putScalarColumnInt64V ( const Vector< Int64 > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::putScalarColumnIntV ( const Vector< Int > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::putScalarColumnShortV ( const Vector< Short > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::putScalarColumnStringV ( const Vector< String > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::putScalarColumnuCharV ( const Vector< uChar > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::putScalarColumnuIntV ( const Vector< uInt > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::putScalarColumnuShortV ( const Vector< uShort > *  aDataPtr)
virtual

Reimplemented from casacore::StManColumn.

virtual void casacore::SSMColumn::putShortV ( uInt  aRowNr,
const Short aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

virtual void casacore::SSMColumn::putStringV ( uInt  aRowNr,
const String aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

virtual void casacore::SSMColumn::putuCharV ( uInt  aRowNr,
const uChar aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

virtual void casacore::SSMColumn::putuIntV ( uInt  aRowNr,
const uInt aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

virtual void casacore::SSMColumn::putuShortV ( uInt  aRowNr,
const uShort aDataPtr 
)
virtual

Reimplemented from casacore::DataManagerColumn.

void casacore::SSMColumn::putValue ( uInt  aRowNr,
const void *  aValue 
)
protected

Put the given value for the row into the correct data bucket.

void casacore::SSMColumn::putValueShortString ( uInt  aRowNr,
const void *  aValue,
const String string 
)
protected

Put the given string for the row into the correct data bucket.

The argument aValue> must be 3 Ints (for bucketnr, offset, and length). Only the length is actually used.

void casacore::SSMColumn::removeColumn ( )

If something special has to be done before removing the Column, as is the case with Strings, it can be done here.

void casacore::SSMColumn::resync ( uInt  aNrRow)

Resync the storage manager with the new file contents.

It resets the last rownr put.

void casacore::SSMColumn::setColNr ( uInt  aColNr)
inline

set the sequence number of this column.

Definition at line 323 of file SSMColumn.h.

References itsColNr.

virtual void casacore::SSMColumn::setMaxLength ( uInt  maxLength)
virtual

Set the maximum length of a 'fixed length' string.

It is only called (right after the constructor) if the string has a fixed length

Reimplemented from casacore::DataManagerColumn.

Reimplemented in casacore::SSMIndColumn, and casacore::SSMDirColumn.

virtual void casacore::SSMColumn::setShapeColumn ( const IPosition aShape)
virtual

Set the shape of an array in the column.

It is only called (right after the constructor) if the array has a fixed shape.

Reimplemented from casacore::DataManagerColumn.

Reimplemented in casacore::SSMIndColumn.

virtual IPosition casacore::SSMColumn::shape ( uInt  aRowNr)
virtual

Get the shape of the array in the given row.

Reimplemented from casacore::DataManagerColumn.

Reimplemented in casacore::SSMIndColumn, and casacore::SSMIndStringColumn.

void casacore::SSMColumn::shiftRows ( char *  aValue,
uInt  rowNr,
uInt  startRow,
uInt  endRow 
)
protected

Shift the rows in the bucket one to the left when removing the given row.

Member Data Documentation

uInt casacore::SSMColumn::itsColNr
protected

Column sequence number of this column.

Definition at line 263 of file SSMColumn.h.

Referenced by getColNr(), getDataPtr(), and setColNr().

void* casacore::SSMColumn::itsData
protected

The data in local format.

Definition at line 277 of file SSMColumn.h.

Referenced by getDataPtr().

uInt casacore::SSMColumn::itsExternalSizeBits
protected

Definition at line 261 of file SSMColumn.h.

Referenced by getExternalSizeBits().

uInt casacore::SSMColumn::itsExternalSizeBytes
protected

Length of column cell value in storage format (0 = variable length).

Definition at line 260 of file SSMColumn.h.

Referenced by getExternalSizeBytes().

uInt casacore::SSMColumn::itsLocalSize
protected

The sizeof the datatype in local format.

Definition at line 275 of file SSMColumn.h.

Referenced by getDataPtr().

uInt casacore::SSMColumn::itsMaxLen
protected

The maximum length of a 'fixed length' string.

Definition at line 267 of file SSMColumn.h.

uInt casacore::SSMColumn::itsNrCopy
protected

Number of values to be copied.

Normally this is itsNrElem, but for complex types it is 2*itsNrElem. When local format is used, it is the number of bytes.

Definition at line 273 of file SSMColumn.h.

uInt casacore::SSMColumn::itsNrElem
protected

Number of elements in a value for this column.

Definition at line 269 of file SSMColumn.h.

Conversion::ValueFunction* casacore::SSMColumn::itsReadFunc
protected

Pointer to a convert function for reading.

Definition at line 281 of file SSMColumn.h.

IPosition casacore::SSMColumn::itsShape
protected

The shape of the column.

Definition at line 265 of file SSMColumn.h.

SSMBase* casacore::SSMColumn::itsSSMPtr
protected

Pointer to the parent storage manager.

Definition at line 258 of file SSMColumn.h.

Referenced by getDataPtr().

Conversion::ValueFunction* casacore::SSMColumn::itsWriteFunc
protected

Pointer to a convert function for writing.

Definition at line 279 of file SSMColumn.h.


The documentation for this class was generated from the following file: