84 for (string::const_iterator iter = str.begin(); iter != str.end(); ++iter)
126 const std::string& str,
137 string::const_iterator iter = str.begin();
223 <<
"stream format not binary" 228 os_.write(buf, count);
287 return os_.precision();
293 return os_.precision(p);
unsigned short indentLevel_
Current indent level.
size_type count(const char) const
Count and return the number of a given character in the string.
virtual ios_base::fmtflags flags() const
Return flags of output stream.
virtual int precision() const
Get precision of output field.
A token holds items read from Istream.
virtual void endl()
Add newline and flush stream.
virtual Ostream & writeQuoted(const std::string &, const bool quoted=true)
Write std::string surrounded by quotes.
virtual void indent()
Add indentation characters.
A class for handling words, derived from string.
virtual void flush()
Flush stream.
float floatScalar
Float precision floating point scalar type.
double doubleScalar
Double precision floating point scalar type.
streamFormat format() const
Return current stream format.
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const string & stringToken() const
virtual Ostream & write(const token &)
Write next token to stream.
virtual int width() const
Get width of output field.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
const dimensionedScalar c
Speed of light in a vacuum.
static const unsigned short indentSize_
Number of spaces per indent level.
void setState(ios_base::iostate state)
Set stream state.
A class for handling character strings derived from std::string.