53 #ifndef Foam_messageStream_H 54 #define Foam_messageStream_H 179 const int afterVersion,
180 const char* functionName,
181 const char* sourceFileName,
182 const int sourceFileLineNumber = 0
201 const std::string& functionName
208 const char* functionName,
209 const char* sourceFileName,
210 const int sourceFileLineNumber = 0
217 const std::string& functionName,
218 const char* sourceFileName,
219 const int sourceFileLineNumber = 0
227 const char* functionName,
228 const char* sourceFileName,
229 const int sourceFileLineNumber,
230 const std::string& ioFileName,
231 const label ioStartLineNumber = -1,
232 const label ioEndLineNumber = -1
240 const char* functionName,
241 const char* sourceFileName,
242 const int sourceFileLineNumber,
251 const char* functionName,
252 const char* sourceFileName,
253 const int sourceFileLineNumber,
305 #define FUNCTION_NAME __PRETTY_FUNCTION__ 307 #define FUNCTION_NAME __func__ 313 #define SeriousErrorIn(functionName) \ 314 ::Foam::SeriousError((functionName), __FILE__, __LINE__) 318 #define SeriousErrorInFunction SeriousErrorIn(FUNCTION_NAME) 324 #define SeriousIOErrorIn(functionName, ios) \ 325 ::Foam::SeriousError((functionName), __FILE__, __LINE__, ios) 330 #define SeriousIOErrorInFunction(ios) SeriousIOErrorIn(FUNCTION_NAME, ios) 335 #define WarningIn(functionName) \ 336 ::Foam::Warning((functionName), __FILE__, __LINE__) 340 #define WarningInFunction WarningIn(FUNCTION_NAME) 344 #define DeprecatedInFunction(afterVersion) \ 345 ::Foam::Warning.deprecated(afterVersion, FUNCTION_NAME, __FILE__, __LINE__) 351 #define IOWarningIn(functionName, ios) \ 352 ::Foam::Warning((functionName), __FILE__, __LINE__, (ios)) 357 #define IOWarningInFunction(ios) IOWarningIn(FUNCTION_NAME, ios) 362 #define InfoIn(functionName) \ 363 ::Foam::Info((functionName), __FILE__, __LINE__) 367 #define InfoInFunction InfoIn(FUNCTION_NAME) 370 #define PoutIn(functionName) \ 371 ::Foam::Pout << (functionName) << ':' 374 #define PoutInFunction PoutIn(FUNCTION_NAME) 378 if (::Foam::infoDetailLevel > 0) Info 392 #define IOInfoIn(functionName, ios) \ 393 ::Foam::Info((functionName), __FILE__, __LINE__, (ios)) 398 #define IOInfoInFunction(ios) IOInfoIn(FUNCTION_NAME, ios) 409 #define DebugInFunction \ 410 if (debug) InfoInFunction 420 #define DebugPoutInFunction \ 421 if (debug) PoutInFunction 425 #define DebugVar(var) \ 427 ::Foam::string oldPrefix(::Foam::Pout.prefix()); \ 428 ::Foam::Pout<< "["<< __FILE__ << ":" << __LINE__ << "] "; \ 429 ::Foam::Pout.prefix() = oldPrefix + #var " "; \ 430 ::Foam::Pout<< var << ::Foam::endl; \ 431 ::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 & deprecated(const int afterVersion, const char *functionName, const char *sourceFileName, const int sourceFileLineNumber=0)
Report deprecation (after specified API version) with 'From function-name, source file...
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.