Go to the documentation of this file.
53 return fatalCheck(operation);
59 const bool ok = !bad();
64 <<
"error in IOstream " <<
name() <<
" for operation " << operation
74 os <<
"IOstream: " <<
"Version " <<
version() <<
", format "
75 <<
format() <<
", line " << lineNumber();
113 if (streamState == ios_base::goodbit)
115 os <<
"ios_base::goodbit set : the last operation on stream succeeded"
118 else if (streamState & ios_base::badbit)
120 os <<
"ios_base::badbit set : characters possibly lost"
123 else if (streamState & ios_base::failbit)
125 os <<
"ios_base::failbit set : some type of formatting error"
128 else if (streamState & ios_base::eofbit)
130 os <<
"ios_base::eofbit set : at end of stream"
A helper class for outputting values to Ostream.
A class for handling file names.
virtual void print(Ostream &os) const
Print stream description to Ostream.
bool fatalCheck(const char *operation) const
Check IOstream status for given operation.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
word format(conversionProperties.get< word >("format"))
word name(const complex &c)
Return string representation of complex.
virtual const fileName & name() const
Return the name of the stream.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
static fileName staticName_
Name for any generic stream - normally treat as readonly.
errorManipArg< error, int > exit(error &err, const int errNo=1)
const std::string version
OpenFOAM version (name or stringified number) as a std::string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...