cloudy  trunk
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
warnings.h
Go to the documentation of this file.
1 /* This file is part of Cloudy and is copyright (C)1978-2022 by Gary J. Ferland and
2  * others. For conditions of distribution and use see copyright notice in license.txt */
3 
4 #ifndef WARNINGS_H_
5 #define WARNINGS_H_
6 
7 /* warnings.h */
8 
9 #include "module.h"
10 
13 static const int LIMWCN = 2000;
14 
15 class t_warnings : public module {
16 public:
17  const char *chName() const
18  {
19  return "warnings";
20  }
21 
23  void zero(void);
24  void comment(t_warnings&) {}
25 
28  long int nwarn,
29  ncaun,
30  nnote,
31  nbang;
32 
35 
42 
44  bool lgWarngs,
45  lgCautns;
46 
50  void warnin(const char *chLine);
51 
55  void notein(const char *chLine);
56 
60  void bangin(const char *chLine);
61 
65  void caunin(const char *chLine);
66 
67  };
68 extern t_warnings warnings;
69 
70 
74 inline void warnin(const char *chLine)
75 {
76  warnings.warnin(chLine);
77 }
78 
82 inline void notein(const char *chLine)
83 {
84  warnings.notein(chLine);
85 }
86 
90 inline void bangin(const char *chLine)
91 {
92  warnings.bangin(chLine);
93 }
94 
98 inline void caunin(const char *chLine)
99 {
100  warnings.caunin(chLine);
101 }
102 
103 
104 #endif /* WARNINGS_H_ */
void bangin(const char *chLine)
Definition: warnings.h:90
void warnin(const char *chLine)
Definition: warnings.cpp:27
t_warnings warnings
Definition: warnings.cpp:11
char chWarnln[LIMWCN][INPUT_LINE_LENGTH]
Definition: warnings.h:38
long int ncaun
Definition: warnings.h:28
char chRgcln[2][INPUT_LINE_LENGTH]
Definition: warnings.h:34
void warnin(const char *chLine)
Definition: warnings.h:74
long int nbang
Definition: warnings.h:28
char chNoteln[LIMWCN][INPUT_LINE_LENGTH]
Definition: warnings.h:38
char chCaunln[LIMWCN][INPUT_LINE_LENGTH]
Definition: warnings.h:38
const int INPUT_LINE_LENGTH
Definition: cddefines.h:301
void notein(const char *chLine)
Definition: warnings.h:82
const char * chName() const
Definition: warnings.h:17
long int nnote
Definition: warnings.h:28
void comment(t_warnings &)
Definition: warnings.h:24
void zero(void)
Definition: warnings.cpp:13
long int nwarn
Definition: warnings.h:28
void notein(const char *chLine)
Definition: warnings.cpp:50
bool lgCautns
Definition: warnings.h:44
char chBangln[LIMWCN][INPUT_LINE_LENGTH]
Definition: warnings.h:38
void bangin(const char *chLine)
Definition: warnings.cpp:73
Definition: module.h:26
bool lgWarngs
Definition: warnings.h:44
void caunin(const char *chLine)
Definition: warnings.cpp:96
static const int LIMWCN
Definition: warnings.h:13
void caunin(const char *chLine)
Definition: warnings.h:98