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> 147 const String& arrayName =
"array",
254 virtual void flush();
275 #ifndef CASACORE_NO_AUTO_TEMPLATES 276 #include <casacore/lattices/Lattices/HDF5Lattice.tcc> 277 #endif //# CASACORE_NO_AUTO_TEMPLATES A Vector of integers, for indexing into Array<T> objects.
HDF5Lattice()
The default constructor creates an HDF5Lattice that is useless for just about everything, except that it can be assigned to with the assignment operator.
CountedPtr< HDF5DataSet > itsDataSet
virtual T getAt(const IPosition &where) const
Return the value of the single element located at the argument IPosition.
virtual void flush()
Flush the data (but do not unlock).
const CountedPtr< HDF5Group > & group() const
Return the current HDF5Group object.
IPosition tileShape() const
Returns the current tile shape for this HDF5Lattice.
virtual void setCacheSizeInTiles(uInt howManyTiles)
Set the actual cache size for this Array to be big enough for the indicated number of tiles...
CountedPtr< HDF5File > itsFile
void makeArray(const TiledShape &shape, const String &arrayName, const String &groupName)
Make the Array in the HDF5 file and group.
void openArray(const String &arrayName, const String &groupName)
Open the Array in the HDF5 file and group.
A base class for Lattice iterators.
Define the shape and tile shape.
virtual uInt advisedMaxPixels() const
Returns the maximum recommended number of pixels for a cursor.
~HDF5Lattice()
The destructor flushes the HDF5Lattice's contents to disk.
A templated, abstract base class for array-like objects.
Referenced counted pointer for constant data.
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 String name(Bool stripPath=False) const
Return the current HDF5 file name.
CountedPtr< HDF5Group > itsGroup
const CountedPtr< HDF5DataSet > & array() const
Returns the current HDF5DataSet object.
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Get the best cursor shape.
bool Bool
Define the standard types used by Casacore.
virtual Bool isWritable() const
Is the HDF5Lattice writable?
template <class T, class U> class vector;
virtual Lattice< T > * clone() const
Make a copy of the object (reference semantics).
Specify which elements to extract from an n-dimensional array.
virtual Bool isPersistent() const
A HDF5Lattice is always persistent.
virtual Bool isPaged() const
A HDF5Lattice is always paged to disk.
String: the storage and methods of handling collections of characters.
virtual IPosition shape() const
Returns the shape of the HDF5Lattice.
virtual Bool doGetSlice(Array< T > &buffer, const Slicer §ion)
Do the actual getting of an array of values.
HDF5Lattice< T > & operator=(const HDF5Lattice< T > &other)
The assignment operator with reference semantics.
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 void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual getting of an array of values.
virtual void putAt(const T &value, const IPosition &where)
Put the value of a single element.
A Lattice that is read from or written to an HDF5 dataset.
void checkWritable() const
Check if the file is writable.
const String & arrayName() const
Returns the name of this HDF5Lattice.
this file contains all the compiler specific defines
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
Abstract base class to steer lattice iterators.
virtual Bool ok() const
A function which checks for internal consistency.
const CountedPtr< HDF5File > & file() const
Return the current HDF5File object.