Go to the documentation of this file.
53 maxErrors_(maxErrors),
73 Pout<<
"** messageStream with comm:" << communicator <<
endl;
90 const char* functionName,
91 const char* sourceFileName,
92 const int sourceFileLineNumber
98 <<
" From function " << functionName <<
nl
99 <<
" in file " << sourceFileName
100 <<
" at line " << sourceFileLineNumber <<
endl
109 const string& functionName,
110 const char* sourceFileName,
111 const int sourceFileLineNumber
116 functionName.c_str(),
125 const char* functionName,
126 const char* sourceFileName,
127 const int sourceFileLineNumber,
128 const string& ioFileName,
129 const label ioStartLineNumber,
130 const label ioEndLineNumber
136 <<
" From function " << functionName <<
nl
137 <<
" in file " << sourceFileName
138 <<
" at line " << sourceFileLineNumber <<
nl
139 <<
" Reading " << ioFileName;
141 if (ioStartLineNumber >= 0)
143 if (ioStartLineNumber < ioEndLineNumber)
145 os <<
" from line " << ioStartLineNumber
146 <<
" to line " << ioEndLineNumber;
150 os <<
" at line " << ioStartLineNumber;
162 const char* functionName,
163 const char* sourceFileName,
164 const int sourceFileLineNumber,
172 sourceFileLineNumber,
174 ioStream.lineNumber(),
182 const char* functionName,
183 const char* sourceFileName,
184 const int sourceFileLineNumber,
192 sourceFileLineNumber,
207 || severity_ == INFO_STDERR
208 || severity_ == WARNING
221 ? ((severity_ == INFO_STDERR) ?
Serr :
Sout)
226 if (!title().empty())
228 os << title().c_str();
231 if (maxErrors_ && (++errorCount_ >= maxErrors_))
253 "--> FOAM Warning : ",
259 "--> FOAM Serious Error : ",
Warning of possible problem.
static label warnComm
Debugging: warn for use of any communicator differing from warnComm.
static void printStack(Ostream &os)
Helper function to print a stack.
Class to handle messaging in a simple, consistent stream-based manner.
int debugSwitch(const char *name, const int deflt=0)
Lookup debug switch or add default value.
errorSeverity
Message type, or error severity flags.
OSstream & masterStream(const label communicator)
Convert to OSstream.
static bool & parRun()
Is this a parallel run?
static int level
Controls the output verbosity of messageStream.
An IOstream is an abstract base class for all input/output systems; be they streams,...
Ostream & endl(Ostream &os)
Add newline and flush stream.
OSstream Serr
An Ostream wrapper for std::cerr.
A class for handling character strings derived from std::string.
prefixOSstream Pout
An Ostream wrapper for parallel output to std::cout.
messageStream InfoErr
Information stream (uses stderr - output is on the master only)
const fileName & name() const
The dictionary name.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
messageStream Info
Information stream (uses stdout - output is on the master only)
label startLineNumber() const
Return line number of first token in dictionary.
label endLineNumber() const
Return line number of last token in dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
errorManip< error > abort(error &err)
int infoDetailLevel
Global for selective suppression of Info output.
static bool master(const label communicator=0)
Am I the master process.
messageStream SeriousError
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static label worldComm
Default communicator (all processors)
A serious problem - eg, data corruption.
messageStream(const string &title, const errorSeverity severity, const int maxErrors=0)
Construct from components.
OFstream Snull
Global predefined null output stream "/dev/null".
OSstream Sout
An Ostream wrapper for std::cout.
General information output.
Information, but on stderr.