45 maxErrors_(maxErrors),
53 const char* sourceFileName,
54 const int sourceFileLineNumber
61 <<
" in file " << sourceFileName
62 <<
" at line " << sourceFileLineNumber <<
endl
72 const char* sourceFileName,
73 const int sourceFileLineNumber
88 const char* sourceFileName,
89 const int sourceFileLineNumber,
90 const string& ioFileName,
91 const label ioStartLineNumber,
92 const label ioEndLineNumber
99 <<
" in file " << sourceFileName
100 <<
" at line " << sourceFileLineNumber <<
endl
101 <<
" Reading " << ioFileName;
103 if (ioStartLineNumber >= 0 && ioEndLineNumber >= 0)
105 os <<
" from line " << ioStartLineNumber
106 <<
" to line " << ioEndLineNumber;
108 else if (ioStartLineNumber >= 0)
110 os <<
" at line " << ioStartLineNumber;
122 const char* sourceFileName,
123 const int sourceFileLineNumber,
131 sourceFileLineNumber,
133 ioStream.lineNumber(),
142 const char* sourceFileName,
143 const int sourceFileLineNumber,
151 sourceFileLineNumber,
161 if (communicator != -1)
165 Pout<<
"** messageStream with comm:" << communicator
179 const bool collect = severity_ == INFO || severity_ == WARNING;
187 if (!master && collect)
195 os << title().c_str();
202 if (errorCount_ >= maxErrors_)
222 "--> FOAM Serious Error : ",
229 "--> FOAM Warning : ",
An IOstream is an abstract base class for all input/output systems; be they streams,...
static label warnComm
Debugging: warn for use of any communicator differing from warnComm.
static bool master(const label communicator=0)
Am I the master process.
static label worldComm
Default communicator (all processors)
static bool & parRun()
Is this a parallel run?
const fileName & name() const
Return the dictionary name.
A list of keyword definitions, which are a keyword followed by any number of values (e....
label endLineNumber() const
Return line number of last token in dictionary.
label startLineNumber() const
Return line number of first token in dictionary.
static void printStack(Ostream &)
Helper function to print a stack.
A functionName is a word starting with '#'.
Class to handle messaging in a simple, consistent stream-based manner.
errorSeverity
Severity flags.
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.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
int debugSwitch(const char *name, const int defaultValue=0)
Lookup debug switch or add default value.
OFstream Snull
Global predefined null output stream "/dev/null".
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Ostream & endl(Ostream &os)
Add newline and flush stream.
errorManip< error > abort(error &err)
messageStream SeriousError
prefixOSstream Pout(cout, "Pout")
prefixOSstream Sout(cout, "Sout")