cloudy
trunk
|
#include <input.h>
Public Member Functions | |
const char * | chName () const |
void | zero () |
void | comment (t_warnings &) |
t_input () | |
void | echo (FILE *ipOUT) |
void | init (void) |
![]() | |
module () | |
virtual | ~module () |
Data Fields | |
char | chCardSav [NKRD][INPUT_LINE_LENGTH] |
char | chTitle [INPUT_LINE_LENGTH] |
char | chDelimiter [3] |
long int | nSave |
long int | nRead |
long int | nSaveIni |
long int | iReadWay |
long int | nReadSv |
bool | lgUnderscoreFound |
bool | lgBracketFound |
bool | lgSetNoBuffering |
Private Member Functions | |
void | readarray (char *chCard, bool *lgEOF) |
Friends | |
class | Parser |
|
inline |
Definition at line 88 of file input.h.
References chDelimiter, and lgSetNoBuffering.
|
inlinevirtual |
|
inlinevirtual |
void t_input::echo | ( | FILE * | ipOUT | ) |
Definition at line 102 of file input.cpp.
References caps(), fprintf(), init(), INPUT_LINE_LENGTH, nMatch(), and readarray().
Referenced by SaveLineIntensity(), and SaveResults().
void t_input::init | ( | void | ) |
called when 'init' command hit, to reset counters for placing line images within the storage array
Definition at line 76 of file input.cpp.
References DEBUG_ENTRY, iReadWay, NKRD, nRead, and nReadSv.
Referenced by echo(), ParseCommands(), and ParseInitCount().
|
private |
|
virtual |
Implements module.
Definition at line 14 of file input.cpp.
References ASSERT, chTitle, DEBUG_ENTRY, and INPUT_LINE_LENGTH.
|
friend |
char t_input::chCardSav[NKRD][INPUT_LINE_LENGTH] |
we will save the original (not caped) image of the line here
Definition at line 48 of file input.h.
Referenced by cdInit(), cdPrintCommands(), cdRead(), grid_do(), lgOptimize_do(), optimize_func(), ParseInit(), ParseNorm(), PrtFinal(), readarray(), vary_input(), and writeCloudyDetails().
char t_input::chDelimiter[3] |
delimiter character for file names, / for *nix, \ for win
Definition at line 58 of file input.h.
Referenced by database_readin(), diatomics::H2_CollidRateRead(), diatomics::H2_Read_hminus_distribution(), diatomics::H2_Read_LTE_cooling_per_H2(), diatomics::H2_ReadDissocEnergies(), diatomics::H2_ReadDissprob(), diatomics::H2_ReadEnergies(), diatomics::H2_ReadTransprob(), open_abn_file(), ParseTable(), and t_input().
char t_input::chTitle[INPUT_LINE_LENGTH] |
title entered with the title command
Definition at line 48 of file input.h.
Referenced by cdErrors(), IterRestart(), ParseSave(), ParseTitle(), pltr(), PrintSpectrum(), PrtComment(), PrtFinal(), and zero().
long int t_input::iReadWay |
+/-1, says whether to increment or decrement nRead, since init commands are at the bottom of the stack and we read backwards
Definition at line 62 of file input.h.
Referenced by init(), ParseCommands(), ParseInitCount(), ParseInterp(), and readarray().
bool t_input::lgBracketFound |
this is set true if left or right bracket, [ or ], present in input stream, which was set to space
Definition at line 83 of file input.h.
Referenced by cdInit(), cdMain(), and PrtComment().
bool t_input::lgSetNoBuffering |
set true with no buffering command, used to print comment at end
Definition at line 86 of file input.h.
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
Definition at line 79 of file input.h.
Referenced by cdInit(), cdMain(), and PrtComment().
long int t_input::nRead |
this points to the command we are now parsing, within the stack of commands
Definition at line 62 of file input.h.
Referenced by abund_starburst(), cdInit(), init(), ParseAgn(), ParseBlackbody(), ParseBremsstrahlung(), ParseConstant(), ParseCoronal(), ParseCosmicRays(), ParseDarkMatter(), ParseDatabaseISO(), ParseDistance(), ParseDLaw(), 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(), and readarray().
long int t_input::nReadSv |
saves current value of nRead, while parsing init commands
Definition at line 62 of file input.h.
Referenced by init(), and readarray().
long int t_input::nSave |
one less than the total number of lines read in with cdRead
Definition at line 62 of file input.h.
Referenced by cdDrive(), cdInit(), cdPrintCommands(), cdRead(), grid_do(), lgOptimize_do(), ParseCommands(), ParseInit(), PrtFinal(), readarray(), vary_input(), and writeCloudyDetails().
long int t_input::nSaveIni |
number of init commands saved
Definition at line 62 of file input.h.
Referenced by cdInit(), ParseInit(), readarray(), and ShowMe().