cloudy trunk
Loading...
Searching...
No Matches
Public Member Functions | Data Fields | Private Member Functions | Friends
t_input Struct Reference

#include <input.h>

Collaboration diagram for t_input:
Collaboration graph
[legend]

Public Member Functions

void echo (FILE *ipOUT)
 
void init (void)
 

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
 

Detailed Description

Definition at line 27 of file input.h.

Member Function Documentation

◆ echo()

void t_input::echo ( FILE *  ipOUT)

Definition at line 89 of file input.cpp.

References caps(), init(), INPUT_LINE_LENGTH, nMatch(), and readarray().

Referenced by SaveLineIntensity(), and SaveResults().

Here is the call graph for this function:

◆ init()

void t_input::init ( void  )

called when 'init' command hit, to reset counters for placing line images within the storage array

Definition at line 63 of file input.cpp.

References DEBUG_ENTRY, iReadWay, NKRD, nRead, and nReadSv.

Referenced by echo(), ParseCommands(), and ParseInitCount().

◆ readarray()

void t_input::readarray ( char *  chCard,
bool lgEOF 
)
private

Definition at line 114 of file input.cpp.

References chCardSav, DEBUG_ENTRY, ioQQQ, iReadWay, t_trace::lgTrace, NKRD, nRead, nReadSv, nSave, nSaveIni, and trace.

Referenced by echo(), and Parser::getline().

Friends And Related Function Documentation

◆ Parser

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 80 of file input.h.

Field Documentation

◆ chCardSav

char t_input::chCardSav[NKRD][INPUT_LINE_LENGTH]

we will save the original (not caped) image of the line here

Definition at line 32 of file input.h.

Referenced by cdInit(), cdPrintCommands(), cdRead(), grid_do(), lgOptimize_do(), optimize_func(), ParseInit(), ParseNorm(), PrtFinal(), readarray(), vary_input(), and writeCloudyDetails().

◆ chDelimiter

char t_input::chDelimiter[3]

◆ chTitle

char t_input::chTitle[INPUT_LINE_LENGTH]

title entered with the title command

Definition at line 37 of file input.h.

Referenced by cdErrors(), IterRestart(), ParseSave(), ParseTitle(), pltr(), PrtComment(), PrtFinal(), and zero().

◆ iReadWay

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 56 of file input.h.

Referenced by init(), ParseCommands(), ParseInitCount(), ParseInterp(), and readarray().

◆ lgBracketFound

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 67 of file input.h.

Referenced by cdInit(), cdMain(), and PrtComment().

◆ lgSetNoBuffering

bool t_input::lgSetNoBuffering

set true with no buffering command, used to print comment at end

Definition at line 70 of file input.h.

Referenced by cdRead(), ParseCommands(), and PrtComment().

◆ lgUnderscoreFound

bool t_input::lgUnderscoreFound

this is set true if underscore present in input stream, which was set to space

Definition at line 63 of file input.h.

Referenced by cdInit(), cdMain(), and PrtComment().

◆ nRead

long int t_input::nRead

◆ nReadSv

long int t_input::nReadSv

saves current value of nRead, while parsing init commands

Definition at line 59 of file input.h.

Referenced by init(), and readarray().

◆ nSave

long int t_input::nSave

one less than the total number of lines read in with cdRead

Definition at line 46 of file input.h.

Referenced by cdDrive(), cdInit(), cdPrintCommands(), cdRead(), grid_do(), lgOptimize_do(), ParseCommands(), ParseInit(), PrtFinal(), readarray(), vary_input(), and writeCloudyDetails().

◆ nSaveIni

long int t_input::nSaveIni

number of init commands saved

Definition at line 52 of file input.h.

Referenced by cdInit(), ParseInit(), readarray(), and ShowMe().


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