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",
250 virtual void flush();
270 #ifndef CASACORE_NO_AUTO_TEMPLATES 271 #include <casacore/lattices/Lattices/HDF5Lattice.tcc> 272 #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
const CountedPtr< HDF5File > & file() const
Return the current HDF5File object.
virtual void flush()
Flush the data (but do not unlock).
virtual String name(Bool stripPath=False) const
Return the current HDF5 file name.
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.
void checkWritable() const
Check if the file is writable.
A base class for Lattice iterators.
Define the shape and tile shape.
~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 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 ...
const String & arrayName() const
Returns the name of this 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.
CountedPtr< HDF5Group > itsGroup
bool Bool
Define the standard types used by Casacore.
virtual IPosition doNiceCursorShape(uInt maxPixels) const
Get the best cursor shape.
virtual Bool isPersistent() const
A HDF5Lattice is always persistent.
template <class T, class U> class vector;
Specify which elements to extract from an n-dimensional array.
virtual Bool isPaged() const
A HDF5Lattice is always paged to disk.
virtual uInt advisedMaxPixels() const
Returns the maximum recommended number of pixels for a cursor.
IPosition tileShape() const
Returns the current tile shape for this HDF5Lattice.
virtual Bool isWritable() const
Is the HDF5Lattice writable?
virtual Bool ok() const
A function which checks for internal consistency.
String: the storage and methods of handling collections of characters.
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 Lattice< T > * clone() const
Make a copy of the object (reference semantics).
virtual void doPutSlice(const Array< T > &sourceBuffer, const IPosition &where, const IPosition &stride)
Do the actual getting of an array of values.
virtual T getAt(const IPosition &where) const
Return the value of the single element located at the argument IPosition.
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.
this file contains all the compiler specific defines
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
const CountedPtr< HDF5Group > & group() const
Return the current HDF5Group object.
Abstract base class to steer lattice iterators.
virtual IPosition shape() const
Returns the shape of the HDF5Lattice.