casa
5.7.0-16
|
#include <BLParameterParser.h>
Public Member Functions | |
BLParameterParser (string const file_name) | |
~BLParameterParser () | |
bool | GetFitParameter (size_t const rowid, size_t const polid, BLParameterSet &bl_param) |
Returns false if there is no fitting parameters for the row and pol. More... | |
string | get_file_name () |
Returns the name of file that stores. More... | |
std::vector< size_t > | get_function_types () |
Returns a list of baseline type in the file. More... | |
uint16_t | get_max_order (size_t const bltype) |
Returns the maximum fit order of specified baseline type to construct BaselineContext. More... | |
Protected Types | |
enum | BLParameters { BLParameters_kRow, BLParameters_kPol, BLParameters_kMask, BLParameters_kNumIteration, BLParameters_kClipThreshold, BLParameters_kLineFinder, BLParameters_kLFThreshold, BLParameters_kLeftEdge, BLParameters_kRightEdge, BLParameters_kChanAverageLim, BLParameters_kBaselineType, BLParameters_kOrder, BLParameters_kNPiece, BLParameters_kNWave, BLParameters_kNumElements } |
The enum for columns in fitting parameter file. More... | |
Protected Member Functions | |
void | initialize () |
private: More... | |
void | Clearup () |
void | parse (string const file_name) |
parse a file More... | |
void | SplitLine (string const &linestr, char const separator, std::vector< string > &strvec) |
split string by separator character More... | |
void | ConvertLineToParam (string const &linestr, size_t &rowid, size_t &polid, BLParameterSet ¶mset) |
convert a line of string to a BLParameterSet data structure More... | |
uint16_t | GetTypeOrder (BLParameterSet const &bl_param) |
Returns order or npiece in BLParameterSet structure depending on datatype. More... | |
template<typename DataType > | |
DataType | ConvertString (string const &svalue) |
Protected Attributes | |
string | blparam_file_ |
Member variables. More... | |
std::map< const std::pair < size_t, size_t > , BLParameterSet * > | bl_parameters_ |
std::vector< size_t > | baseline_types_ |
uint16_t | max_orders_ [BaselineType_kNumElements] |
Definition at line 111 of file BLParameterParser.h.
|
protected |
The enum for columns in fitting parameter file.
Definition at line 151 of file BLParameterParser.h.
|
explicit |
casa::BLParameterParser::~BLParameterParser | ( | ) |
|
protected |
|
protected |
convert a line of string to a BLParameterSet data structure
|
inlineprotected |
Definition at line 170 of file BLParameterParser.h.
|
inline |
Returns the name of file that stores.
Definition at line 124 of file BLParameterParser.h.
References blparam_file_.
|
inline |
Returns a list of baseline type in the file.
Definition at line 126 of file BLParameterParser.h.
References baseline_types_.
uint16_t casa::BLParameterParser::get_max_order | ( | size_t const | bltype | ) |
Returns the maximum fit order of specified baseline type to construct BaselineContext.
bool casa::BLParameterParser::GetFitParameter | ( | size_t const | rowid, |
size_t const | polid, | ||
BLParameterSet & | bl_param | ||
) |
Returns false if there is no fitting parameters for the row and pol.
Else, returns a baseline fitting parameter of a certain row and pol IDs in MS
|
protected |
Returns order or npiece in BLParameterSet structure depending on datatype.
|
protected |
private:
|
protected |
parse a file
|
protected |
split string by separator character
|
protected |
Definition at line 148 of file BLParameterParser.h.
Referenced by get_function_types().
|
protected |
Definition at line 147 of file BLParameterParser.h.
|
protected |
Member variables.
Definition at line 146 of file BLParameterParser.h.
Referenced by get_file_name().
|
protected |
Definition at line 149 of file BLParameterParser.h.