casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Attributes
casa::TableParseUpdate Class Reference

Helper class for updates in TableParse. More...

#include <TableParse.h>

List of all members.

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 StringcolumnName () const
 Get the column name.
TableExprNodeIndexindexPtr () const
 Get the pointer to the indices.
const TableExprNodeindexNode () const
 Get the index expression node.
const TableExprNodenode () const
 Get the expression node.
TableExprNodenode ()
void adaptUnit (const Unit &columnUnit)
 Adapt the possible unit of the expression to the possible unit of the column.

Private Attributes

String columnName_p
TableExprNodeIndexindexPtr_p
TableExprNode indexNode_p
TableExprNode node_p

Detailed Description

Helper class for updates in TableParse.

Intended use:

Internal

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25

Prerequisite

Etymology

TableParseUpdate holds a column name, optional indices, and an update expression.

Synopsis

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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]

Get the column name.

Definition at line 665 of file TableParse.h.

References columnName_p.

Get the index expression node.

Definition at line 669 of file TableParse.h.

References indexNode_p.

Get the pointer to the indices.

Definition at line 667 of file TableParse.h.

References indexPtr_p.

const TableExprNode & casa::TableParseUpdate::node ( ) const [inline]

Get the expression node.

Definition at line 671 of file TableParse.h.

References node_p.

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().


Member Data Documentation

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().

Definition at line 296 of file TableParse.h.

Referenced by adaptUnit(), and node().


The documentation for this class was generated from the following file: