Cloudy
Spectral Synthesis Code for Astrophysics
|
#include <input.h>
Public Member Functions | |
const char * | chName () const |
void | comment (t_warnings &) |
void | zero () |
void | clear () |
t_input () | |
~t_input () | |
void | echo (FILE *ipOUT) const |
void | init () |
Public Member Functions inherited from module | |
module () | |
virtual | ~module () |
Public Attributes | |
vector< CardInfo * > | crd |
string | chTitle |
int | curInclLevel |
bool | lgVisibilityStatus |
long int | nRead |
bool | lgInitPresent |
bool | lgUnderscoreFound |
bool | lgBracketFound |
bool | lgSetNoBuffering |
Private Member Functions | |
string | readarray (bool *lgEOF) |
string | peekarray (bool *lgEOF) |
Friends | |
class | Parser |
|
inline |
References lgSetNoBuffering.
|
inline |
|
inlinevirtual |
Implements module.
|
inline |
References crd, curInclLevel, lgBracketFound, lgInitPresent, and lgUnderscoreFound.
Referenced by cdInit(), cdMain(), and ~t_input().
|
inlinevirtual |
Implements module.
void t_input::echo | ( | FILE * | ipOUT | ) | const |
References crd, and fprintf().
Referenced by SaveLineIntensity(), and SaveResults().
|
inline |
called when 'init' command hit, to reset counters for placing line images within the storage array
References nRead.
Referenced by ParseCommands().
|
private |
similar to readarray, except that it reads the next command without actually retrieving it, this is useful to determine if the next line is a continuation of the current command
peekarray look ahead at the next command, but do not retrieve it yet
References crd, DEBUG_ENTRY, and nRead.
Referenced by Parser::peekNextCommand().
|
private |
return the next input command off the command stack if this exists, return input line and set lgEOF false, if none left, return empty string and set lgEOF true.
*lgEOF | true if end of file hit |
readarray read input commands from array where images are stored * and return this command
References crd, DEBUG_ENTRY, fprintf(), ioQQQ, t_trace::lgTrace, nRead, and trace.
Referenced by Parser::getline().
|
inlinevirtual |
Implements module.
|
friend |
string t_input::chTitle |
title entered with the title command
Referenced by cdErrors(), IterRestart(), ParseSave(), ParseTitle(), PrintSpectrum(), PrtComment(), and PrtFinal().
vector<CardInfo*> t_input::crd |
pointers to structs holding the input lines and associated info
Referenced by cdDrive(), cdInit(), cdPrintCommands(), cdRead(), clear(), echo(), Parser::getline(), grid_do(), optimize_do(), optimize_func(), ParseCommands(), ParseNorm(), peekarray(), PrtFinal(), readarray(), vary_input(), and writeCloudyDetails().
int t_input::curInclLevel |
curInclLevel is the current value of the include level stored in CardInfo
Referenced by cdMain(), cdRead(), clear(), and ParseInitFile().
bool t_input::lgBracketFound |
this is set true if left or right bracket, [ or ], present in input stream, which was set to space
Referenced by clear(), PrtComment(), and StripComment().
bool t_input::lgInitPresent |
bool t_input::lgSetNoBuffering |
set true with no buffering command, used to print comment at end
Referenced by cdRead(), PrtComment(), and t_input().
bool t_input::lgUnderscoreFound |
this is set true if underscore present in input stream, which was set to space
Referenced by clear(), PrtComment(), and StripComment().
bool t_input::lgVisibilityStatus |
current visibility status due to the PRINT ON / OFF commands
Referenced by Parser::getline(), and ParseCommands().
long int t_input::nRead |
this points to the command we are now parsing, within the stack of commands
Referenced by abund_starburst(), cdInit(), Parser::getline(), init(), ParseAgn(), ParseBlackbody(), ParseBremsstrahlung(), ParseConstant(), ParseCoronal(), ParseCosmicRays(), ParseDarkMatter(), ParseDatabaseISO(), ParseDistance(), ParseDLaw(), ParseEden(), ParseElement(), ParseEnergy(), ParseFill(), ParseFudge(), ParseGlobule(), ParseGrain(), ParseHDEN(), ParseHExtra(), ParseIlluminate(), ParseIntensity(), ParseInterp(), ParseIonPar(), ParseLuminosity(), ParseMagnet(), ParseMetal(), ParseNorm(), ParsePhi(), ParsePowerlawContinuum(), ParseQH(), ParseRadius(), ParseRatio(), ParseSet(), ParseStop(), ParseTable(), ParseTLaw(), ParseTurbulence(), peekarray(), and readarray().