The class TiledDataStManAccessor gives the user the means to access a TiledDataStMan object and to call the functions mentioned above. It can only be constructed for a table opened for read/write (because the functions in it need write access).
// Open a table for write.
Table table ("someName", Table::Update);
// Get access to the tiled data storage manager with name UVdata.
TiledDataStManAccessor accessor (Table, "UVdata");
// Add a hypercube to it (requires addition of rows).
// Define the values of the ID and coordinate columns.
// (The coordinate vectors have to be filled in one way or another).
Vector<double> timeVector(70);
Vector<double> baselineVector(60);
Vector<double> freqVector(50);
Vector<double> polVector(4);
Record values;
values.define ("ID", 4); // ID=4
values.define ("time", timeVector);
values.define ("baseline", baselineVector);
values.define ("freq", freqVector);
values.define ("pol", polVector);
table.addRow (4200);
accessor.addHypercube (IPosition(4,4,50,60,70), // cube shape
IPosition(4,4,5,6,7), // tile shape
values); // id/coord values
Copy constructor (reference semantics).
Assignment (reference semantics).
Add a hypercube. The possible coordinate- and id-values have to be given in the record (where the field names should be equal to the coordinate and id column names).
Extend the hypercube with the given number of elements in the last dimension. The record should contain the id values (to get the correct hypercube) and coordinate values for the elements added.