casa::CalLibraryParse Class Reference

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

#include <CalLibraryParse.h>

List of all members.

Public Member Functions

 CalLibraryParse ()
 ~CalLibraryParse ()
const Record * record ()
void reset ()
void addStringParam (String key, String val)
void addBoolParam (String key, Bool val)
void addMapParam (String mapname, Int val)
void addMapParam (Int val)
void addMap ()
void addCaltable ()

Static Public Attributes

static CalLibraryParsethisCalLibParser

Private Member Functions

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

Private Attributes

Record * callibRec_
Record paramRec_
String caltableName_
String mapName_
Vector< Int > mapList_
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 Record with default and specified calibration parameters.

The class MSFieldParse only contains information about a table 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 69 of file CalLibraryParse.h.


Constructor & Destructor Documentation

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

Member Function Documentation

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

Member Data Documentation

Definition at line 92 of file CalLibraryParse.h.

Definition at line 94 of file CalLibraryParse.h.

Definition at line 97 of file CalLibraryParse.h.

Vector<Int> casa::CalLibraryParse::mapList_ [private]

Definition at line 96 of file CalLibraryParse.h.

Definition at line 95 of file CalLibraryParse.h.

Definition at line 93 of file CalLibraryParse.h.

Definition at line 75 of file CalLibraryParse.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1