casacore
Public Member Functions | Private Attributes | List of all members
casacore::TableParseUpdate Class Reference

Helper class for updates in TableParse. More...

#include <TableParse.h>

Public Member Functions

 TableParseUpdate ()
 
 TableParseUpdate (const String &columnName, const TableExprNode &, Bool checkAggr=True)
 Construct from a column name and expression. More...
 
 TableParseUpdate (const String &columnName, const TableExprNodeSet &indices, const TableExprNode &, const TaQLStyle &)
 Construct from a column name, subscripts, and expression. More...
 
 ~TableParseUpdate ()
 
void setColumnName (const String &name)
 Set the column name. More...
 
const StringcolumnName () const
 Get the column name. More...
 
TableExprNodeIndexindexPtr () const
 Get the pointer to the indices. More...
 
const TableExprNodeindexNode () const
 Get the index expression node. More...
 
const TableExprNodenode () const
 Get the expression node. More...
 
TableExprNodenode ()
 
void adaptUnit (const Unit &columnUnit)
 Adapt the possible unit of the expression to the possible unit of the column. More...
 

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 261 of file TableParse.h.

Constructor & Destructor Documentation

casacore::TableParseUpdate::TableParseUpdate ( )
inline

Definition at line 264 of file TableParse.h.

References casacore::True.

casacore::TableParseUpdate::TableParseUpdate ( const String columnName,
const TableExprNode ,
Bool  checkAggr = True 
)

Construct from a column name and expression.

By default it checks if no aggregate functions are used.

casacore::TableParseUpdate::TableParseUpdate ( const String columnName,
const TableExprNodeSet indices,
const TableExprNode ,
const TaQLStyle  
)

Construct from a column name, subscripts, and expression.

It checks if no aggregate functions are used.

casacore::TableParseUpdate::~TableParseUpdate ( )

Member Function Documentation

void casacore::TableParseUpdate::adaptUnit ( const Unit columnUnit)
inline

Adapt the possible unit of the expression to the possible unit of the column.

Definition at line 831 of file TableParse.h.

const String & casacore::TableParseUpdate::columnName ( ) const
inline

Get the column name.

Definition at line 821 of file TableParse.h.

const TableExprNode & casacore::TableParseUpdate::indexNode ( ) const
inline

Get the index expression node.

Definition at line 825 of file TableParse.h.

TableExprNodeIndex * casacore::TableParseUpdate::indexPtr ( ) const
inline

Get the pointer to the indices.

Definition at line 823 of file TableParse.h.

const TableExprNode & casacore::TableParseUpdate::node ( ) const
inline

Get the expression node.

Definition at line 827 of file TableParse.h.

TableExprNode & casacore::TableParseUpdate::node ( )
inline

Definition at line 829 of file TableParse.h.

void casacore::TableParseUpdate::setColumnName ( const String name)
inline

Set the column name.

Definition at line 819 of file TableParse.h.

Member Data Documentation

String casacore::TableParseUpdate::columnName_p
private

Definition at line 304 of file TableParse.h.

TableExprNode casacore::TableParseUpdate::indexNode_p
private

Definition at line 306 of file TableParse.h.

TableExprNodeIndex* casacore::TableParseUpdate::indexPtr_p
private

Definition at line 305 of file TableParse.h.

TableExprNode casacore::TableParseUpdate::node_p
private

Definition at line 307 of file TableParse.h.


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