42 if (format ==
"ascii")
46 else if (format ==
"binary")
52 WarningIn(
"IOstream::formatEnum(const word&)")
53 <<
"bad format specifier '" << format <<
"', using 'ascii'"
64 if (compression ==
"uncompressed")
68 else if (compression ==
"compressed")
74 WarningIn(
"IOstream::compressionEnum(const word&)")
75 <<
"bad compression specifier '" << compression
76 <<
"', using 'uncompressed'"
92 "IOstream::check(const char*) const", *
this
93 ) <<
"error in IOstream " <<
name() <<
" for operation " << operation
107 "IOstream::fatalCheck(const char*) const", *
this
108 ) <<
"error in IOstream " <<
name() <<
" for operation " << operation
116 std::ostringstream os;
119 os << versionNumber_;
126 os <<
"IOstream: " <<
"Version " << version_ <<
", format ";
139 os <<
", line " << lineNumber();
177 if (streamState == ios_base::goodbit)
179 os <<
"ios_base::goodbit set : the last operation on stream succeeded"
182 else if (streamState & ios_base::badbit)
184 os <<
"ios_base::badbit set : characters possibly lost"
187 else if (streamState & ios_base::failbit)
189 os <<
"ios_base::failbit set : some type of formatting error"
192 else if (streamState & ios_base::eofbit)
194 os <<
"ios_base::eofbit set : at end of stream"
219 os << vn.
str().c_str();
228 # if defined (__GNUC__)
231 Ostream& operator<<(Ostream& os, const InfoProxy<IOstream>& ip)