casacore
Loading...
Searching...
No Matches
MSPolnGram.h
Go to the documentation of this file.
1//# MSPolnGram.h: Grammar for ms field sub-expressions
2//# Copyright (C) 1998
3//# Associated Universities, Inc. Washington DC, USA.
4//#
5//# This library is free software; you can redistribute it and/or modify it
6//# under the terms of the GNU Library General Public License as published by
7//# the Free Software Foundation; either version 2 of the License, or (at your
8//# option) any later version.
9//#
10//# This library is distributed in the hope that it will be useful, but WITHOUT
11//# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12//# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13//# License for more details.
14//#
15//# You should have received a copy of the GNU Library General Public License
16//# along with this library; if not, write to the Free Software Foundation,
17//# Inc., 675 Massachusetts Ave, Cambridge, MA 02139, USA.
18//#
19//# Correspondence concerning AIPS++ should be addressed as follows:
20//# Internet email: casa-feedback@nrao.edu.
21//# Postal address: AIPS++ Project Office
22//# National Radio Astronomy Observatory
23//# 520 Edgemont Road
24//# Charlottesville, VA 22903-2475 USA
25
26#ifndef MS_MSPOLNGRAM_H
27#define MS_MSPOLNGRAM_H
28
29
30//# Includes
31#include <casacore/casa/aips.h>
32#include <casacore/casa/BasicSL/String.h>
33#include <casacore/ms/MSSel/MSDataDescIndex.h>
34#include <casacore/ms/MSSel/MSPolIndex.h>
35#include <map>
36
37namespace casacore { //# NAMESPACE CASACORE - BEGIN
38
39 //# Forward Declarations
40 class MeasurementSet;
41 class TableExprNode;
42
43 // <summary>
44 // Global functions to drive the MSPolnParse class. These, for
45 // Polarization selection, need not be global functions, but are
46 // done this way to keep the interface uniform for the various
47 // selection expressions.
48 // </summary>
49
50 // <use visibility=local>
51
52 // <reviewed reviewer="" date="" tests="">
53 // </reviewed>
54
55 // <prerequisite>
56 //# Classes you should understand before using this one.
57 // </prerequisite>
58
59 // <synopsis>
60 // </synopsis>
61
62 // <motivation>
63 // </motivation>
64 // <todo asof="$DATE:$">
65 //# A List of bugs, limitations, extensions or planned refinements.
66 // </todo>
67
68
69 // <group name=MSPolnGramFunctions>
71 // The top level interface to the parser.
72 int msPolnGramParseCommand (const MeasurementSet *ms, const String& command,
73 TableExprNode& node,
74 Vector<Int>& selectedDDIDs,
75 std::map<Int, Vector<Int> >& selectedPolnMap,
76 std::map<Int, Vector<Vector<Int> > >& selectedSetupMap
77 );
78
79 // The error handler.
80 // It throws an exception with the current token.
81 void MSPolnGramerror (char*);
82
83 // Give the table expression node.
86
87 // Give the current position in the string.
88 // This can be used when parse errors occur.
90
91 // </group>
92
93} //# NAMESPACE CASACORE - END
94
95#endif
String: the storage and methods of handling collections of characters.
Definition String.h:223
this file contains all the compiler specific defines
Definition mainpage.dox:28
int Int
Definition aipstype.h:48
const TableExprNode * msPolnGramParseNode()
Give the table expression node.
int & msPolnGramPosition()
Give the current position in the string.
int msPolnGramParseCommand(const MeasurementSet *ms, const String &command, TableExprNode &node, Vector< Int > &selectedDDIDs, std::map< Int, Vector< Int > > &selectedPolnMap, std::map< Int, Vector< Vector< Int > > > &selectedSetupMap)
The top level interface to the parser.