casa
$Rev:20696$
|
Helper class for tiled access to an array in a file. More...
#include <TiledFileHelper.h>
Public Member Functions | |
TiledFileHelper (const String &fileName, const IPosition &shape, DataType dtype, const TSMOption &, Bool writable, Bool bigEndian) | |
Create a TiledFileHelper object. | |
~TiledFileHelper () | |
virtual const TableDesc & | getDesc () const |
Get the table description needed for the hypercolumn description. | |
TSMFile * | file () |
virtual String | dataManagerType () const |
Return the class name. | |
virtual DataManager * | clone () const |
These functions are pure virtual, but not needed here. | |
virtual Bool | flush (AipsIO &, Bool) |
Flush and optionally fsync the data. | |
virtual void | create (uInt) |
Let the data manager initialize itself for a new table. | |
virtual TSMCube * | getHypercube (uInt) |
virtual TSMCube * | getHypercube (uInt, IPosition &) |
Get the hypercube in which the given row is stored. | |
virtual void | readHeader (uInt, Bool) |
Let a derived class read the header info. | |
Private Member Functions | |
TiledFileHelper (const TiledFileHelper &) | |
TiledFileHelper & | operator= (const TiledFileHelper &) |
Private Attributes | |
TableDesc | itsDesc |
Helper class for tiled access to an array in a file.
Internal
TiledFileHelper is a helper class for class TiledFileAccess . It sets up a table description containing one array column to make it possible to use the tiled storage manager to access an array in an arbitrary file.
This class was created to be able to read an image in a FITS file.
Definition at line 72 of file TiledFileHelper.h.
casa::TiledFileHelper::TiledFileHelper | ( | const String & | fileName, |
const IPosition & | shape, | ||
DataType | dtype, | ||
const TSMOption & | , | ||
Bool | writable, | ||
Bool | bigEndian | ||
) |
Create a TiledFileHelper object.
Tell if the data is stored in big or little endian canonical format.
casa::TiledFileHelper::TiledFileHelper | ( | const TiledFileHelper & | ) | [private] |
Forbid copy constructor and assignment.
virtual DataManager* casa::TiledFileHelper::clone | ( | ) | const [virtual] |
These functions are pure virtual, but not needed here.
They throw an exception.
Implements casa::DataManager.
virtual void casa::TiledFileHelper::create | ( | uInt | nrrow | ) | [virtual] |
Let the data manager initialize itself for a new table.
Implements casa::DataManager.
virtual String casa::TiledFileHelper::dataManagerType | ( | ) | const [virtual] |
Return the class name.
Implements casa::DataManager.
TSMFile* casa::TiledFileHelper::file | ( | ) | [inline] |
Definition at line 85 of file TiledFileHelper.h.
References casa::TiledStMan::fileSet_p.
virtual Bool casa::TiledFileHelper::flush | ( | AipsIO & | ios, |
Bool | fsync | ||
) | [virtual] |
Flush and optionally fsync the data.
The AipsIO stream represents the main table file and can be used by virtual column engines to store SMALL amounts of data. It returns a True status if it had to flush (i.e. if data have changed).
Implements casa::DataManager.
virtual const TableDesc& casa::TiledFileHelper::getDesc | ( | ) | const [virtual] |
Get the table description needed for the hypercolumn description.
Reimplemented from casa::TiledStMan.
virtual TSMCube* casa::TiledFileHelper::getHypercube | ( | uInt | ) | [virtual] |
Implements casa::TiledStMan.
virtual TSMCube* casa::TiledFileHelper::getHypercube | ( | uInt | rownr, |
IPosition & | position | ||
) | [virtual] |
Get the hypercube in which the given row is stored.
It also returns the position of the row in that hypercube.
Implements casa::TiledStMan.
TiledFileHelper& casa::TiledFileHelper::operator= | ( | const TiledFileHelper & | ) | [private] |
virtual void casa::TiledFileHelper::readHeader | ( | uInt | nrrow, |
Bool | firstTime | ||
) | [virtual] |
Let a derived class read the header info.
This is used by the open and resync function.
Implements casa::TiledStMan.
TableDesc casa::TiledFileHelper::itsDesc [private] |
Definition at line 110 of file TiledFileHelper.h.