Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
t_input Struct Reference

#include <input.h>

Inheritance diagram for t_input:
Collaboration diagram for t_input:

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
 

Constructor & Destructor Documentation

t_input::t_input ( )
inline

References lgSetNoBuffering.

t_input::~t_input ( )
inline

References clear().

Here is the call graph for this function:

Member Function Documentation

const char* t_input::chName ( ) const
inlinevirtual

Implements module.

void t_input::clear ( )
inline
void t_input::comment ( t_warnings )
inlinevirtual

Implements module.

void t_input::echo ( FILE *  ipOUT) const

References crd, and fprintf().

Referenced by SaveLineIntensity(), and SaveResults().

Here is the call graph for this function:

void t_input::init ( void  )
inline

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

References nRead.

Referenced by ParseCommands().

string t_input::peekarray ( bool *  lgEOF)
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().

string t_input::readarray ( bool *  lgEOF)
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.

Parameters
*lgEOFtrue 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().

Here is the call graph for this function:

void t_input::zero ( void  )
inlinevirtual

Implements module.

Friends And Related Function Documentation

friend class Parser
friend

Member Data Documentation

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

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

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

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


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