casa
5.7.0-16
|
TBAction for when array data in the table is edited. More...
#include <TBAction.h>
Public Member Functions | |
TBEditArrayDataAction (TBTableTabs *tt, TBViewArray *array, int row, int col, std::vector< int > coord, TBData *newVal) | |
virtual | ~TBEditArrayDataAction () |
Result | doAction () |
Implements TBAction::doAction(). More... | |
Result | undoAction () |
Implements TBAction::undoAction(). More... | |
casacore::String | name () |
Implements TBAction::name(). More... | |
bool | isAssociatedWith (void *o) |
Implements TBAction::isAssociatedWith(). More... | |
Public Member Functions inherited from casa::TBAction | |
TBAction (void *origin) | |
Constructor that takes a pointer to the origin object. More... | |
virtual | ~TBAction () |
void * | getOrigin () |
Returns a pointer to the origin object. More... | |
Private Member Functions | |
Result | update (TBData *val) |
Updates the underlying table with the given value. More... | |
Private Attributes | |
TBTableTabs * | tt |
Origin table. More... | |
int | row |
Row of the edit data. More... | |
int | col |
Column of the edit data. More... | |
std::vector< int > | coords |
casacore::Array coordinates of the edit data. More... | |
TBData * | newVal |
New value. More... | |
TBData * | oldVal |
Old value. More... | |
casacore::String | actionName |
This action's name. More... | |
bool | oneDim |
Indicates whether the array is one-dimensional or not. More... | |
Additional Inherited Members | |
Protected Attributes inherited from casa::TBAction | |
void * | origin |
Pointer to origin object. More... | |
TBAction for when array data in the table is edited.
A TBEditArrayDataAction keeps track of the table, row, column, array coordinates, new value, and old value. When this action is performed, the underlying table is updated to the new value at the given row, column, and coordinates; when this action is undone, the underlying table is updated to the old value.
Definition at line 280 of file TBAction.h.
casa::TBEditArrayDataAction::TBEditArrayDataAction | ( | TBTableTabs * | tt, |
TBViewArray * | array, | ||
int | row, | ||
int | col, | ||
std::vector< int > | coord, | ||
TBData * | newVal | ||
) |
|
virtual |
|
virtual |
Implements TBAction::doAction().
Updates the table by calling TBTable::editArrayData() followed by a TBViewArray::setDataAt() if the edit is successful. Returns the result of the TBTable::editArrayData().
Implements casa::TBAction.
|
virtual |
Implements TBAction::isAssociatedWith().
Returns true if o is the TBTableTabs object or the TBViewArray object given in the constructor, false otherwise.
Implements casa::TBAction.
|
virtual |
Implements TBAction::name().
Returns "edit [table name]([row],[col])[coords]".
Implements casa::TBAction.
|
virtual |
Implements TBAction::undoAction().
Updates the table by calling TBTable::editArrayData() followed by a TBViewArray::setDataAt() if the edit is successful. Returns the result of the TBTable::editArrayData().
Implements casa::TBAction.
Updates the underlying table with the given value.
|
private |
This action's name.
Definition at line 340 of file TBAction.h.
|
private |
Column of the edit data.
Definition at line 324 of file TBAction.h.
|
private |
casacore::Array coordinates of the edit data.
Definition at line 328 of file TBAction.h.
|
private |
New value.
Definition at line 332 of file TBAction.h.
|
private |
Old value.
Definition at line 336 of file TBAction.h.
|
private |
Indicates whether the array is one-dimensional or not.
Definition at line 344 of file TBAction.h.
|
private |
Row of the edit data.
Definition at line 320 of file TBAction.h.
|
private |
Origin table.
Definition at line 316 of file TBAction.h.