60 return fatalCheck(operation);
66 const bool ok = !bad();
71 <<
"error in IOstream " << relativeName()
72 <<
" for operation " << operation
82 os <<
"IOstream: " <<
"Version " << version() <<
", format "
83 <<
format() <<
", line " << lineNumber();
121 if (streamState == ios_base::goodbit)
123 os <<
"ios_base::goodbit set : the last operation on stream succeeded"
126 else if (streamState & ios_base::badbit)
128 os <<
"ios_base::badbit set : characters possibly lost"
131 else if (streamState & ios_base::failbit)
133 os <<
"ios_base::failbit set : some type of formatting error"
136 else if (streamState & ios_base::eofbit)
138 os <<
"ios_base::eofbit set : at end of stream"
bool fatalCheck(const char *operation) const
Check IOstream status for given operation.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
virtual const fileName & name() const
Return the name of the stream.
static fileName staticName_
Name for any generic stream - normally treat as readonly.
fileName relativeName() const
Return the name of the stream relative to the current case.
A helper class for outputting values to Ostream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static fileName envRelativePath(const fileName &input, const bool caseTag=false)
A class for handling file names.
scalar print()
Print to screen.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
OBJstream os(runTime.globalPath()/outputName)
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
word format(conversionProperties.get< word >("format"))