#include <parser.h>
|
| DataParser () |
|
| DataParser (const string &name, eod_style es, access_scheme as=AS_DEFAULT) |
|
void | open (const string &name, eod_style es, access_scheme as=AS_DEFAULT) |
|
void | close () |
|
bool | isOpen () const |
|
void | checkMagic (long i0) |
|
void | checkMagic (long i0, long i1) |
|
void | checkMagic (long i0, long i1, long i2) |
|
void | checkMagic (long i0, long i1, long i2, long i3) |
|
bool | getline () |
|
void | setline (const string &line) |
|
template<typename T> |
bool | getTokenOptional (T &var) |
|
template<typename T> |
size_t | getTokenOptional (T var[], size_t n) |
|
template<typename T> |
void | getToken (T &var) |
|
template<typename T> |
void | getToken (T var[], size_t n) |
|
bool | getQuoteOptional (string &str) |
|
void | getQuote (string &str) |
|
bool | getKeywordOptional (string &str) |
|
void | getKeyword (string &str) |
|
void | getLineID (LineID &line, bool lgAtStart=true) |
|
long | getposLine () |
|
void | setposLine (size_t p) |
|
void | skipAfter (const string &s) |
|
bool | lgEOL () |
|
void | checkEOL () |
|
bool | lgEOF () const |
|
bool | lgEODMarker () const |
|
void | checkEOD () |
|
long | getpos () |
|
void | setpos (long pos) |
|
void | rewind () |
|
NORETURN void | errorAbort (const string &msg, FILE *io=ioQQQ) |
|
void | warning (const string &msg, FILE *io=ioQQQ) |
|
|
string | p_filename |
|
fstream | p_io |
| the name of the data file
|
|
eod_style | p_es |
| stream for reading data file
|
|
string | p_line |
| what are the allowed EOD markers?
|
|
size_t | p_nr |
| the current line being read
|
|
istringstream | p_ls |
| number of the line we are parsing
|
|
bool | p_lgEOF |
| stream for reading current line
|
|
◆ DataParser() [1/2]
DataParser::DataParser |
( |
| ) |
|
|
inline |
◆ DataParser() [2/2]
◆ checkEOD()
void DataParser::checkEOD |
( |
| ) |
|
|
inline |
◆ checkEOL()
void DataParser::checkEOL |
( |
| ) |
|
|
inline |
References errorAbort(), and lgEOL().
Referenced by atmdat_STOUT_readin(), cdGetLineList(), database_readin(), GetStandardHeLines(), HeCollidSetup(), HelikeTransProbSetup(), iso_init_energies(), MakeHCTData(), t_hydro_tbl::p_initcs(), t_hydro_tbl::p_initn(), t_hydro_tbl::p_initnl(), t_hydro_tbl::p_initnn(), t_hydro_tbl::p_initwn(), read_ionization_potentials(), and t_ADfA::t_ADfA().
◆ checkMagic() [1/4]
void DataParser::checkMagic |
( |
long | i0 | ) |
|
References DEBUG_ENTRY, errorAbort(), and getToken().
Referenced by atmdat_STOUT_readin(), database_readin(), GetStandardHeLines(), HeCollidSetup(), HelikeTransProbSetup(), InitGrid(), iso_init_energies(), MakeHCTData(), t_hydro_tbl::p_initcs(), t_hydro_tbl::p_initn(), t_hydro_tbl::p_initnl(), t_hydro_tbl::p_initnn(), t_hydro_tbl::p_initwn(), read_ionization_potentials(), ReadAugerData(), ReadTable(), and t_ADfA::t_ADfA().
◆ checkMagic() [2/4]
void DataParser::checkMagic |
( |
long | i0, |
|
|
long | i1 ) |
◆ checkMagic() [3/4]
void DataParser::checkMagic |
( |
long | i0, |
|
|
long | i1, |
|
|
long | i2 ) |
◆ checkMagic() [4/4]
void DataParser::checkMagic |
( |
long | i0, |
|
|
long | i1, |
|
|
long | i2, |
|
|
long | i3 ) |
◆ close()
void DataParser::close |
( |
| ) |
|
|
inline |
◆ errorAbort()
NORETURN void DataParser::errorAbort |
( |
const string & | msg, |
|
|
FILE * | io = ioQQQ ) |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, NORETURN, p_filename, p_ls, p_nr, p_pos(), and p_showLocation().
Referenced by atmdat_STOUT_readin(), checkEOD(), checkEOL(), checkMagic(), checkMagic(), checkMagic(), checkMagic(), database_readin(), getKeyword(), getLineID(), getQuote(), getQuoteOptional(), GetStandardHeLines(), getToken(), getTokenOptional(), HeCollidSetup(), HelikeTransProbSetup(), t_hydro_tbl::p_initcs(), t_hydro_tbl::p_initn(), t_hydro_tbl::p_initnl(), t_hydro_tbl::p_initnn(), t_hydro_tbl::p_initwn(), ParseTable(), setposLine(), and skipAfter().
◆ getKeyword()
void DataParser::getKeyword |
( |
string & | str | ) |
|
|
inline |
◆ getKeywordOptional()
bool DataParser::getKeywordOptional |
( |
string & | str | ) |
|
|
inline |
◆ getline()
bool DataParser::getline |
( |
| ) |
|
References DEBUG_ENTRY, p_io, p_isComment(), p_lgEOF, p_line, p_newlineProcess(), and p_nr.
Referenced by atmdat_STOUT_readin(), cdGetLineList(), checkEOD(), database_readin(), GetStandardHeLines(), HeCollidSetup(), HelikeTransProbSetup(), InitGrid(), input_readvector(), iso_init_energies(), MakeHCTData(), t_hydro_tbl::p_initcs(), t_hydro_tbl::p_initn(), t_hydro_tbl::p_initnl(), t_hydro_tbl::p_initnn(), t_hydro_tbl::p_initwn(), ParseTable(), read_ionization_potentials(), ReadAugerData(), ReadTable(), and t_ADfA::t_ADfA().
◆ getLineID()
void DataParser::getLineID |
( |
LineID & | line, |
|
|
bool | lgAtStart = true ) |
References DEBUG_ENTRY, errorAbort(), getKeywordOptional(), getQuote(), getToken(), matchKey(), min(), p_line, p_ls, p_pos(), p_replaceSep(), toupper(), trimTrailingWhiteSpace(), warning(), WL_AIR, WL_NATIVE, and WL_VACUUM.
Referenced by cdGetLineList(), and Parser::getLineID().
◆ getpos()
long DataParser::getpos |
( |
| ) |
|
|
inline |
◆ getposLine()
long DataParser::getposLine |
( |
| ) |
|
|
inline |
◆ getQuote()
void DataParser::getQuote |
( |
string & | str | ) |
|
|
inline |
◆ getQuoteOptional()
bool DataParser::getQuoteOptional |
( |
string & | str | ) |
|
|
inline |
◆ getToken() [1/2]
template<typename T>
void DataParser::getToken |
( |
T & | var | ) |
|
|
inline |
References errorAbort(), and getTokenOptional().
Referenced by atmdat_STOUT_readin(), checkMagic(), checkMagic(), checkMagic(), checkMagic(), database_readin(), getHexDouble(), getLineID(), GetStandardHeLines(), getToken(), HeCollidSetup(), HelikeTransProbSetup(), InitGrid(), iso_init_energies(), MakeHCTData(), t_hydro_tbl::p_initcs(), t_hydro_tbl::p_initn(), t_hydro_tbl::p_initnl(), t_hydro_tbl::p_initnn(), t_hydro_tbl::p_initwn(), ParseTable(), read_ionization_potentials(), ReadAugerData(), ReadTable(), and t_ADfA::t_ADfA().
◆ getToken() [2/2]
template<typename T>
void DataParser::getToken |
( |
T | var[], |
|
|
size_t | n ) |
|
inline |
◆ getTokenOptional() [1/2]
template<typename T>
bool DataParser::getTokenOptional |
( |
T & | var | ) |
|
|
inline |
◆ getTokenOptional() [2/2]
template<typename T>
size_t DataParser::getTokenOptional |
( |
T | var[], |
|
|
size_t | n ) |
|
inline |
◆ isOpen()
bool DataParser::isOpen |
( |
| ) |
const |
|
inline |
◆ lgEODMarker()
bool DataParser::lgEODMarker |
( |
| ) |
const |
References DEBUG_ENTRY, ES_NONE, ES_STARS_AND_BLANKS, ES_STARS_ONLY, p_blankLine(), p_es, p_line, and TotalInsanity().
Referenced by atmdat_STOUT_readin(), cdGetLineList(), checkEOD(), and ParseTable().
◆ lgEOF()
bool DataParser::lgEOF |
( |
| ) |
const |
|
inline |
◆ lgEOL()
bool DataParser::lgEOL |
( |
| ) |
|
|
inline |
◆ open()
◆ p_blankLine()
bool DataParser::p_blankLine |
( |
| ) |
const |
|
inlineprivate |
◆ p_close()
void DataParser::p_close |
( |
| ) |
|
|
private |
◆ p_getQuoteOptional()
void DataParser::p_getQuoteOptional |
( |
string & | str | ) |
|
|
private |
◆ p_isComment()
bool DataParser::p_isComment |
( |
| ) |
const |
|
inlineprivate |
◆ p_isSeparator()
bool DataParser::p_isSeparator |
( |
char | c | ) |
|
|
inlineprivate |
◆ p_newlineProcess()
void DataParser::p_newlineProcess |
( |
| ) |
|
|
private |
◆ p_open()
◆ p_pos() [1/2]
size_t DataParser::p_pos |
( |
| ) |
|
|
inlineprivate |
◆ p_pos() [2/2]
void DataParser::p_pos |
( |
size_t | p | ) |
|
|
inlineprivate |
◆ p_replaceSep()
void DataParser::p_replaceSep |
( |
| ) |
|
|
inlineprivate |
◆ p_showLocation()
void DataParser::p_showLocation |
( |
size_t | p, |
|
|
FILE * | io ) |
|
private |
◆ p_skipWS()
void DataParser::p_skipWS |
( |
| ) |
|
|
inlineprivate |
◆ rewind()
void DataParser::rewind |
( |
| ) |
|
|
inline |
◆ setline()
void DataParser::setline |
( |
const string & | line | ) |
|
|
inline |
◆ setpos()
void DataParser::setpos |
( |
long | pos | ) |
|
|
inline |
◆ setposLine()
void DataParser::setposLine |
( |
size_t | p | ) |
|
|
inline |
◆ skipAfter()
void DataParser::skipAfter |
( |
const string & | s | ) |
|
|
inline |
◆ warning()
void DataParser::warning |
( |
const string & | msg, |
|
|
FILE * | io = ioQQQ ) |
◆ p_es
◆ p_filename
string DataParser::p_filename |
|
private |
◆ p_io
◆ p_lgEOF
◆ p_line
string DataParser::p_line |
|
private |
what are the allowed EOD markers?
Referenced by getline(), getLineID(), getTokenOptional(), lgEODMarker(), p_blankLine(), p_close(), p_isComment(), p_newlineProcess(), p_pos(), p_pos(), p_replaceSep(), p_showLocation(), rewind(), setline(), and skipAfter().
◆ p_ls
istringstream DataParser::p_ls |
|
private |
number of the line we are parsing
Referenced by errorAbort(), getLineID(), getQuoteOptional(), getTokenOptional(), lgEOL(), p_close(), p_getQuoteOptional(), p_newlineProcess(), p_pos(), p_pos(), p_replaceSep(), p_skipWS(), rewind(), and warning().
◆ p_nr
The documentation for this class was generated from the following files: