28 #ifndef CASA_HDF5RECORD_H
29 #define CASA_HDF5RECORD_H
95 static void remove (
const HDF5Object& parentHid,
133 read (attrId, &value, dtype);
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.
ABSTRACT CLASSES Abstract class for colors Any implementation of color should be able to provide a hexadecimal form of the if a human readable name(i.e."black").In many places throughout the plotter
T * data()
Get a pointer to the beginning of the array.
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...
template <class T, class U> class vector;
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.
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.
#define casacore
<X11/Intrinsic.h> #defines true, false, casacore::Bool, and String.