47 #ifndef messageStream_H 48 #define messageStream_H 115 const string&
title()
const 138 const char* sourceFileName,
139 const int sourceFileLineNumber = 0
146 const string& functionName,
147 const char* sourceFileName,
148 const int sourceFileLineNumber = 0
155 const char* functionName,
156 const char* sourceFileName,
157 const int sourceFileLineNumber,
158 const string& ioFileName,
159 const label ioStartLineNumber = -1,
160 const label ioEndLineNumber = -1
167 const char* functionName,
168 const char* sourceFileName,
169 const int sourceFileLineNumber,
177 const char* functionName,
178 const char* sourceFileName,
179 const int sourceFileLineNumber,
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; \
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.
OSstream & operator()(const char *functionName, const char *sourceFileName, const int sourceFileLineNumber=0)
Convert to OSstream.
messageStream(const string &title, const errorSeverity, const int maxErrors=0)
Construct from components.
A functionName is a word starting with '#'.
messageStream SeriousError
An IOstream is an abstract base class for all input/output systems; be they streams, files, token lists etc.
int maxErrors() const
Return the maximum number of errors before program termination.