28 #ifndef CASA_HDF5RECORD_H
29 #define CASA_HDF5RECORD_H
95 static void remove (
const HDF5Object& parentHid,
107 static void readScalar (hid_t attrId, hid_t dtid,
133 read (attrId, &value, dtype);
150 static void read (hid_t attrId,
void*
value,
177 Int rank, DataType dtype);
A Vector of integers, for indexing into Array<T> objects.
static Record doReadRecord(hid_t parentHid)
Read the (possibly nested) record values from the given group hid.
A class representing an HDF5 data type.
A class to write/read a record into HDF5.
static void readSca(hid_t attrId, const String &name, RecordInterface &rec)
Read a field containing a scalar of fixed length.
static void readScalar(hid_t attrId, hid_t dtid, const String &name, RecordInterface &rec)
Read a scalar value and add it to the record.
static void readArray(hid_t attrId, hid_t dtid, const IPosition &, const String &name, RecordInterface &rec)
Read an array value and add it to the record.
static void writeArr(hid_t parentHid, const String &name, const RecordInterface &rec, Int i)
Write a field containing an array of fixed length elements.
static void writeArrString(hid_t parentHid, const String &name, const Array< String > &value)
Write an array of strings as attribute.
static void readArr(hid_t attrId, const IPosition &shape, const String &name, RecordInterface &rec)
Read a field containing an array of fixed length elements.
static Record readRecord(const HDF5Object &parentHid, const String &groupName)
Read a record from the attributes of the given group.
static void readEmptyArray(hid_t attrId, const String &name, RecordInterface &rec)
Read a field containing an empty array.
static void read(hid_t attrId, void *value, const HDF5DataType &dtype)
Read fixed length values from an attribute (scalar and array).
A hierarchical collection of named fields of various types.
static void writeRecord(const HDF5Object &parentHid, const String &recordName, const RecordInterface &rec)
Write the record as attributes of a group of the given parent.
TableExprNode shape(const TableExprNode &array)
Function operating on any scalar or array resulting in a Double array containing the shape...
static void readScaString(hid_t attrId, Int sz, const String &name, RecordInterface &rec)
Read a scalar string from an attribute and add it to the record.
An abstract base class representing an HDF5 object.
static void doWriteRecord(const HDF5Object &groupHid, const RecordInterface &rec)
Write the (possibly nested) record values into the given group hid.
void get(const RecordFieldId &, Bool &value) const
Get the value of the given field.
static void writeScalar(hid_t parentHid, const String &name, const void *value, const HDF5DataType &dtype)
Write a fixed length scalar value as attribute.
static void writeSca(hid_t parentHid, const String &name, const RecordInterface &rec, Int i)
Write a field containing a fixed length scalar value.
static void readArrString(hid_t attrId, const IPosition &, const String &name, RecordInterface &rec)
Read a array of strings from an atrribute and add it to the record.
String: the storage and methods of handling collections of characters.
static void writeEmptyArray(hid_t groupHid, const String &name, Int rank, DataType dtype)
Write a field containing an empty array.
Abstract base class for Record classes.
void define(const RecordFieldId &, Bool value)
Define a value for the given field.
static void writeArray(hid_t parentHid, const String &name, const void *value, const IPosition &shape, const HDF5DataType &dtype)
Write an array of fixed length values as attribute.
T * data()
Get a pointer to the beginning of the array.
LatticeExprNode value(const LatticeExprNode &expr)
This function returns the value of the expression without a mask.
static void writeScaString(hid_t parentHid, const String &name, const String &value)
Write a scalar string as attribute.
const IPosition & shape() const
The length of each axis.