Go to the documentation of this file.
47 #ifndef messageStream_H
48 #define messageStream_H
119 const string&
title()
const
146 const char* functionName,
147 const char* sourceFileName,
148 const int sourceFileLineNumber = 0
155 const string& functionName,
156 const char* sourceFileName,
157 const int sourceFileLineNumber = 0
164 const char* functionName,
165 const char* sourceFileName,
166 const int sourceFileLineNumber,
167 const string& ioFileName,
168 const label ioStartLineNumber = -1,
169 const label ioEndLineNumber = -1
176 const char* functionName,
177 const char* sourceFileName,
178 const int sourceFileLineNumber,
186 const char* functionName,
187 const char* sourceFileName,
188 const int sourceFileLineNumber,
208 extern messageStream
Info;
225 #define FUNCTION_NAME __PRETTY_FUNCTION__
227 #define FUNCTION_NAME __func__
233 #define SeriousErrorIn(functionName) \
234 ::Foam::SeriousError((functionName), __FILE__, __LINE__)
238 #define SeriousErrorInFunction SeriousErrorIn(FUNCTION_NAME)
244 #define SeriousIOErrorIn(functionName, ios) \
245 ::Foam::SeriousError((functionName), __FILE__, __LINE__, ios)
250 #define SeriousIOErrorInFunction(ios) SeriousIOErrorIn(FUNCTION_NAME, ios)
255 #define WarningIn(functionName) \
256 ::Foam::Warning((functionName), __FILE__, __LINE__)
260 #define WarningInFunction WarningIn(FUNCTION_NAME)
266 #define IOWarningIn(functionName, ios) \
267 ::Foam::Warning((functionName), __FILE__, __LINE__, (ios))
272 #define IOWarningInFunction(ios) IOWarningIn(FUNCTION_NAME, ios)
277 #define InfoIn(functionName) \
278 ::Foam::Info((functionName), __FILE__, __LINE__)
282 #define InfoInFunction InfoIn(FUNCTION_NAME)
288 #define IOInfoIn(functionName, ios) \
289 ::Foam::Info((functionName), __FILE__, __LINE__, (ios))
294 #define IOInfoInFunction(ios) IOInfoIn(FUNCTION_NAME, ios)
300 ::Foam::Pout<< "["<< __FILE__ << ":" << __LINE__ << "] " \
301 << #var " " << var << ::Foam::endl
#define InfoIn(functionName)
Report a information message using Foam::Info.
Class to handle messaging in a simple, consistent stream-based manner.
errorSeverity
Severity flags.
OSstream & masterStream(const label communicator)
Convert to OSstream.
An IOstream is an abstract base class for all input/output systems; be they streams,...
#define SeriousIOErrorIn(functionName, ios)
Report an IO error message using Foam::SeriousError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
OSstream & operator()()
Explicitly convert to OSstream for << operations.
#define SeriousErrorIn(functionName)
Report an error message using Foam::SeriousError.
#define Debug(var)
Report a variable name and value.
messageStream(const string &title, errorSeverity, const int maxErrors=0)
Construct from components.
#define IOWarningIn(functionName, ios)
Report an IO warning using Foam::Warning.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
#define IOInfoIn(functionName, ios)
Report an IO information message using Foam::Info.
int maxErrors() const
Return the maximum number of errors before program termination.
A list of keyword definitions, which are a keyword followed by any number of values (e....
messageStream SeriousError
prefixOSstream Pout(cout, "Pout")
const string & title() const
Return the title of this error type.
#define WarningIn(functionName)
Report a warning using Foam::Warning.