28 #ifndef LATTICES_HDF5LATTICE_H
29 #define LATTICES_HDF5LATTICE_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/lattices/Lattices/Lattice.h>
34 #include <casacore/lattices/Lattices/TiledShape.h>
35 #include <casacore/casa/HDF5/HDF5File.h>
36 #include <casacore/casa/HDF5/HDF5Group.h>
37 #include <casacore/casa/HDF5/HDF5DataSet.h>
38 #include <casacore/casa/BasicSL/String.h>
275 #ifndef CASACORE_NO_AUTO_TEMPLATES
276 #include <casacore/lattices/Lattices/HDF5Lattice.tcc>
Referenced counted pointer for constant data.
~HDF5Lattice()
The destructor flushes the HDF5Lattice's contents to disk.
IPosition tileShape() const
Returns the current tile shape for this HDF5Lattice.
HDF5Lattice(const TiledShape &shape, const CountedPtr< HDF5File > &file, const String &arrayName, const String &groupName=String())
Construct a new HDF5Lattice, with the specified shape, in the given HDF5 file.
virtual IPosition shape() const
Returns the shape of the HDF5Lattice.
virtual void setCacheSizeFromPath(const IPosition &sliceShape, const IPosition &windowStart, const IPosition &windowLength, const IPosition &axisPath)
Set the cache size as to "fit" the indicated access pattern.
virtual void putAt(const T &value, const IPosition &where)
Put the value of a single element.
virtual Bool ok() const
A function which checks for internal consistency.
const CountedPtr< HDF5DataSet > & array() const
Returns the current HDF5DataSet object.
const String & arrayName() const
Returns the name of this HDF5Lattice.
HDF5Lattice(const CountedPtr< HDF5File > &file, const String &arrayName, const String &groupName=String())
Reconstruct from a pre-existing HDF5Lattice in the HDF5 file and group with the given name.
CountedPtr< HDF5Group > itsGroup
HDF5Lattice()
The default constructor creates an HDF5Lattice that is useless for just about everything,...
const CountedPtr< HDF5Group > & group() const
Return the current HDF5Group object.
HDF5Lattice(const String &fileName, const String &arrayName="array", const String &groupName=String())
Reconstruct from a pre-existing HDF5Lattice in the HDF5 file and group with the given names.
HDF5Lattice< T > & operator=(const HDF5Lattice< T > &other)
The assignment operator with reference semantics.
virtual void flush()
Flush the data (but do not unlock).
virtual T getAt(const IPosition &where) const
Return the value of the single element located at the argument IPosition.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual getting of an array of values.
virtual Bool isPersistent() const
A HDF5Lattice is always persistent.
void checkWritable() const
Check if the file is writable.
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Get the best cursor shape.
CountedPtr< HDF5File > itsFile
HDF5Lattice(const HDF5Lattice< T > &other)
The copy constructor which uses reference semantics.
CountedPtr< HDF5DataSet > itsDataSet
HDF5Lattice(const TiledShape &shape, const String &filename, const String &arrayName="array", const String &groupName=String())
Construct a new HDF5Lattice with the specified shape.
virtual Lattice< T > * clone() const
Make a copy of the object (reference semantics).
void makeArray(const TiledShape &shape, const String &arrayName, const String &groupName)
Make the Array in the HDF5 file and group.
virtual LatticeIterInterface< T > * makeIter(const LatticeNavigator &navigator, Bool useRef) const
This function is used by the LatticeIterator class to generate an iterator of the correct type for a ...
virtual String name(Bool stripPath=False) const
Return the current HDF5 file name.
void openArray(const String &arrayName, const String &groupName)
Open the Array in the HDF5 file and group.
HDF5Lattice(const TiledShape &shape)
Construct a temporary HDF5Lattice with the specified shape.
const CountedPtr< HDF5File > & file() const
Return the current HDF5File object.
virtual Bool isPaged() const
A HDF5Lattice is always paged to disk.
virtual Bool isWritable() const
Is the HDF5Lattice writable?
virtual uInt advisedMaxPixels() const
Returns the maximum recommended number of pixels for a cursor.
virtual void setCacheSizeInTiles(uInt howManyTiles)
Set the actual cache size for this Array to be big enough for the indicated number of tiles.
String: the storage and methods of handling collections of characters.
this file contains all the compiler specific defines
bool Bool
Define the standard types used by Casacore.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.