casa
5.7.0-16
|
TBAction for when non-array data in the table is edited. More...
#include <TBAction.h>
Public Member Functions | |
TBEditDataAction (TBTableTabs *tt, int row, int col, TBData *newVal) | |
virtual | ~TBEditDataAction () |
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... | |
TBData * | newVal |
New value. More... | |
TBData * | oldVal |
Old value. More... | |
casacore::String | actionName |
This action's name. More... | |
Additional Inherited Members | |
Protected Attributes inherited from casa::TBAction | |
void * | origin |
Pointer to origin object. More... | |
TBAction for when non-array data in the table is edited.
A TBEditDataAction keeps track of the table, row, column, new value, and old value. When this action is performed, the underlying table is updated to the new value at the given row and column; when this action is undone, the underlying table is updated to the old value.
Definition at line 205 of file TBAction.h.
casa::TBEditDataAction::TBEditDataAction | ( | TBTableTabs * | tt, |
int | row, | ||
int | col, | ||
TBData * | newVal | ||
) |
|
virtual |
|
virtual |
Implements TBAction::doAction().
Updates the table by calling TBTable::editData() followed by a TBDataTab::setData() if the edit is successful. Returns the result of the TBTable::editData() call.
Implements casa::TBAction.
|
virtual |
Implements TBAction::isAssociatedWith().
Returns true if o is equal to the TBTableTabs object given in the constructor, false otherwise.
Implements casa::TBAction.
|
virtual |
|
virtual |
Implements TBAction::undoAction().
Updates the table by calling TBTable::editData() followed by a TBDataTab::setData() if the edit is successful. Returns the result of the TBTable::editData() call.
Implements casa::TBAction.
Updates the underlying table with the given value.
|
private |
This action's name.
Definition at line 260 of file TBAction.h.
|
private |
Column of the edit data.
Definition at line 248 of file TBAction.h.
|
private |
New value.
Definition at line 252 of file TBAction.h.
|
private |
Old value.
Definition at line 256 of file TBAction.h.
|
private |
Row of the edit data.
Definition at line 244 of file TBAction.h.
|
private |
Origin table.
Definition at line 240 of file TBAction.h.