casa
$Rev:20696$
|
Class to hold values from field grammar parser. More...
#include <MSFieldParse.h>
Public Member Functions | |
MSFieldParse () | |
Default constructor. | |
MSFieldParse (const MeasurementSet *ms) | |
MSFieldParse (const MSField &fieldSubTable, const TableExprNode &columnAsTEN) | |
~MSFieldParse () | |
const TableExprNode * | selectFieldIds (const Vector< Int > &fieldIds) |
MSField & | subTable () |
Static Public Member Functions | |
static const TableExprNode * | node () |
Get table expression node object. | |
static Vector< Int > | selectedIDs () |
static void | reset () |
static void | cleanup () |
Static Public Attributes | |
static MSFieldParse * | thisMSFParser |
Private Attributes | |
const String | colName |
MSField | msFieldSubTable_p |
Static Private Attributes | |
static TableExprNode * | node_p |
static Vector< Int > | idList |
static TableExprNode | columnAsTEN_p |
Class to hold values from field grammar parser.
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.
Internal
MSFieldParse is the class used to parse a field command.
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.
Default constructor.
casa::MSFieldParse::MSFieldParse | ( | const MeasurementSet * | ms | ) |
casa::MSFieldParse::MSFieldParse | ( | const MSField & | fieldSubTable, |
const TableExprNode & | columnAsTEN | ||
) |
casa::MSFieldParse::~MSFieldParse | ( | ) | [inline] |
Definition at line 92 of file MSFieldParse.h.
References columnAsTEN_p.
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.
const TableExprNode* casa::MSFieldParse::selectFieldIds | ( | const Vector< Int > & | fieldIds | ) |
MSField& casa::MSFieldParse::subTable | ( | ) | [inline] |
Definition at line 103 of file MSFieldParse.h.
References msFieldSubTable_p.
const String casa::MSFieldParse::colName [private] |
Definition at line 106 of file MSFieldParse.h.
TableExprNode casa::MSFieldParse::columnAsTEN_p [static, private] |
Definition at line 109 of file MSFieldParse.h.
Referenced by ~MSFieldParse().
Vector<Int> casa::MSFieldParse::idList [static, private] |
Definition at line 107 of file MSFieldParse.h.
Referenced by selectedIDs().
MSField casa::MSFieldParse::msFieldSubTable_p [private] |
Definition at line 108 of file MSFieldParse.h.
Referenced by subTable().
TableExprNode* casa::MSFieldParse::node_p [static, private] |
Definition at line 105 of file MSFieldParse.h.
Referenced by cleanup().
Definition at line 98 of file MSFieldParse.h.