Go to the documentation of this file.
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;
void open(const HDF5Object &, const String &)
Open the data set and check if the external data type matches.
void setCacheSize(uInt nchunks)
Set the cache size (in chunks) for the data set.
void closeDataSet()
Close the dataset (but not other hids).
const IPosition & shape() const
Get the shape.
std::complex< Double > DComplex
HDF5DataSet(const HDF5Object &, const String &, const Complex *)
Non-templated base class for templated Array class.
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const Double *)
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const Float *)
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const DComplex *)
const HDF5Object * itsParent
HDF5DataSet(const HDF5DataSet &that)
Copy constructor cannot be used.
void extend(const IPosition &shape)
Extend the dataset if an axis in the new shape is larger.
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).
const IPosition & tileShape() const
Get the tile (chunk) shape.
void put(const Slicer &, const void *buf)
Put a section of data.
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const HDF5DataType &)
void get(const Slicer &, void *buf)
Get a section of data.
HDF5DataSet(const HDF5Object &, const String &, const Int *)
HDF5DataSet & operator=(const HDF5DataSet &that)
Assignment cannot be used.
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const Int64 *)
HDF5DataSet(const HDF5Object &, const String &, const Int64 *)
virtual void close()
Close the hid if valid.
HDF5DataSet(const HDF5Object &, const String &, const DComplex *)
HDF5DataSet(const HDF5Object &, const String &, const Double *)
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 uChar *)
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const Int *)
A class representing an HDF5 dataspace hid.
this file contains all the compiler specific defines
void get(const Slicer &, ArrayBase &buf, Bool resize=False)
Get a section of data into the array.
HDF5DataSet(const HDF5Object &, const String &, const HDF5DataType &)
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
static DataType getDataType(hid_t, const String &name)
Get the data type for the data set with the given name.
String: the storage and methods of handling collections of characters.
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const Short *)
bool Bool
Define the standard types used by Casacore.
std::complex< Float > Complex
HDF5DataSet(const HDF5Object &, const String &, const Float *)
HDF5HidProperty itsDaplid
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const uChar *)
virtual ~HDF5DataSet()
The destructor closes the HDF5 dataset object.
HDF5DataSet(const HDF5Object &, const String &, const Short *)
HDF5DataSet(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape, const Complex *)
void create(const HDF5Object &, const String &, const IPosition &shape, const IPosition &tileShape)
Create the data set.
void put(const Slicer &, const ArrayBase &buf)
Put a section of data.