casacore
|
Attribute group for a CASA image. More...
#include <ImageAttrGroupCasa.h>
Public Member Functions | |
ImageAttrGroupCasa () | |
The default constructor creates a null object. More... | |
ImageAttrGroupCasa (const Table &image, const String &attrGroupName) | |
Construct the object for an attribute group in the image table. More... | |
virtual | ~ImageAttrGroupCasa () |
Bool | isNull () const |
Test if it is a null object. More... | |
void | flush () |
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. 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. More... | |
virtual Vector< String > | getMeasInfo (const String &attrName) |
Get the possible measure info as type and Ref. 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... | |
Public Member Functions inherited from casacore::ImageAttrGroup | |
ImageAttrGroup () | |
Default constructor. More... | |
virtual | ~ImageAttrGroup () |
Private Member Functions | |
void | checkRows (const String &attrName, uInt size) |
Check if the size matches the number of rows. More... | |
Bool | addNewColumn (const String &attrName, const ValueHolder &) |
Add a new column for the given attribute for the data type in the value. More... | |
Private Attributes | |
TableProxy | itsTable |
Attribute group for a CASA image.
Public interface
This is the implementation of base class class ImageAttrGroup for an image stored in the casacore table format. See the base class for more information.
Definition at line 57 of file ImageAttrGroupCasa.h.
|
inline |
The default constructor creates a null object.
Definition at line 61 of file ImageAttrGroupCasa.h.
casacore::ImageAttrGroupCasa::ImageAttrGroupCasa | ( | const Table & | image, |
const String & | attrGroupName | ||
) |
Construct the object for an attribute group in the image table.
Note that the group name is the name of a subtable containing the info.
|
virtual |
|
private |
Add a new column for the given attribute for the data type in the value.
Get all attribute names.
Implements casacore::ImageAttrGroup.
Check if the size matches the number of rows.
Add rows if the table is still empty.
|
virtual |
Get the datatype of a attribute.
It returns TpOther if the attribute is not defined.
Implements casacore::ImageAttrGroup.
void casacore::ImageAttrGroupCasa::flush | ( | ) |
Flush the attibrutes if needed.
|
virtual |
Get the data of the given attribute.
Implements casacore::ImageAttrGroup.
Get the data of all attributes in a rows.
Implements casacore::ImageAttrGroup.
Get the possible measure info as type and Ref.
An empty vector is returned if the attribute has no MEASINFO.
Implements casacore::ImageAttrGroup.
Get the possible units of the values.
An empty vector is returned if the attribute has no units.
Implements casacore::ImageAttrGroup.
Test if an attribute exists.
Implements casacore::ImageAttrGroup.
|
inline |
Test if it is a null object.
Definition at line 71 of file ImageAttrGroupCasa.h.
References casacore::Table::isNull(), itsTable, and casacore::TableProxy::table().
|
virtual |
Get the number of rows in the group.
Implements casacore::ImageAttrGroup.
|
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.
|
private |
Definition at line 123 of file ImageAttrGroupCasa.h.
Referenced by isNull().