Cloudy
Spectral Synthesis Code for Astrophysics
Loading...
Searching...
No Matches
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::t_input ( )
inline

References lgSetNoBuffering.

◆ ~t_input()

t_input::~t_input ( )
inline

References clear().

Here is the call graph for this function:

Member Function Documentation

◆ chName()

const char * t_input::chName ( ) const
inlinevirtual

Implements module.

◆ clear()

void t_input::clear ( )
inline

◆ comment()

void t_input::comment ( t_warnings & )
inlinevirtual

Implements module.

◆ echo()

void t_input::echo ( FILE * ipOUT) const

References crd, and fprintf().

Here is the call graph for this function:

◆ init()

void t_input::init ( )
inline

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

References nRead.

◆ peekarray()

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.

◆ readarray()

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, nRead, and trace.

Here is the call graph for this function:

◆ zero()

void t_input::zero ( void )
inlinevirtual

Implements module.

◆ Parser

friend class Parser
friend

References Parser.

Referenced by Parser.

Member Data Documentation

◆ chTitle

string t_input::chTitle

title entered with the title command

◆ crd

vector<CardInfo*> t_input::crd

pointers to structs holding the input lines and associated info

Referenced by clear(), echo(), peekarray(), and readarray().

◆ curInclLevel

int t_input::curInclLevel

curInclLevel is the current value of the include level stored in CardInfo

Referenced by clear().

◆ lgBracketFound

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

◆ lgInitPresent

bool t_input::lgInitPresent

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

Referenced by clear().

◆ lgSetNoBuffering

bool t_input::lgSetNoBuffering

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

Referenced by t_input().

◆ lgUnderscoreFound

bool t_input::lgUnderscoreFound

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

Referenced by clear().

◆ lgVisibilityStatus

bool t_input::lgVisibilityStatus

current visibility status due to the PRINT ON / OFF commands

◆ nRead

long int t_input::nRead

this points to the command we are now parsing, within the stack of commands

Referenced by init(), peekarray(), and readarray().


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