casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes | List of all members
casa::CalLibraryParse Class Reference

Class to hold values from cal library file parser. More...

#include <CalLibraryParse.h>

Public Member Functions

 CalLibraryParse ()
 
 ~CalLibraryParse ()
 
const casacore::Recordrecord ()
 
void reset ()
 
void addStringParam (casacore::String key, casacore::String val)
 
void addBoolParam (casacore::String key, casacore::Bool val)
 
void addMapParam (casacore::String mapname, casacore::Int val)
 
void addMapParam (casacore::Int val)
 
void addMap ()
 
void addCaltable ()
 

Static Public Attributes

static CalLibraryParsethisCalLibParser
 

Private Member Functions

void resetCaltable ()
 
void resetParamRecord ()
 
void addDefaultMap (casacore::String key)
 
void issueKeywordWarning (casacore::String key)
 

Private Attributes

casacore::RecordcallibRec_
 
casacore::Record paramRec_
 
casacore::String caltableName_
 
casacore::String mapName_
 
casacore::Vector< casacore::IntmapList_
 
casacore::Bool calwt_
 

Detailed Description

Class to hold values from cal library file parser.

Motivation

It is necessary to be able to give a cal library filename for instructions for on-the-fly calibration. This can be given in a CLI or set in a GUI file browser.

Intended use:

Internal

Etymology

CalLibraryParse is the class used to parse a cal library.

Synopsis

CalLibraryParse is used by the parser of cal library files. The parser is written in Bison and Flex in files CalLibraryGram.yy and.ll. The statements in there use the routines in this file to complete a casacore::Record with default and specified calibration parameters.

used in the table command. Global variables (like a list and a vector) are used in MSFieldParse.cc to hold further information.

Global functions are used to operate on the information. The main function is the global function callibSetParams. It parses the given calibration library file and completes the given Record. This is, in fact, the only function to be used by a user.

Definition at line 73 of file CalLibraryParse.h.

Constructor & Destructor Documentation

casa::CalLibraryParse::CalLibraryParse ( )
casa::CalLibraryParse::~CalLibraryParse ( )

Member Function Documentation

void casa::CalLibraryParse::addBoolParam ( casacore::String  key,
casacore::Bool  val 
)
void casa::CalLibraryParse::addCaltable ( )
void casa::CalLibraryParse::addDefaultMap ( casacore::String  key)
private
void casa::CalLibraryParse::addMap ( )
void casa::CalLibraryParse::addMapParam ( casacore::String  mapname,
casacore::Int  val 
)
void casa::CalLibraryParse::addMapParam ( casacore::Int  val)
void casa::CalLibraryParse::addStringParam ( casacore::String  key,
casacore::String  val 
)
void casa::CalLibraryParse::issueKeywordWarning ( casacore::String  key)
private
const casacore::Record* casa::CalLibraryParse::record ( )
void casa::CalLibraryParse::reset ( )
void casa::CalLibraryParse::resetCaltable ( )
private
void casa::CalLibraryParse::resetParamRecord ( )
private

Member Data Documentation

casacore::Record* casa::CalLibraryParse::callibRec_
private

Definition at line 96 of file CalLibraryParse.h.

casacore::String casa::CalLibraryParse::caltableName_
private

Definition at line 98 of file CalLibraryParse.h.

casacore::Bool casa::CalLibraryParse::calwt_
private

Definition at line 101 of file CalLibraryParse.h.

casacore::Vector<casacore::Int> casa::CalLibraryParse::mapList_
private

Definition at line 100 of file CalLibraryParse.h.

casacore::String casa::CalLibraryParse::mapName_
private

Definition at line 99 of file CalLibraryParse.h.

casacore::Record casa::CalLibraryParse::paramRec_
private

Definition at line 97 of file CalLibraryParse.h.

CalLibraryParse* casa::CalLibraryParse::thisCalLibParser
static

Definition at line 79 of file CalLibraryParse.h.


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