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,
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) 292 #define IOInfoIn(functionName, ios) \ 293 ::Foam::Info((functionName), __FILE__, __LINE__, (ios)) 298 #define IOInfoInFunction(ios) IOInfoIn(FUNCTION_NAME, ios) 309 #define DebugInFunction \ 310 if (debug) InfoInFunction 314 #define DebugVar(var) \ 316 ::Foam::string oldPrefix(::Foam::Pout.prefix()); \ 317 ::Foam::Pout<< "["<< __FILE__ << ":" << __LINE__ << "] "; \ 318 ::Foam::Pout.prefix() = oldPrefix + #var " "; \ 319 ::Foam::Pout<< var << ::Foam::endl; \ 320 ::Foam::Pout.prefix() = oldPrefix; \
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorSeverity
Severity flags.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const string & title() const
Return the title of this error type.
Class to handle messaging in a simple, consistent stream-based manner.
messageStream SeriousError
OSstream & masterStream(const label communicator)
Convert to OSstream.
An IOstream is an abstract base class for all input/output systems; be they streams, files, token lists etc.
messageStream(const string &title, errorSeverity, const int maxErrors=0)
Construct from components.
int maxErrors() const
Return the maximum number of errors before program termination.
OSstream & operator()()
Explicitly convert to OSstream for << operations.