casa
$Rev:20696$
|
Helper class for updates in TableParse. More...
#include <TableParse.h>
Public Member Functions | |
TableParseUpdate () | |
TableParseUpdate (const String &columnName, const TableExprNode &) | |
Construct from a column name and expression. | |
TableParseUpdate (const String &columnName, const TableExprNodeSet &indices, const TableExprNode &, const TaQLStyle &) | |
Construct from a column name, subscripts, and expression. | |
~TableParseUpdate () | |
void | setColumnName (const String &name) |
Set the column name. | |
const String & | columnName () const |
Get the column name. | |
TableExprNodeIndex * | indexPtr () const |
Get the pointer to the indices. | |
const TableExprNode & | indexNode () const |
Get the index expression node. | |
const TableExprNode & | node () const |
Get the expression node. | |
TableExprNode & | node () |
void | adaptUnit (const Unit &columnUnit) |
Adapt the possible unit of the expression to the possible unit of the column. | |
Private Attributes | |
String | columnName_p |
TableExprNodeIndex * | indexPtr_p |
TableExprNode | indexNode_p |
TableExprNode | node_p |
Helper class for updates in TableParse.
Internal
TableParseUpdate holds a column name, optional indices, and an update expression.
A table command is parsed. An object of this class is used to hold the column name, optional indices, and value expression for the UPDATE command.
Definition at line 253 of file TableParse.h.
casa::TableParseUpdate::TableParseUpdate | ( | ) | [inline] |
Definition at line 256 of file TableParse.h.
casa::TableParseUpdate::TableParseUpdate | ( | const String & | columnName, |
const TableExprNode & | |||
) |
Construct from a column name and expression.
casa::TableParseUpdate::TableParseUpdate | ( | const String & | columnName, |
const TableExprNodeSet & | indices, | ||
const TableExprNode & | , | ||
const TaQLStyle & | |||
) |
Construct from a column name, subscripts, and expression.
void casa::TableParseUpdate::adaptUnit | ( | const Unit & | columnUnit | ) | [inline] |
Adapt the possible unit of the expression to the possible unit of the column.
Definition at line 675 of file TableParse.h.
References casa::TableExprNode::adaptUnit(), and node_p.
const String & casa::TableParseUpdate::columnName | ( | ) | const [inline] |
const TableExprNode & casa::TableParseUpdate::indexNode | ( | ) | const [inline] |
TableExprNodeIndex * casa::TableParseUpdate::indexPtr | ( | ) | const [inline] |
const TableExprNode & casa::TableParseUpdate::node | ( | ) | const [inline] |
TableExprNode & casa::TableParseUpdate::node | ( | ) | [inline] |
Definition at line 673 of file TableParse.h.
References node_p.
void casa::TableParseUpdate::setColumnName | ( | const String & | name | ) | [inline] |
Set the column name.
Definition at line 663 of file TableParse.h.
References columnName_p, and casa::name().
String casa::TableParseUpdate::columnName_p [private] |
Definition at line 293 of file TableParse.h.
Referenced by columnName(), and setColumnName().
Definition at line 295 of file TableParse.h.
Referenced by indexNode().
Definition at line 294 of file TableParse.h.
Referenced by indexPtr().
TableExprNode casa::TableParseUpdate::node_p [private] |
Definition at line 296 of file TableParse.h.
Referenced by adaptUnit(), and node().