casa
5.7.0-16
|
Class to hold values from an ms grammar parser. More...
#include <MSParse.h>
Public Member Functions | |
MSParse () | |
Default constructor for List container class. More... | |
MSParse (const MSParse &) | |
Copy constructor (copy semantics). More... | |
~MSParse () | |
MSParse & | operator= (const MSParse &) |
Assignment (copy semantics). More... | |
MSParse (const MeasurementSet *ms, const String &shorthand) | |
Associate the ms and the shorthand. More... | |
MSParse (const MSSelectableTable *ms, const String &shorthand) | |
Associate the ms and the shorthand. More... | |
Bool | test (const String &shortHand) const |
Test if shorthand matches. More... | |
String & | shorthand () |
Get the shorthand. More... | |
MeasurementSet * | ms () |
Get ms object. More... | |
MSSelectableTable * | msInterface () |
Get ms object. More... | |
void | setMS (MeasurementSet *ms) |
void | setMSInterface (MSSelectableTable *msI) |
void | addCondition (TableExprNode &target, TableExprNode &source) |
Static Public Attributes | |
static MeasurementSet * | ms_p |
static MSSelectableTable * | msInterface_p |
Private Attributes | |
String | shorthand_p |
MSSelectableTable * | tempMSInterface_p |
The following exists for the period we make the transition from using MS to using MSSelectableTable. More... | |
Friends | |
AipsIO & | operator<< (AipsIO &, const MSParse &) |
Dummy AipsIO routines; they are needed for the List container. More... | |
AipsIO & | operator>> (AipsIO &, MSParse &) |
Class to hold values from an ms grammar parser.
Internal
MSParse is the class used to parse an ms command.
MSParse is used by the parser of an ms sub-expression statements. The parser is written in Bison and Flex in files MSXXXGram.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 MSParse only contains information about an ms used in the ms command. Global variables (like a list and a vector) are used in MSParse.cc to hold further information.
Global functions are used to operate on the information. The main function is the global function msXXXCommand. 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.
casacore::MSParse::MSParse | ( | ) |
Default constructor for List container class.
casacore::MSParse::MSParse | ( | const MSParse & | ) |
Copy constructor (copy semantics).
casacore::MSParse::~MSParse | ( | ) |
casacore::MSParse::MSParse | ( | const MeasurementSet * | ms, |
const String & | shorthand | ||
) |
Associate the ms and the shorthand.
casacore::MSParse::MSParse | ( | const MSSelectableTable * | ms, |
const String & | shorthand | ||
) |
Associate the ms and the shorthand.
void casacore::MSParse::addCondition | ( | TableExprNode & | target, |
TableExprNode & | source | ||
) |
MeasurementSet* casacore::MSParse::ms | ( | ) |
Get ms object.
Referenced by setMS().
MSSelectableTable* casacore::MSParse::msInterface | ( | ) |
Get ms object.
|
inline |
|
inline |
Definition at line 130 of file MSParse.h.
References msInterface_p.
String& casacore::MSParse::shorthand | ( | ) |
Get the shorthand.
|
static |
|
static |
Definition at line 132 of file MSParse.h.
Referenced by setMSInterface().
|
private |
The following exists for the period we make the transition from using MS to using MSSelectableTable.
Till then, both interfaces have to be supported.