Cloudy
Spectral Synthesis Code for Astrophysics
 All Classes 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-2023 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 
11 class t_warnings : public module {
12 public:
13  const char *chName() const
14  {
15  return "warnings";
16  }
17 
19  void zero(void);
20  void comment(t_warnings&) {}
21 
23  vector<string> chRgcln;
24 
27  vector<string> chWarnln;
28  vector<string> chCaunln;
29  vector<string> chBangln;
30  vector<string> chNoteln;
31 
33  bool lgWarngs;
34  bool lgCautns;
35 
39  void rgcin(const string& chLine) { chRgcln.emplace_back( chLine ); }
40 
44  void warnin(const string& chLine) { lgWarngs = true; chWarnln.emplace_back( chLine ); }
45 
49  void caunin(const string& chLine) { lgCautns = true; chCaunln.emplace_back( chLine ); }
50 
54  void bangin(const string& chLine) { chBangln.emplace_back( chLine ); }
55 
59  void notein(const string& chLine) { chNoteln.emplace_back( chLine ); }
60 };
61 extern t_warnings warnings;
62 
63 
67 inline void rgcin(const string& chLine)
68 {
69  warnings.rgcin(chLine);
70 }
71 
75 inline void warnin(const string& chLine)
76 {
77  warnings.warnin(chLine);
78 }
79 
83 inline void caunin(const string& chLine)
84 {
85  warnings.caunin(chLine);
86 }
87 
91 inline void bangin(const string& chLine)
92 {
93  warnings.bangin(chLine);
94 }
95 
99 inline void notein(const string& chLine)
100 {
101  warnings.notein(chLine);
102 }
103 
104 #endif /* WARNINGS_H_ */
Definition: warnings.h:11
void notein(const string &chLine)
Definition: warnings.h:99
void bangin(const string &chLine)
Definition: warnings.h:54
vector< string > chNoteln
Definition: warnings.h:30
vector< string > chWarnln
Definition: warnings.h:27
vector< string > chBangln
Definition: warnings.h:29
void caunin(const string &chLine)
Definition: warnings.h:83
vector< string > chCaunln
Definition: warnings.h:28
t_warnings warnings
Definition: warnings.cpp:11
void warnin(const string &chLine)
Definition: warnings.h:75
void caunin(const string &chLine)
Definition: warnings.h:49
void notein(const string &chLine)
Definition: warnings.h:59
const char * chName() const
Definition: warnings.h:13
vector< string > chRgcln
Definition: warnings.h:23
void comment(t_warnings &)
Definition: warnings.h:20
void warnin(const string &chLine)
Definition: warnings.h:44
void rgcin(const string &chLine)
Definition: warnings.h:67
void rgcin(const string &chLine)
Definition: warnings.h:39
void zero(void)
Definition: warnings.cpp:13
bool lgCautns
Definition: warnings.h:34
Definition: module.h:26
bool lgWarngs
Definition: warnings.h:33
void bangin(const string &chLine)
Definition: warnings.h:91