cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
input.h
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2017 by Gary J. Ferland and
2  * others. For conditions of distribution and use see copyright notice in license.txt */
3 
4 #ifndef INPUT_H_
5 #define INPUT_H_
6 
7 /* input.h */
8 
9 #include "module.h"
10 
12 const int NKRD = 4000;
13 
20 bool lgInputComment(
21  const char *chLine );
22 
24 void input_readvector(const char* chFile,
25  vector<double> &vec,
26  bool* lgError);
29 void input_readvector(const char* chFile,
30  double vector[],
31  long n,
32  bool* lgEOF);
34 struct t_input : public module {
35 
36  const char *chName() const
37  {
38  return "input";
39  }
40 
41  void zero();
42 
43  void comment(t_warnings&) {}
44 
49 
54 
58  char chDelimiter[3];
59 
60  long int
63 
65  nRead,
66 
68  nSaveIni,
69 
72  iReadWay,
73 
75  nReadSv;
76 
80 
84 
87 
89  {
90  // subdirectory delimiter character
91 # ifdef _WIN32
92  strcpy( chDelimiter, "\\" );
93 # else
94  strcpy( chDelimiter, "/" );
95 # endif
96  /* will be set true if no buffering command entered */
97  lgSetNoBuffering = false;
98  }
99 
100 
107  // friend CodeSmell
108  private:
109  friend class Parser;
110  void readarray(
111  char *chCard,
112  bool *lgEOF);
113 
114  public:
115  void echo( FILE *ipOUT);
116 
119  void init(void);
120 
121 
122  };
123 extern t_input input;
124 
125 
126 
127 #endif /* INPUT_H_ */
long int nSave
Definition: input.h:62
void comment(t_warnings &)
Definition: input.h:43
const int NKRD
Definition: input.h:12
t_input input
Definition: input.cpp:12
long int nSaveIni
Definition: input.h:62
long int nRead
Definition: input.h:62
void zero()
Definition: input.cpp:14
char chTitle[INPUT_LINE_LENGTH]
Definition: input.h:48
Definition: parser.h:42
void input_readvector(const char *chFile, vector< double > &vec, bool *lgError)
Definition: input.cpp:202
void echo(FILE *ipOUT)
Definition: input.cpp:102
const int INPUT_LINE_LENGTH
Definition: cddefines.h:301
void readarray(char *chCard, bool *lgEOF)
Definition: input.cpp:127
bool lgUnderscoreFound
Definition: input.h:79
bool lgBracketFound
Definition: input.h:83
long int iReadWay
Definition: input.h:62
t_input()
Definition: input.h:88
char chDelimiter[3]
Definition: input.h:58
bool lgSetNoBuffering
Definition: input.h:86
long int nReadSv
Definition: input.h:62
bool lgInputComment(const char *chLine)
Definition: input.cpp:31
char chCardSav[NKRD][INPUT_LINE_LENGTH]
Definition: input.h:48
const char * chName() const
Definition: input.h:36
Definition: module.h:26
Definition: input.h:34
void init(void)
Definition: input.cpp:76