53 #ifndef Foam_messageStream_H 54 #define Foam_messageStream_H 189 const string& functionName
197 const char* functionName,
198 const char* sourceFileName,
199 const int sourceFileLineNumber = 0
206 const string& functionName,
207 const char* sourceFileName,
208 const int sourceFileLineNumber = 0
216 const char* functionName,
217 const char* sourceFileName,
218 const int sourceFileLineNumber,
219 const string& ioFileName,
220 const label ioStartLineNumber = -1,
221 const label ioEndLineNumber = -1
229 const char* functionName,
230 const char* sourceFileName,
231 const int sourceFileLineNumber,
240 const char* functionName,
241 const char* sourceFileName,
242 const int sourceFileLineNumber,
294 #define FUNCTION_NAME __PRETTY_FUNCTION__ 296 #define FUNCTION_NAME __func__ 302 #define SeriousErrorIn(functionName) \ 303 ::Foam::SeriousError((functionName), __FILE__, __LINE__) 307 #define SeriousErrorInFunction SeriousErrorIn(FUNCTION_NAME) 313 #define SeriousIOErrorIn(functionName, ios) \ 314 ::Foam::SeriousError((functionName), __FILE__, __LINE__, ios) 319 #define SeriousIOErrorInFunction(ios) SeriousIOErrorIn(FUNCTION_NAME, ios) 324 #define WarningIn(functionName) \ 325 ::Foam::Warning((functionName), __FILE__, __LINE__) 329 #define WarningInFunction WarningIn(FUNCTION_NAME) 335 #define IOWarningIn(functionName, ios) \ 336 ::Foam::Warning((functionName), __FILE__, __LINE__, (ios)) 341 #define IOWarningInFunction(ios) IOWarningIn(FUNCTION_NAME, ios) 346 #define InfoIn(functionName) \ 347 ::Foam::Info((functionName), __FILE__, __LINE__) 351 #define InfoInFunction InfoIn(FUNCTION_NAME) 354 #define PoutIn(functionName) \ 355 ::Foam::Pout << (functionName) << ':' 358 #define PoutInFunction PoutIn(FUNCTION_NAME) 362 if (::Foam::infoDetailLevel > 0) Info 376 #define IOInfoIn(functionName, ios) \ 377 ::Foam::Info((functionName), __FILE__, __LINE__, (ios)) 382 #define IOInfoInFunction(ios) IOInfoIn(FUNCTION_NAME, ios) 393 #define DebugInFunction \ 394 if (debug) InfoInFunction 404 #define DebugPoutInFunction \ 405 if (debug) PoutInFunction 409 #define DebugVar(var) \ 411 ::Foam::string oldPrefix(::Foam::Pout.prefix()); \ 412 ::Foam::Pout<< "["<< __FILE__ << ":" << __LINE__ << "] "; \ 413 ::Foam::Pout.prefix() = oldPrefix + #var " "; \ 414 ::Foam::Pout<< var << ::Foam::endl; \ 415 ::Foam::Pout.prefix() = oldPrefix; \ const string & title() const noexcept
The title of this error type.
Generic output stream using a standard (STL) stream.
messageStream InfoErr
Information stream (stderr output on master, null elsewhere)
errorSeverity
Message type, error severity flags.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
int infoDetailLevel
Global for selective suppression of Info output.
std::ostream & stdStream()
Return std::ostream for output operations.
A serious problem - eg, data corruption.
Handle output messages in a simple, consistent stream-based manner.
static int redirect
The output redirection of messages.
messageStream SeriousError
Error stream (stdout output on all processes), with additional 'FOAM Serious Error' header text...
OSstream & stream(OSstream *alternative=nullptr)
Return OSstream for output operations. Use the alternative stream for serial-only output if it is a v...
messageStream Warning
Warning stream (stdout output on master, null elsewhere), with additional 'FOAM Warning' header text...
OSstream & masterStream(const label communicator)
Return OSstream for output operations on the master process only, Snull on other processes.
An IOstream is an abstract base class for all input/output systems; be they streams, files, token lists etc.
int maxErrors() const noexcept
The maximum number of errors before program termination.
messageStream Info
Information stream (stdout output on master, null elsewhere)
Warning of possible problem.
messageStream(const string &title, const errorSeverity severity, const int maxErrors=0)
Construct from components.
General information output (stderr)
General information output (stdout)
static int level
The output level (verbosity) of messages.
OSstream & operator()()
Explicitly convert to OSstream for << operations.