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) |
Public Member Functions inherited from module | |
module () | |
virtual | ~module () |
Data Fields | |
char | chCardSav [NKRD][INPUT_LINE_LENGTH] |
char | chCardStrip [NKRD][INPUT_LINE_LENGTH] |
char | chTitle [INPUT_LINE_LENGTH] |
char | chDelimiter [3] |
int | InclLevel [NKRD] |
int | curInclLevel |
bool | lgVisible [NKRD] |
bool | lgVisibilityStatus |
long int | nSave |
long int | nRead |
bool | lgInitPresent |
bool | lgUnderscoreFound |
bool | lgBracketFound |
bool | lgDeprecatedComment |
bool | lgSetNoBuffering |
Private Member Functions | |
void | readarray (char *chCardStripped, char *chCardComment, bool *lgEOF) |
Friends | |
class | Parser |
|
inline |
Definition at line 124 of file input.h.
References chDelimiter, and lgSetNoBuffering.
|
inlinevirtual |
|
inlinevirtual |
void t_input::echo | ( | FILE * | ipOUT | ) |
Definition at line 199 of file input.cpp.
References chCardSav, fprintf(), InclLevel, lgVisible, and nSave.
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 186 of file input.cpp.
References DEBUG_ENTRY, and nRead.
Referenced by ParseCommands().
|
private |
input_readarray read input commands from array where images are stored * returns the command in chCard
Definition at line 208 of file input.cpp.
References chCardSav, chCardStrip, DEBUG_ENTRY, fprintf(), ioQQQ, t_trace::lgTrace, nRead, nSave, and trace.
Referenced by Parser::getline().
|
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 74 of file input.h.
Referenced by cdInit(), cdPrintCommands(), cdRead(), echo(), grid_do(), lgOptimize_do(), optimize_func(), ParseNorm(), PrtFinal(), readarray(), vary_input(), and writeCloudyDetails().
char t_input::chCardStrip[NKRD][INPUT_LINE_LENGTH] |
same as above, but this has visible comments stripped, should only be used in parser
Definition at line 77 of file input.h.
Referenced by cdInit(), cdRead(), lgOptimize_do(), optimize_func(), readarray(), and vary_input().
char t_input::chDelimiter[3] |
delimiter character for file names, / for *nix, \ for win
Definition at line 83 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 80 of file input.h.
Referenced by cdErrors(), IterRestart(), ParseSave(), ParseTitle(), pltr(), PrintSpectrum(), PrtComment(), PrtFinal(), and zero().
int t_input::curInclLevel |
Definition at line 92 of file input.h.
Referenced by cdMain(), cdRead(), and ParseInit().
int t_input::InclLevel[NKRD] |
keep track of the include level of each input line level 0 - main input file level 1 - init file included from main input file level 2 - init file included from level 1 init file etc... curInclLevel is the current value of the include level
Definition at line 91 of file input.h.
Referenced by cdPrintCommands(), cdRead(), echo(), grid_do(), lgOptimize_do(), PrtFinal(), vary_input(), and writeCloudyDetails().
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 116 of file input.h.
Referenced by cdInit(), PrtComment(), and StripComment().
bool t_input::lgDeprecatedComment |
this is set true if a deprecated form of comment was used in the input script
Definition at line 119 of file input.h.
Referenced by cdInit(), lgIsCommentSeq(), and ParseCommands().
bool t_input::lgInitPresent |
bool t_input::lgSetNoBuffering |
set true with no buffering command, used to print comment at end
Definition at line 122 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 112 of file input.h.
Referenced by cdInit(), PrtComment(), and StripComment().
bool t_input::lgVisibilityStatus |
current visibility status due to the PRINT ON / OFF commands
Definition at line 99 of file input.h.
Referenced by Parser::getline(), and ParseCommands().
bool t_input::lgVisible[NKRD] |
is this line visible, or should it be hidden due to the HIDE keyword and/or the PRINT ON / OFF commands...
Definition at line 96 of file input.h.
Referenced by echo(), Parser::getline(), and PrtFinal().
long int t_input::nRead |
this points to the command we are now parsing, within the stack of commands
Definition at line 105 of file input.h.
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(), and readarray().
long int t_input::nSave |
one less than the total number of lines read in with cdRead
Definition at line 102 of file input.h.
Referenced by cdDrive(), cdInit(), cdPrintCommands(), cdRead(), echo(), grid_do(), lgOptimize_do(), ParseCommands(), PrtFinal(), readarray(), vary_input(), and writeCloudyDetails().