18 const char *
nWord(
const char *chKey,
87 string m_card_local( card );
99 const char *
nWord(
const char *chKey)
const;
103 long int GetElem(
void )
const;
130 for (
const char *q=p; *q; ++q)
163 bool GetRange(
const char *chKey,
double *val1,
double *val2)
179 bool found = (i != 0);
183 const long len = strlen(p);
185 for (
long i=0; i<len; ++i)
201 bool isVar(
void)
const;
204 void echo(
void)
const;
205 bool last(
void)
const;
221 void help(FILE *fp)
const;
226 void getPairs(vector<double>& a, vector<double> & b);
227 void readList(vector<string>& list,
const char *chName);
232 template <
typename V>
240 const char *
key(
void)
const
251 template <
typename V>
272 template <
typename T,
typename V>
275 bool lgFound =
false;
276 for (
unsigned long option=0; option < nlist; ++option)
278 if( p.
nWord( list[option].key() ) )
280 list[option]( value );
317 ostringstream& chHeader,
324 ostringstream& chHeader);
328 ostringstream& chHeader);
584 vector< pair<string, count_ptr<Option> > >
p;
void ParseState(Parser &p)
void Parse_Save_Line_RT(Parser &p)
bool nMatch(const char *chKey) const
void ParseHDEN(Parser &p)
void parse_save_average(Parser &p, long int ipPun, ostringstream &chHeader)
bool hasCommand(const char *s2)
void(* OptionParser)(Parser &)
void ParseDont(Parser &p)
vector< pair< string, count_ptr< Option > > > p
void ParsePlot(Parser &p)
void ParseDatabaseISO(long ipISO, Parser &p)
void ParseBlackbody(Parser &p)
void setline(const char *const card)
double getNumberCheckLogLinNegImplLog(const char *chDesc)
void ParseBackgrd(Parser &p)
bool Command(const char *name, OptionParser doOpts)
void operator()(realnum *t) const
void readList(vector< string > &list, const char *chName)
void ParseDatabaseH2(Parser &p)
void ParseExtinguish(Parser &p)
void ParseTable(Parser &p)
long nMatch(const char *chKey, const char *chCard)
int GetQuote(string &chLabel)
char m_card[INPUT_LINE_LENGTH]
void ParseRatio(Parser &p)
void ParseConstant(Parser &p)
Symbol(enum tokens t, const string &v)
double getNumberDefaultAlwaysLog(const char *chDesc, double fdef)
bool nMatchErase(const char *chKey)
void ParseIonPar(Parser &p, char chType)
void ParseCrashDo(Parser &p)
bool parserProcess(Parser &p, T *list, unsigned long nlist, V *value)
void parse_save_line(Parser &p, bool lgLog3, ostringstream &chHeader, long int ipPun)
void ParseStop(Parser &p)
void ParseSave(Parser &p)
void ParseGrid(Parser &p)
bool isBoundaryChar(char c)
void ParseDLaw(Parser &p)
void ParseRangeOption(Parser &p)
void ParsePrint(Parser &p)
NORETURN void StringError() const
double getNumberPlain(const char *chDesc)
void ParseSphere(Parser &p)
char m_card_raw[INPUT_LINE_LENGTH]
void ParseIlluminate(Parser &p)
void ParseCosmology(Parser &p)
void ParseCompile(Parser &p)
void ParseTest(Parser &p)
string StandardFluxUnit(void) const
void ParseGlobule(Parser &p)
void ParseCaseB(Parser &p)
void set_point(long int ipnt)
void ParseF_nu(Parser &p, const char *chType, bool lgNU2)
void ParseIonParX(Parser &p)
void operator()(realnum *v) const
void showLocation(FILE *io=ioQQQ) const
void ParseAbsMag(Parser &p)
const char * StandardEnergyUnit(void) const
char m_card_comment[INPUT_LINE_LENGTH]
const int INPUT_LINE_LENGTH
void parse_save_colden(Parser &p, ostringstream &chHeader)
void ParseFluc(Parser &p)
void ParseNorm(Parser &p)
void ParseCMB(double z, long int *nqh)
NORETURN void NoNumb(const char *chDesc) const
long int GetElem(void) const
const char * nWord(const char *chKey) const
int nMatch1(const char *chKey) const
string getFirstChunk(long i)
void ParseDrive(Parser &p)
const char * nWord(const char *chKey, const char *chCard)
void ParseTrace(Parser &p)
void ParseAbundancesNonSolar(Parser &p)
void ParseInit(Parser &p)
void ParseGrain(Parser &p)
void ParsePrtLineSum(Parser &p)
void ParsePowerlawContinuum(Parser &p)
double getNumberCheckAlwaysLogLim(const char *chDesc, double flim)
void help(FILE *fp) const
void ParseIonParI(Parser &p)
KeyAction< V > MakeKeyAction(const char *keyword, const V &action)
KeyAction(const char *keyword, const V &action)
NORETURN void Error(const char *msg) const
bool GetParam(const char *chKey, double *val)
double getNumberCheckAlwaysLog(const char *chDesc)
Option(const string &val, enum Quoted q)
void ParseRadius(Parser &p)
Parser(const CloudyCommand *commands)
const CloudyCommand *const m_Commands
double getNumberDefault(const char *chDesc, double fdef)
void ParseTLaw(Parser &p)
void ParseCosmicRays(Parser &p)
int fprintf(const Output &stream, const char *format,...)
NORETURN void CommandError(void) const
void getPairs(vector< double > &a, vector< double > &b)
const char *const m_keyword
void ParseOptimize(Parser &p)
int PrintLine(FILE *fp) const
std::string getVarName(void)
enum Option::Opts opttype
void readLaw(DepthTable &table)
bool GetRange(const char *chKey, double *val1, double *val2)
UnitConverter(double unit)
double getNumberDefaultNegImplLog(const char *chDesc, double fdef)
std::map< string, double > m_symtab
void ParseCoronal(Parser &p)
const char * key(void) const
void ParseElement(Parser &p)
bool isComment(void) const
void ParseInterp(Parser &p)
void ParseAbundances(Parser &p)
double getNumberCheck(const char *chDesc)