casacore
|
Attribute group for a HDF5 image. More...
#include <ImageAttrGroupHDF5.h>
Public Member Functions | |
ImageAttrGroupHDF5 (Bool isWritable=False) | |
The default constructor creates a null object. More... | |
ImageAttrGroupHDF5 (const HDF5Group &image, const String &attrGroupName, Bool writable) | |
Construct the object for an attribute group in the image. More... | |
virtual | ~ImageAttrGroupHDF5 () |
Bool | isNull () const |
Test if it is a null object. More... | |
void | flush (HDF5Group &image, const String &attrGroupName) |
Flush the attibrutes if needed. More... | |
virtual uInt | nrows () const |
Get the number of rows in the group. More... | |
virtual Bool | hasAttr (const String &attrName) const |
Test if an attribute exists. More... | |
virtual Vector< String > | attrNames () const |
Get all attribute names. More... | |
virtual DataType | dataType (const String &attrName) const |
Get the datatype of a attribute. More... | |
virtual ValueHolder | getData (const String &attrName, uInt rownr) |
Get the data of the given attribute in the given row. More... | |
virtual Record | getDataRow (uInt rownr) |
Get the data of all attributes in a rows. More... | |
virtual Vector< String > | getUnit (const String &attrName) |
Get the possible units of the values (stored as attrName_UNIT). More... | |
virtual Vector< String > | getMeasInfo (const String &attrName) |
Get the possible measure info as type,Ref (stored as attrName_MEASINFO). More... | |
virtual void | putData (const String &attrName, uInt rownr, const ValueHolder &data, const Vector< String > &units=Vector< String >(), const Vector< String > &measInfo=Vector< String >()) |
Put the data of the given attribute. More... | |
![]() | |
ImageAttrGroup () | |
Default constructor. More... | |
virtual | ~ImageAttrGroup () |
Private Member Functions | |
void | checkRows (const String &attrName, uInt rownr) |
Check the rownr and add a row if needed. More... | |
Private Attributes | |
Record | itsRecord |
Bool | itsChanged |
Bool | itsCanWrite |
Attribute group for a HDF5 image.
Public interface
This is the implementation of base class class ImageAttrGroup for an image stored in the HDF5 format. See the base class for more information.
Definition at line 58 of file ImageAttrGroupHDF5.h.
The default constructor creates a null object.
Definition at line 62 of file ImageAttrGroupHDF5.h.
References ~ImageAttrGroupHDF5().
casacore::ImageAttrGroupHDF5::ImageAttrGroupHDF5 | ( | const HDF5Group & | image, |
const String & | attrGroupName, | ||
Bool | writable | ||
) |
Construct the object for an attribute group in the image.
If present, it reads all attributes.
|
virtual |
Referenced by ImageAttrGroupHDF5().
Check the rownr and add a row if needed.
Referenced by isNull().
|
virtual |
Get the datatype of a attribute.
It returns TpOther if the attribute is not defined.
Implements casacore::ImageAttrGroup.
Referenced by isNull().
Flush the attibrutes if needed.
Referenced by isNull().
|
virtual |
Get the data of the given attribute in the given row.
Implements casacore::ImageAttrGroup.
Referenced by isNull().
Get the data of all attributes in a rows.
Implements casacore::ImageAttrGroup.
Referenced by isNull().
Get the possible measure info as type,Ref (stored as attrName_MEASINFO).
An empty vector is returned if the attribute has no MEASINFO.
Implements casacore::ImageAttrGroup.
Referenced by isNull().
Get the possible units of the values (stored as attrName_UNIT).
An empty vector is returned if the attribute has no units.
Implements casacore::ImageAttrGroup.
Referenced by isNull().
|
inline |
Test if it is a null object.
Definition at line 75 of file ImageAttrGroupHDF5.h.
References attrNames(), checkRows(), dataType(), casacore::RecordInterface::empty(), flush(), getData(), getDataRow(), getMeasInfo(), getUnit(), hasAttr(), itsRecord, nrows(), and putData().
|
virtual |
|
virtual |
Put the data of the given attribute.
If the table does not contain data yet, it will be sized to the size of the vector. Otherwise the vector size has to match the table size.
If not empty, the units and MEASINFO will be put as column keywords. The MEASINFO vector must be given as type,Ref.
Implements casacore::ImageAttrGroup.
Referenced by isNull().
|
private |
Definition at line 125 of file ImageAttrGroupHDF5.h.
|
private |
Definition at line 124 of file ImageAttrGroupHDF5.h.
|
private |
Definition at line 123 of file ImageAttrGroupHDF5.h.
Referenced by isNull().