Go to the documentation of this file.
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();
streamFormat format() const
Return current stream format.
word format(conversionProperties.lookup("format"))
void fatalCheck(const char *operation) const
Check IOstream status for given operation.
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
A class for handling words, derived from string.
A helper class for outputting values to Ostream.
A class for handling file names.
compressionType
Enumeration for the format of data in the stream.
Ostream & endl(Ostream &os)
Add newline and flush stream.
bool valid() const
Return true if the Switch has a valid value.
A class for handling character strings derived from std::string.
virtual void print(Ostream &) const
Print description of IOstream to Ostream.
static streamFormat formatEnum(const word &)
Return stream format of given format name.
string str() const
Return the versionNumber as a character string.
Ostream & operator<<(Ostream &, const edgeMesh &)
IOstream & fixed(IOstream &io)
virtual bool check(const char *operation) const
Check IOstream status for given operation.
volScalarField sf(fieldObject, mesh)
static compressionType compressionEnum(const word &)
Return compression of given compression name.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#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,...
static fileName name_
Name of the stream.
#define WarningInFunction
Report a warning using Foam::Warning.
word name(const complex &)
Return a string representation of a complex.
streamFormat
Enumeration for the format of data in the stream.