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

Class to hold values from field grammar parser. More...

#include <MSFieldParse.h>

Inheritance diagram for casa::MSFieldParse:
casa::MSParse

List of all members.

Public Member Functions

 MSFieldParse ()
 Default constructor.
 MSFieldParse (const MeasurementSet *ms)
 MSFieldParse (const MSField &fieldSubTable, const TableExprNode &columnAsTEN)
 ~MSFieldParse ()
const TableExprNodeselectFieldIds (const Vector< Int > &fieldIds)
MSFieldsubTable ()

Static Public Member Functions

static const TableExprNodenode ()
 Get table expression node object.
static Vector< IntselectedIDs ()
static void reset ()
static void cleanup ()

Static Public Attributes

static MSFieldParsethisMSFParser

Private Attributes

const String colName
MSField msFieldSubTable_p

Static Private Attributes

static TableExprNodenode_p
static Vector< IntidList
static TableExprNode columnAsTEN_p

Detailed Description

Class to hold values from field grammar parser.

Motivation

It is necessary to be able to give a ms command in ASCII. This can be used in a CLI or in the table browser to get a subset of a table or to sort a table.

Intended use:

Internal

Etymology

MSFieldParse is the class used to parse a field command.

Synopsis

MSFieldParse is used by the parser of field sub-expression statements. The parser is written in Bison and Flex in files MSFieldGram.y and .l. The statements in there use the routines in this file to act upon a reduced rule. Since multiple tables can be given (with a shorthand), the table names are stored in a list. The variable names can be qualified by the table name and will be looked up in the appropriate table.

The class MSFieldParse only contains information about a table used in the table command. Global variables (like a list and a vector) are used in MSFieldParse.cc to hold further information.

Global functions are used to operate on the information. The main function is the global function msFieldCommand. It executes the given STaQL command and returns the resulting ms. This is, in fact, the only function to be used by a user.

Definition at line 84 of file MSFieldParse.h.


Constructor & Destructor Documentation

Default constructor.

casa::MSFieldParse::MSFieldParse ( const MSField fieldSubTable,
const TableExprNode columnAsTEN 
)

Definition at line 92 of file MSFieldParse.h.

References columnAsTEN_p.


Member Function Documentation

static void casa::MSFieldParse::cleanup ( ) [inline, static]

Definition at line 101 of file MSFieldParse.h.

References node_p.

static const TableExprNode* casa::MSFieldParse::node ( ) [static]

Get table expression node object.

static void casa::MSFieldParse::reset ( ) [static]
static Vector<Int> casa::MSFieldParse::selectedIDs ( ) [inline, static]

Definition at line 99 of file MSFieldParse.h.

References idList.

Definition at line 103 of file MSFieldParse.h.

References msFieldSubTable_p.


Member Data Documentation

Definition at line 106 of file MSFieldParse.h.

Definition at line 109 of file MSFieldParse.h.

Referenced by ~MSFieldParse().

Definition at line 107 of file MSFieldParse.h.

Referenced by selectedIDs().

Definition at line 108 of file MSFieldParse.h.

Referenced by subTable().

Definition at line 105 of file MSFieldParse.h.

Referenced by cleanup().

Definition at line 98 of file MSFieldParse.h.


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