MCPcopy Create free account
hub / github.com/OpenFOAM/OpenFOAM-dev / messageStream

Class messageStream

src/OpenFOAM/db/error/messageStream.H:69–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67\*---------------------------------------------------------------------------*/
68
69class messageStream
70{
71
72public:
73
74 //- Severity flags
75 enum errorSeverity
76 {
77 INFO, // Debugging information in event of error
78 WARNING, // Warning of possible problem
79 SERIOUS, // A serious problem (data corruption?)
80 FATAL // Oh bugger!
81 };
82
83
84protected:
85
86 // Private data
87
88 string title_;
89 errorSeverity severity_;
90 int maxErrors_;
91 int errorCount_;
92
93
94public:
95
96 // Debug switches
97
98 static int level;
99
100
101 // Constructors
102
103 //- Construct from components
104 messageStream
105 (
106 const string& title,
107 errorSeverity,
108 const int maxErrors = 0
109 );
110
111
112 //- Construct from dictionary
113 messageStream(const dictionary&);
114
115
116 // Member functions
117
118 //- Return the title of this error type
119 const string& title() const
120 {
121 return title_;
122 }
123
124 //- Return the maximum number of errors before program termination
125 int maxErrors() const
126 {

Callers 1

error.CFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected