casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
casa::TiledFileHelper Class Reference

Helper class for tiled access to an array in a file. More...

#include <TiledFileHelper.h>

Inheritance diagram for casa::TiledFileHelper:
casa::TiledStMan casa::DataManager

List of all members.

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 TableDescgetDesc () const
 Get the table description needed for the hypercolumn description.
TSMFilefile ()
virtual String dataManagerType () const
 Return the class name.
virtual DataManagerclone () 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 TSMCubegetHypercube (uInt)
virtual TSMCubegetHypercube (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 &)
 
   

TiledFileHelperoperator= (const TiledFileHelper &)

Private Attributes

TableDesc itsDesc
 
    


Detailed Description

Helper class for tiled access to an array in a file.

Intended use:

Internal

Review Status

Test programs:
tTiledFileAccess

Prerequisite

Synopsis

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.

Motivation

This class was created to be able to read an image in a FITS file.

Definition at line 72 of file TiledFileHelper.h.


Constructor & Destructor Documentation

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.

   

Forbid copy constructor and assignment.


Member Function Documentation

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.

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.

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.


Member Data Documentation

    

Definition at line 110 of file TiledFileHelper.h.


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