Go to the documentation of this file.
53 maxErrors_(maxErrors),
73 Pout<<
"** messageStream with comm:" << communicator <<
endl;
90 const string& functionName
96 <<
" From " << functionName.c_str() <<
nl;
104 const char* functionName,
105 const char* sourceFileName,
106 const int sourceFileLineNumber
112 <<
" From " << functionName <<
nl
113 <<
" in file " << sourceFileName
114 <<
" at line " << sourceFileLineNumber <<
endl
123 const string& functionName,
124 const char* sourceFileName,
125 const int sourceFileLineNumber
130 functionName.c_str(),
139 const char* functionName,
140 const char* sourceFileName,
141 const int sourceFileLineNumber,
142 const string& ioFileName,
143 const label ioStartLineNumber,
144 const label ioEndLineNumber
150 <<
" From " << functionName <<
nl
151 <<
" in file " << sourceFileName
152 <<
" at line " << sourceFileLineNumber <<
nl
153 <<
" Reading " << ioFileName;
155 if (ioStartLineNumber >= 0)
157 os <<
" at line " << ioStartLineNumber;
159 if (ioStartLineNumber < ioEndLineNumber)
161 os <<
" to " << ioEndLineNumber;
173 const char* functionName,
174 const char* sourceFileName,
175 const int sourceFileLineNumber,
183 sourceFileLineNumber,
185 ioStream.lineNumber(),
193 const char* functionName,
194 const char* sourceFileName,
195 const int sourceFileLineNumber,
203 sourceFileLineNumber,
220 (severity_ == INFO_STDERR)
227 || severity_ == WARNING
247 if (!title().empty())
249 os << title().c_str();
252 if (maxErrors_ && (++errorCount_ >= maxErrors_))
274 "--> FOAM Warning : ",
280 "--> 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
Control 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.
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.
Generic output stream using a standard (STL) stream.
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.