#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) |
|
void | skipTo (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) |
|
DataParser::DataParser |
( |
| ) |
|
|
inline |
void DataParser::checkEOD |
( |
| ) |
|
|
inline |
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(), read_ionization_potentials(), and t_ADfA::t_ADfA().
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(), read_ionization_potentials(), ReadAugerData(), ReadTable(), and t_ADfA::t_ADfA().
void DataParser::checkMagic |
( |
long |
i0, |
|
|
long |
i1 |
|
) |
| |
void DataParser::checkMagic |
( |
long |
i0, |
|
|
long |
i1, |
|
|
long |
i2 |
|
) |
| |
void DataParser::checkMagic |
( |
long |
i0, |
|
|
long |
i1, |
|
|
long |
i2, |
|
|
long |
i3 |
|
) |
| |
void DataParser::close |
( |
| ) |
|
|
inline |
NORETURN void DataParser::errorAbort |
( |
const string & |
msg, |
|
|
FILE * |
io = ioQQQ |
|
) |
| |
References cdEXIT, DEBUG_ENTRY, EXIT_FAILURE, fprintf(), ioQQQ, p_filename, p_ls, p_nr, p_pos(), and p_showLocation().
Referenced by atmdat_STOUT_readin(), checkEOD(), checkEOL(), 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(), ParseTable(), skipAfter(), and skipTo().
void DataParser::getKeyword |
( |
string & |
str | ) |
|
|
inline |
bool DataParser::getKeywordOptional |
( |
string & |
str | ) |
|
|
inline |
bool DataParser::getline |
( |
void |
| ) |
|
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(), ParseTable(), read_ionization_potentials(), ReadAugerData(), ReadTable(), and t_ADfA::t_ADfA().
void DataParser::getLineID |
( |
LineID & |
line | ) |
|
References LineID::chLabel, DEBUG_ENTRY, LineID::ELo, errorAbort(), getKeywordOptional(), getQuote(), getToken(), LineID::indHi, LineID::indLo, min(), p_line, p_ls, p_pos(), p_replaceSep(), toupper(), trimTrailingWhiteSpace(), warning(), and LineID::wave.
Referenced by cdGetLineList().
long DataParser::getpos |
( |
| ) |
|
|
inline |
void DataParser::getQuote |
( |
string & |
str | ) |
|
|
inline |
bool DataParser::getQuoteOptional |
( |
string & |
str | ) |
|
|
inline |
template<typename T >
void DataParser::getToken |
( |
T & |
var | ) |
|
|
inline |
References errorAbort(), and getTokenOptional().
Referenced by atmdat_STOUT_readin(), 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(), ParseTable(), read_ionization_potentials(), ReadAugerData(), ReadTable(), and t_ADfA::t_ADfA().
template<typename T >
void DataParser::getToken |
( |
T |
var[], |
|
|
size_t |
n |
|
) |
| |
|
inline |
template<typename T >
bool DataParser::getTokenOptional |
( |
T & |
var | ) |
|
|
inline |
template<typename T >
size_t DataParser::getTokenOptional |
( |
T |
var[], |
|
|
size_t |
n |
|
) |
| |
|
inline |
bool DataParser::isOpen |
( |
| ) |
const |
|
inline |
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().
bool DataParser::lgEOF |
( |
| ) |
const |
|
inline |
bool DataParser::lgEOL |
( |
void |
| ) |
|
|
inline |
bool DataParser::p_blankLine |
( |
| ) |
const |
|
inlineprivate |
void DataParser::p_close |
( |
| ) |
|
|
private |
void DataParser::p_getQuoteOptional |
( |
string & |
str | ) |
|
|
private |
bool DataParser::p_isComment |
( |
| ) |
const |
|
inlineprivate |
bool DataParser::p_isSeparator |
( |
char |
c | ) |
|
|
inlineprivate |
void DataParser::p_newlineProcess |
( |
| ) |
|
|
private |
size_t DataParser::p_pos |
( |
| ) |
|
|
inlineprivate |
void DataParser::p_pos |
( |
size_t |
p | ) |
|
|
inlineprivate |
void DataParser::p_replaceSep |
( |
| ) |
|
|
inlineprivate |
void DataParser::p_showLocation |
( |
size_t |
p, |
|
|
FILE * |
io |
|
) |
| |
|
private |
void DataParser::p_skipWS |
( |
| ) |
|
|
inlineprivate |
void DataParser::rewind |
( |
| ) |
|
|
inline |
void DataParser::setline |
( |
const string & |
line | ) |
|
|
inline |
void DataParser::setpos |
( |
long |
pos | ) |
|
|
inline |
void DataParser::skipAfter |
( |
const string & |
s | ) |
|
|
inline |
void DataParser::skipTo |
( |
size_t |
p | ) |
|
|
inline |
void DataParser::warning |
( |
const string & |
msg, |
|
|
FILE * |
io = ioQQQ |
|
) |
| |
string DataParser::p_filename |
|
private |
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_replaceSep(), p_showLocation(), rewind(), setline(), and skipAfter().
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_replaceSep(), p_skipWS(), rewind(), and warning().
The documentation for this class was generated from the following files: