cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Data Fields | Private Member Functions | Friends
t_input Struct Reference

#include <input.h>

Inheritance diagram for t_input:
Inheritance graph
[legend]
Collaboration diagram for t_input:
Collaboration graph
[legend]

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
 

Detailed Description

Definition at line 62 of file input.h.

Constructor & Destructor Documentation

t_input::t_input ( )
inline

Definition at line 124 of file input.h.

References chDelimiter, and lgSetNoBuffering.

Member Function Documentation

const char* t_input::chName ( ) const
inlinevirtual

Implements module.

Definition at line 64 of file input.h.

void t_input::comment ( t_warnings )
inlinevirtual

Implements module.

Definition at line 71 of file input.h.

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().

Here is the call graph for this function:

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().

void t_input::readarray ( char *  chCardStripped,
char *  chCardComment,
bool *  lgEOF 
)
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().

Here is the call graph for this function:

void t_input::zero ( void  )
virtual

Implements module.

Definition at line 14 of file input.cpp.

References ASSERT, chTitle, DEBUG_ENTRY, and INPUT_LINE_LENGTH.

Friends And Related Function Documentation

friend class Parser
friend

get the next input command off the command stack if more then copy into chCard and set lgEOF false, if all command processed then set lgEOF true

Parameters
*chCardthe input line string
*lgEOFtrue if hit end of file

Definition at line 145 of file input.h.

Field Documentation

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]
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

this is set true if an init file was used in the input deck

Definition at line 108 of file input.h.

Referenced by cdInit(), cdRead(), and ShowMe().

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
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().


The documentation for this struct was generated from the following files: