45 else if (
format ==
"binary")
52 <<
"bad format specifier '" <<
format <<
"', using 'ascii'"
64 Switch sw(compression,
true);
70 else if (compression ==
"uncompressed")
74 else if (compression ==
"compressed")
81 <<
"bad compression specifier '" << compression
82 <<
"', using 'uncompressed'"
97 <<
"error in IOstream " <<
name() <<
" for operation " << operation
110 <<
"error in IOstream " <<
name() <<
" for operation " << operation
118 std::ostringstream os;
121 os << versionNumber_;
128 os <<
"IOstream: " <<
"Version " << version_ <<
", format ";
141 os <<
", line " << lineNumber();
179 if (streamState == ios_base::goodbit)
181 os <<
"ios_base::goodbit set : the last operation on stream succeeded"
184 else if (streamState & ios_base::badbit)
186 os <<
"ios_base::badbit set : characters possibly lost"
189 else if (streamState & ios_base::failbit)
191 os <<
"ios_base::failbit set : some type of formatting error"
194 else if (streamState & ios_base::eofbit)
196 os <<
"ios_base::eofbit set : at end of stream"
221 os << vn.
str().c_str();
string str() const
Return the versionNumber as a character string.
streamFormat format() const
Return current stream format.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
void fatalCheck(const char *operation) const
Check IOstream status for given operation.
streamFormat
Enumeration for the format of data in the stream.
static streamFormat formatEnum(const word &)
Return stream format of given format name.
virtual void print(Ostream &) const
Print description of IOstream to Ostream.
compressionType
Enumeration for the format of data in the stream.
static compressionType compressionEnum(const word &)
Return compression of given compression name.
A helper class for outputting values to Ostream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
bool valid() const
Return true if the Switch has a valid value.
A class for handling file names.
A class for handling character strings derived from std::string.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
volScalarField sf(fieldObject, mesh)
#define WarningInFunction
Report a warning using Foam::Warning.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Ostream & endl(Ostream &os)
Add newline and flush stream.
word name(const bool)
Return a word representation of a bool.
IOstream & fixed(IOstream &io)
Ostream & operator<<(Ostream &os, const fvConstraints &constraints)
word format(conversionProperties.lookup("format"))