Class to hold values from field grammar parser. More...
#include <MSStateParse.h>
Public Member Functions | |
MSStateParse () | |
Default constructor. | |
MSStateParse (const MeasurementSet *ms) | |
Associate the ms and the shorthand. | |
const TableExprNode * | selectStateIds (const Vector< Int > &stateIDs) |
Static Public Member Functions | |
static const TableExprNode * | node () |
Get table expression node object. | |
static Vector< Int > | selectedIDs () |
static void | reset () |
static void | cleanupNode () |
static void | cleanupErrorHandler () |
static void | cleanup () |
Static Public Attributes | |
static MSStateParse * | thisMSSIParser |
static MSSelectionErrorHandler * | thisMSSErrorHandler |
static CountedPtr<MSSelectionErrorHandler> thisMSSErrorHandler; | |
Private Attributes | |
const String | colName |
Static Private Attributes | |
static TableExprNode * | node_p |
static Vector< Int > | idList |
Class to hold values from field grammar parser.
Internal
MSStateParse is the class used to parse a field command.
MSStateParse is used by the parser of field sub-expression statements. The parser is written in Bison and Flex in files MSStateGram.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 MSStateParse only contains information about a table used in the table command. Global variables (like a list and a vector) are used in MSStateParse.cc to hold further information.
Global functions are used to operate on the information. The main function is the global function msStateCommand. It executes the given STaQL command and returns the resulting ms. This is, in fact, the only function to be used by a user.
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.
Definition at line 87 of file MSStateParse.h.
casacore::MSStateParse::MSStateParse | ( | ) |
Default constructor.
casacore::MSStateParse::MSStateParse | ( | const MeasurementSet * | ms | ) |
Associate the ms and the shorthand.
static void casacore::MSStateParse::cleanup | ( | ) | [inline, static] |
Definition at line 108 of file MSStateParse.h.
References cleanupErrorHandler(), and cleanupNode().
static void casacore::MSStateParse::cleanupErrorHandler | ( | ) | [inline, static] |
Definition at line 106 of file MSStateParse.h.
References thisMSSErrorHandler.
Referenced by cleanup().
static void casacore::MSStateParse::cleanupNode | ( | ) | [inline, static] |
static const TableExprNode* casacore::MSStateParse::node | ( | ) | [static] |
Get table expression node object.
static void casacore::MSStateParse::reset | ( | ) | [inline, static] |
Definition at line 104 of file MSStateParse.h.
References idList, and casacore::Vector< T >::resize().
Definition at line 103 of file MSStateParse.h.
References idList.
const TableExprNode* casacore::MSStateParse::selectStateIds | ( | const Vector< Int > & | stateIDs | ) |
const String casacore::MSStateParse::colName [private] |
Definition at line 111 of file MSStateParse.h.
Vector<Int> casacore::MSStateParse::idList [static, private] |
Definition at line 112 of file MSStateParse.h.
Referenced by reset(), and selectedIDs().
TableExprNode* casacore::MSStateParse::node_p [static, private] |
Definition at line 110 of file MSStateParse.h.
Referenced by cleanupNode().
static CountedPtr<MSSelectionErrorHandler> thisMSSErrorHandler;
Definition at line 102 of file MSStateParse.h.
Referenced by cleanupErrorHandler().
Definition at line 100 of file MSStateParse.h.