28 #ifndef CASA_HDF5DATASET_H
29 #define CASA_HDF5DATASET_H
32 #include <casacore/casa/aips.h>
33 #include <casacore/casa/HDF5/HDF5Object.h>
34 #include <casacore/casa/HDF5/HDF5HidMeta.h>
35 #include <casacore/casa/HDF5/HDF5DataType.h>
36 #include <casacore/casa/Arrays/Slicer.h>
37 #include <casacore/casa/BasicSL/String.h>
38 #include <casacore/casa/Utilities/DataType.h>
44 template<
typename T>
class Block;
Non-templated base class for templated Array class.
HDF5DataSet(const HDF5Object &, const String &, const Int64 *)
HDF5DataSet(const HDF5Object &, const String &, const Double *)
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const DComplex *)
void closeDataSet()
Close the dataset (but not other hids).
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const HDF5DataType &)
void put(const Slicer &, const void *buf)
Put a section of data.
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const Bool *)
Create an HDF5 data set in the given hid (file or group).
void get(const Slicer &, void *buf)
Get a section of data.
HDF5DataSet(const HDF5DataSet &that)
Copy constructor cannot be used.
HDF5DataSet(const HDF5Object &, const String &, const Complex *)
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const Float *)
void put(const Slicer &, const ArrayBase &buf)
Put a section of data.
HDF5DataSet(const HDF5Object &, const String &, const Bool *)
Open an existing HDF5 data set in the given hid (file or group).
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const Int64 *)
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const Short *)
HDF5DataSet(const HDF5Object &, const String &, const Int *)
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const Complex *)
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const Double *)
HDF5DataSet(const HDF5Object &, const String &, const uChar *)
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const uChar *)
virtual ~HDF5DataSet()
The destructor closes the HDF5 dataset object.
HDF5DataSet & operator=(const HDF5DataSet &that)
Assignment cannot be used.
HDF5HidProperty itsDaplid
HDF5DataSet(const HDF5Object &, const String &, const HDF5DataType &)
const IPosition & tileShape() const
Get the tile (chunk) shape.
HDF5DataSet(const HDF5Object &, const String &, const Float *)
virtual void close()
Close the hid if valid.
void create(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape)
Create the data set.
void extend(const IPosition &shape)
Extend the dataset if an axis in the new shape is larger.
static DataType getDataType(hid_t, const String &name)
Get the data type for the data set with the given name.
HDF5DataSet(const HDF5Object &, const String &, const Short *)
void open(const HDF5Object &, const String &)
Open the data set and check if the external data type matches.
const IPosition & shape() const
Get the shape.
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const Int *)
void get(const Slicer &, ArrayBase &buf, Bool resize=False)
Get a section of data into the array.
HDF5DataSet(const HDF5Object &, const String &, const DComplex *)
void setCacheSize(uInt nchunks)
Set the cache size (in chunks) for the data set.
const HDF5Object * itsParent
A class representing an HDF5 dataspace hid.
String: the storage and methods of handling collections of characters.
std::complex< Float > Complex
std::complex< Double > DComplex
this file contains all the compiler specific defines
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
bool Bool
Define the standard types used by Casacore.