casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CalLibraryParse.h
Go to the documentation of this file.
1 //# CalLibraryParse.h: Class to hold results from cal library parser
2 //# Copyright (C) 1994,1995,1997,1998,1999,2000,2001,2003
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: aips2-request@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 
27 #ifndef CALLIB_CALLIBRARYPARSE_H
28 #define CALLIB_CALLIBRARYPARSE_H
29 
30 #include <casacore/casa/aips.h>
33 
34 namespace casacore{
35 
36 // The class MSFieldParse only contains information about a table
37 }
38 
39 namespace casa {
40 
41 // <motivation>
42 // It is necessary to be able to give a cal library filename for
43 // instructions for on-the-fly calibration.
44 // This can be given in a CLI or set in a GUI file browser.
45 // </motivation>
46 
47 // <summary>
48 // Class to hold values from cal library file parser
49 // </summary>
50 
51 // <use visibility=local>
52 
53 // <etymology>
54 // CalLibraryParse is the class used to parse a cal library.
55 // </etymology>
56 
57 // <synopsis>
58 // CalLibraryParse is used by the parser of cal library files.
59 // The parser is written in Bison and Flex in files CalLibraryGram.yy and .ll.
60 // The statements in there use the routines in this file to complete
61 // a casacore::Record with default and specified calibration parameters.
62 //
63 // used in the table command. Global variables (like a list and a vector)
64 // are used in MSFieldParse.cc to hold further information.
65 //
66 // Global functions are used to operate on the information.
67 // The main function is the global function callibSetParams.
68 // It parses the given calibration library file and completes
69 // the given Record. This is, in fact, the only function to
70 // be used by a user.
71 // </synopsis>
72 
74 {
75  public:
78 
80  const casacore::Record* record();
81 
82  void reset();
85  void addMapParam(casacore::String mapname, casacore::Int val);
86  void addMapParam(casacore::Int val);
87  void addMap();
88  void addCaltable();
89 
90  private:
91  void resetCaltable();
92  void resetParamRecord();
95 
96  casacore::Record* callibRec_; // holds (entire) cal library parsing results
102 };
103 
104 }
105 
106 #endif
Class to hold values from cal library file parser.
int Int
Definition: aipstype.h:50
const casacore::Record * record()
casacore::Record * callibRec_
casacore::Record paramRec_
casacore::Vector< casacore::Int > mapList_
casacore::String caltableName_
static CalLibraryParse * thisCalLibParser
void addStringParam(casacore::String key, casacore::String val)
casacore::String mapName_
A hierarchical collection of named fields of various types.
Definition: Record.h:180
bool Bool
Define the standard types used by Casacore.
Definition: aipstype.h:42
void addBoolParam(casacore::String key, casacore::Bool val)
void addMapParam(casacore::String mapname, casacore::Int val)
void issueKeywordWarning(casacore::String key)
void addDefaultMap(casacore::String key)
String: the storage and methods of handling collections of characters.
Definition: String.h:223
#define casacore
&lt;X11/Intrinsic.h&gt; #defines true, false, casacore::Bool, and String.
Definition: X11Intrinsic.h:42