48 setState(os_.rdstate());
56 setState(os_.rdstate());
63 return writeQuoted(str);
70 writeQuoted(vs,
false);
72 setState(os_.rdstate());
79 const std::string& str,
90 string::const_iterator iter = str.begin();
134 setState(os_.rdstate());
142 setState(os_.rdstate());
150 setState(os_.rdstate());
158 setState(os_.rdstate());
166 setState(os_.rdstate());
174 setState(os_.rdstate());
182 setState(os_.rdstate());
190 setState(os_.rdstate());
200 <<
"stream format not binary"
205 os_.write(buf,
count);
208 setState(os_.rdstate());
216 for (
unsigned short i = 0; i < indentLevel_*indentSize_; i++)
264 return os_.precision();
270 return os_.precision(
p);
void setState(ios_base::iostate state)
Set stream state.
virtual void endl()
Add newline and flush stream.
virtual void indent()
Add indentation characters.
virtual Ostream & writeQuoted(const std::string &, const bool quoted=true)
Write std::string with optional double quotes.
virtual int precision() const
Get precision of output field.
virtual Ostream & write(const char)
Write character.
virtual int width() const
Get width of output field.
virtual ios_base::fmtflags flags() const
Return flags of output stream.
virtual void flush()
Flush stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A class for handling character strings derived from std::string.
size_type count(const char) const
Count and return the number of a given character in the string.
A class for handling verbatimStrings, derived from string.
A class for handling words, derived from string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
const dimensionedScalar c
Speed of light in a vacuum.
void write(std::ostream &os, const bool binary, List< floatScalar > &fField)
Write floats ascii or binary.
double doubleScalar
Double precision floating point scalar type.
errorManip< error > abort(error &err)
float floatScalar
Float precision floating point scalar type.
label count(const ListType &l, typename ListType::const_reference x)
Count the number of occurrences of a value in a list.
long double longDoubleScalar
Lang double precision floating point scalar type.
word format(conversionProperties.lookup("format"))