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// # Includes
30#include <casacore/casa/aips.h>
31#include <casacore/casa/BasicSL/String.h>
32#include <casacore/ms/MSSel/MSDataDescIndex.h>
33#include <casacore/ms/MSSel/MSPolIndex.h>
34#include <map>
35
36namespace casacore { // # NAMESPACE CASACORE - BEGIN
37
38// # Forward Declarations
39class MeasurementSet;
40class TableExprNode;
41
42// <summary>
43// Global functions to drive the MSPolnParse class. These, for
44// Polarization selection, need not be global functions, but are
45// done this way to keep the interface uniform for the various
46// selection expressions.
47// </summary>
48
49// <use visibility=local>
50
51// <reviewed reviewer="" date="" tests="">
52// </reviewed>
53
54// <prerequisite>
55// # Classes you should understand before using this one.
56// </prerequisite>
57
58// <synopsis>
59// </synopsis>
60
61// <motivation>
62// </motivation>
63// <todo asof="$DATE:$">
64// # A List of bugs, limitations, extensions or planned refinements.
65// </todo>
66
67// <group name=MSPolnGramFunctions>
69// The top level interface to the parser.
70int msPolnGramParseCommand(const MeasurementSet* ms, const String& command, TableExprNode& node,
71 Vector<Int>& selectedDDIDs, std::map<Int, Vector<Int>>& selectedPolnMap,
72 std::map<Int, Vector<Vector<Int>>>& selectedSetupMap);
73
74// The error handler.
75// It throws an exception with the current token.
76void MSPolnGramerror(char*);
77
78// Give the table expression node.
81
82// Give the current position in the string.
83// This can be used when parse errors occur.
85
86// </group>
87
88} // namespace casacore
89
90#endif
String: the storage and methods of handling collections of characters.
Definition String.h:355
For temporary backward namespace compatibility, use casa as alias for casacore.
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.