cloudy
trunk
Main Page
Related Pages
Namespaces
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Pages
source
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
48
char
chCardSav
[
NKRD
][
INPUT_LINE_LENGTH
],
49
53
chTitle
[
INPUT_LINE_LENGTH
];
54
58
char
chDelimiter
[3];
59
60
long
int
62
nSave
,
63
65
nRead
,
66
68
nSaveIni
,
69
72
iReadWay
,
73
75
nReadSv
;
76
79
bool
lgUnderscoreFound
;
80
83
bool
lgBracketFound
;
84
86
bool
lgSetNoBuffering
;
87
88
t_input
()
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_ */
t_input::nSave
long int nSave
Definition:
input.h:62
t_warnings
Definition:
warnings.h:15
t_input::comment
void comment(t_warnings &)
Definition:
input.h:43
NKRD
const int NKRD
Definition:
input.h:12
input
t_input input
Definition:
input.cpp:12
t_input::nSaveIni
long int nSaveIni
Definition:
input.h:62
t_input::nRead
long int nRead
Definition:
input.h:62
t_input::zero
void zero()
Definition:
input.cpp:14
t_input::chTitle
char chTitle[INPUT_LINE_LENGTH]
Definition:
input.h:48
Parser
Definition:
parser.h:42
input_readvector
void input_readvector(const char *chFile, vector< double > &vec, bool *lgError)
Definition:
input.cpp:202
t_input::echo
void echo(FILE *ipOUT)
Definition:
input.cpp:102
INPUT_LINE_LENGTH
const int INPUT_LINE_LENGTH
Definition:
cddefines.h:301
t_input::readarray
void readarray(char *chCard, bool *lgEOF)
Definition:
input.cpp:127
t_input::lgUnderscoreFound
bool lgUnderscoreFound
Definition:
input.h:79
t_input::lgBracketFound
bool lgBracketFound
Definition:
input.h:83
t_input::iReadWay
long int iReadWay
Definition:
input.h:62
t_input::t_input
t_input()
Definition:
input.h:88
t_input::chDelimiter
char chDelimiter[3]
Definition:
input.h:58
t_input::lgSetNoBuffering
bool lgSetNoBuffering
Definition:
input.h:86
t_input::nReadSv
long int nReadSv
Definition:
input.h:62
lgInputComment
bool lgInputComment(const char *chLine)
Definition:
input.cpp:31
t_input::chCardSav
char chCardSav[NKRD][INPUT_LINE_LENGTH]
Definition:
input.h:48
t_input::chName
const char * chName() const
Definition:
input.h:36
module.h
module
Definition:
module.h:26
t_input
Definition:
input.h:34
t_input::init
void init(void)
Definition:
input.cpp:76
Generated by
1.8.5