47 #ifndef messageStream_H 48 #define messageStream_H 119 const string&
title()
const 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,
226 #define FUNCTION_NAME __PRETTY_FUNCTION__ 228 #define FUNCTION_NAME __func__ 234 #define SeriousErrorIn(functionName) \ 235 ::Foam::SeriousError((functionName), __FILE__, __LINE__) 239 #define SeriousErrorInFunction SeriousErrorIn(FUNCTION_NAME) 245 #define SeriousIOErrorIn(functionName, ios) \ 246 ::Foam::SeriousError((functionName), __FILE__, __LINE__, ios) 251 #define SeriousIOErrorInFunction(ios) SeriousIOErrorIn(FUNCTION_NAME, ios) 256 #define WarningIn(functionName) \ 257 ::Foam::Warning((functionName), __FILE__, __LINE__) 261 #define WarningInFunction WarningIn(FUNCTION_NAME) 267 #define IOWarningIn(functionName, ios) \ 268 ::Foam::Warning((functionName), __FILE__, __LINE__, (ios)) 273 #define IOWarningInFunction(ios) IOWarningIn(FUNCTION_NAME, ios) 278 #define InfoIn(functionName) \ 279 ::Foam::Info((functionName), __FILE__, __LINE__) 283 #define InfoInFunction InfoIn(FUNCTION_NAME) 287 if (::Foam::writeInfoHeader) Info 297 #define IOInfoIn(functionName, ios) \ 298 ::Foam::Info((functionName), __FILE__, __LINE__, (ios)) 303 #define IOInfoInFunction(ios) IOInfoIn(FUNCTION_NAME, ios) 314 #define DebugInFunction \ 315 if (debug) InfoInFunction 319 #define DebugVar(var) \ 321 ::Foam::string oldPrefix(::Foam::Pout.prefix()); \ 322 ::Foam::Pout<< "["<< __FILE__ << ":" << __LINE__ << "] "; \ 323 ::Foam::Pout.prefix() = oldPrefix + #var " "; \ 324 ::Foam::Pout<< var << ::Foam::endl; \ 325 ::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.
A functionName is a word starting with '#'.
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.