96 setState(os_.rdstate());
105 setState(os_.rdstate());
113 setState(os_.rdstate());
120 const std::string& str,
130 setState(os_.rdstate());
138 unsigned backslash = 0;
139 for (
auto iter = str.cbegin(); iter != str.cend(); ++iter)
141 const char c = *iter;
172 setState(os_.rdstate());
186 setState(os_.rdstate());
194 setState(os_.rdstate());
202 setState(os_.rdstate());
210 setState(os_.rdstate());
217 beginRawWrite(count);
218 writeRaw(
data, count);
230 <<
"stream format not binary"
235 setState(os_.rdstate());
244 setState(os_.rdstate());
253 std::streamsize count
260 setState(os_.rdstate());
268 for (
unsigned short i = 0; i < indentLevel_*indentSize_; ++i)
310 return os_.fill(fillch);
328 return os_.precision();
334 return os_.precision(
p);
virtual void endl()
Add newline and flush stream.
virtual Ostream & writeRaw(const char *data, std::streamsize count)
Low-level raw binary output.
virtual void indent()
Add indentation characters.
virtual bool beginRawWrite(std::streamsize count)
Begin marker for low-level raw binary output.
virtual int precision() const
Get precision of output field.
virtual char fill() const
Get the current padding character.
virtual bool endRawWrite()
End marker for low-level raw binary output.
virtual int width() const
Get width of output field.
virtual ios_base::fmtflags flags() const
Get stream flags.
virtual void flush()
Flush stream.
virtual Ostream & writeQuoted(const std::string &str, const bool quoted=true)
Write std::string surrounded by quotes.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
Database for solution data, solver performance and other reduced data.
virtual bool write()
Write the output fields.
A token holds an item read from Istream.
@ FLAG
stream flag (1-byte bitmask)
@ BEGIN_BLOCK
Begin block [isseparator].
@ END_BLOCK
End block [isseparator].
@ HASH
Hash - directive or start verbatim string.
@ BEGIN_LIST
Begin list [isseparator].
@ END_LIST
End list [isseparator].
const string & stringToken() const
Return const reference to the string contents.
tokenType type() const noexcept
Return the token type.
const word & wordToken() const
Return const reference to the word contents.
A class for handling words, derived from Foam::string.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
os writeQuoted(("# "+outputName+"\n"), false)
std::string::size_type count(const std::string &s, const char c)
Count the number of occurrences of the specified character.
double doubleScalar
A typedef for double.
float floatScalar
A typedef for float.
errorManip< error > abort(error &err)
word format(conversionProperties.get< word >("format"))