47 #ifndef messageStream_H
48 #define messageStream_H
115 const string&
title()
const
138 const char* sourceFileName,
139 const int sourceFileLineNumber = 0
147 const char* sourceFileName,
148 const int sourceFileLineNumber = 0
156 const char* sourceFileName,
157 const int sourceFileLineNumber,
158 const string& ioFileName,
159 const label ioStartLineNumber = -1,
160 const label ioEndLineNumber = -1
168 const char* sourceFileName,
169 const int sourceFileLineNumber,
178 const char* sourceFileName,
179 const int sourceFileLineNumber,
199 extern messageStream
Info;
217 #define FUNCTION_NAME __PRETTY_FUNCTION__
219 #define FUNCTION_NAME __func__
225 #define SeriousErrorIn(functionName) \
226 ::Foam::SeriousError((functionName), __FILE__, __LINE__)
230 #define SeriousErrorInFunction SeriousErrorIn(FUNCTION_NAME)
236 #define SeriousIOErrorIn(functionName, ios) \
237 ::Foam::SeriousError((functionName), __FILE__, __LINE__, ios)
242 #define SeriousIOErrorInFunction(ios) SeriousIOErrorIn(FUNCTION_NAME, ios)
247 #define WarningIn(functionName) \
248 ::Foam::Warning((functionName), __FILE__, __LINE__)
252 #define WarningInFunction WarningIn(FUNCTION_NAME)
258 #define IOWarningIn(functionName, ios) \
259 ::Foam::Warning((functionName), __FILE__, __LINE__, (ios))
264 #define IOWarningInFunction(ios) IOWarningIn(FUNCTION_NAME, ios)
269 #define InfoIn(functionName) \
270 ::Foam::Info((functionName), __FILE__, __LINE__)
274 #define InfoInFunction InfoIn(FUNCTION_NAME)
278 if (::Foam::writeInfoHeader) Info
288 #define IOInfoIn(functionName, ios) \
289 ::Foam::Info((functionName), __FILE__, __LINE__, (ios))
294 #define IOInfoInFunction(ios) IOInfoIn(FUNCTION_NAME, ios)
305 #define DebugInFunction \
306 if (debug) InfoInFunction
310 #define DebugVar(var) \
312 ::Foam::string oldPrefix(::Foam::Pout.prefix()); \
313 ::Foam::Pout<< "["<< __FILE__ << ":" << __LINE__ << "] "; \
314 ::Foam::Pout.prefix() = oldPrefix + #var " "; \
315 ::Foam::Pout<< var << ::Foam::endl; \
316 ::Foam::Pout.prefix() = oldPrefix; \
An IOstream is an abstract base class for all input/output systems; be they streams,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A functionName is a word starting with '#'.
Class to handle messaging in a simple, consistent stream-based manner.
errorSeverity
Severity flags.
OSstream & operator()(const char *functionName, const char *sourceFileName, const int sourceFileLineNumber=0)
Convert to OSstream.
int maxErrors() const
Return the maximum number of errors before program termination.
messageStream(const string &title, const errorSeverity, const int maxErrors=0)
Construct from components.
const string & title() const
Return the title of this error type.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
messageStream SeriousError