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... | |
![]() | |
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.
References ~ImageAttrGroupCasa().
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 |
Referenced by ImageAttrGroupCasa().
|
private |
Add a new column for the given attribute for the data type in the value.
Referenced by isNull().
Check if the size matches the number of rows.
Add rows if the table is still empty.
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().
void casacore::ImageAttrGroupCasa::flush | ( | ) |
Flush the attibrutes if needed.
Referenced by isNull().
|
virtual |
Get the data of all attributes in a rows.
Implements casacore::ImageAttrGroup.
Referenced by isNull().
Get the possible measure info as type and Ref.
An empty vector is returned if the attribute has no MEASINFO.
Implements casacore::ImageAttrGroup.
Referenced by isNull().
Get the possible units of the values.
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 71 of file ImageAttrGroupCasa.h.
References addNewColumn(), attrNames(), checkRows(), dataType(), flush(), getData(), getDataRow(), getMeasInfo(), getUnit(), hasAttr(), casacore::Table::isNull(), itsTable, nrows(), putData(), and casacore::TableProxy::table().
|
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 123 of file ImageAttrGroupCasa.h.
Referenced by isNull().