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 Member Functions | Static Private Attributes
casa::MSUvDistParse Class Reference

Class to hold values from UV dist grammar parser. More...

#include <MSUvDistParse.h>

Inheritance diagram for casa::MSUvDistParse:
casa::MSParse

List of all members.

Public Member Functions

 MSUvDistParse ()
 Default constructor.
 MSUvDistParse (const MeasurementSet *ms)
 Associate the ms and the shorthand.
const TableExprNodeselectUVRange (const Double &startUV, const Double &endUV, const String &unit, Bool doSlow=False)
 ~MSUvDistParse() {if (node_p) delete node_p;node_p=0x0;};
Vector< BoolselectedUnits ()
Matrix< DoubleselectedUV ()

Static Public Member Functions

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

Static Public Attributes

static MSUvDistParsethisMSUParser

Private Member Functions

void accumulateUVList (const Double r0, const Double r1, const Bool wavelengthUnits, const Bool meterUnits)

Static Private Attributes

static TableExprNodenode_p
static Matrix< DoubleselectedUV_p
static Vector< BoolmeterUnits_p

Detailed Description

Class to hold values from UV dist grammar parser.

Intended use:

Internal

Etymology

MSUvDistParse is the class used to parse a UV dist command.

Synopsis

MSUvDistParse is used by the parser of UV dist sub-expression statements. The parser is written in Bison and Flex in files MSUvDistGram.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 MSUvDistParse only contains information about a table used in the table command. Global variables (like a list and a vector) are used in MSUvDistParse.cc to hold further information.

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

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.

Definition at line 86 of file MSUvDistParse.h.


Constructor & Destructor Documentation

Default constructor.

Associate the ms and the shorthand.


Member Function Documentation

void casa::MSUvDistParse::accumulateUVList ( const Double  r0,
const Double  r1,
const Bool  wavelengthUnits,
const Bool  meterUnits 
) [private]
static void casa::MSUvDistParse::cleanup ( ) [inline, static]

Definition at line 106 of file MSUvDistParse.h.

References node_p.

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

Get table expression node object.

static void casa::MSUvDistParse::reset ( ) [inline, static]

Definition at line 103 of file MSUvDistParse.h.

References meterUnits_p.

Definition at line 104 of file MSUvDistParse.h.

References selectedUV_p.

const TableExprNode* casa::MSUvDistParse::selectUVRange ( const Double startUV,
const Double endUV,
const String unit,
Bool  doSlow = False 
)

~MSUvDistParse() {if (node_p) delete node_p;node_p=0x0;};


Member Data Documentation

Definition at line 115 of file MSUvDistParse.h.

Referenced by reset(), and selectedUnits().

Definition at line 113 of file MSUvDistParse.h.

Referenced by cleanup().

Definition at line 114 of file MSUvDistParse.h.

Referenced by reset(), and selectedUV().

Definition at line 110 of file MSUvDistParse.h.


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