Go to the documentation of this file.
42 case token::tokenType::FLAG :
48 case token::tokenType::DIRECTIVE :
56 case token::tokenType::VERBATIM :
68 case token::tokenType::VARIABLE :
90 setState(os_.rdstate());
99 setState(os_.rdstate());
107 setState(os_.rdstate());
114 const std::string& str,
124 setState(os_.rdstate());
132 unsigned backslash = 0;
133 for (
auto iter = str.cbegin(); iter != str.cend(); ++iter)
135 const char c = *iter;
166 setState(os_.rdstate());
173 return writeQuoted(str,
true);
180 setState(os_.rdstate());
188 setState(os_.rdstate());
196 setState(os_.rdstate());
204 setState(os_.rdstate());
211 beginRawWrite(
count);
224 <<
"stream format not binary"
229 setState(os_.rdstate());
238 setState(os_.rdstate());
247 std::streamsize
count
254 setState(os_.rdstate());
262 for (
unsigned short i = 0; i < indentLevel_*indentSize_; ++i)
304 return os_.fill(fillch);
322 return os_.precision();
328 return os_.precision(
p);
double doubleScalar
A typedef for double.
virtual bool write(const token &tok)
Write token to stream or otherwise handle it.
A class for handling words, derived from Foam::string.
const string & stringToken() const
Return const reference to the string contents.
float floatScalar
A typedef for float.
virtual bool beginRawWrite(std::streamsize count)
Begin marker for low-level raw binary output.
virtual int width() const
Get width of output field.
virtual Ostream & writeQuoted(const std::string &str, const bool quoted=true)
Write std::string surrounded by quotes.
End string with double quote.
A token holds an item read from Istream.
virtual Ostream & writeRaw(const char *data, std::streamsize count)
Low-level raw binary output.
word format(conversionProperties.get< word >("format"))
virtual char fill() const
Get the current padding character.
virtual ios_base::fmtflags flags() const
Return flags of output stream.
virtual bool endRawWrite()
End marker for low-level raw binary output.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
Hash - directive or verbatim string.
errorManip< error > abort(error &err)
Begin block [isseparator].
const word & wordToken() const
Return const reference to the word contents.
virtual int precision() const
Get precision of output field.
virtual void indent()
Add indentation characters.
tokenType type() const
Return the token type.
virtual void endl()
Add newline and flush stream.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
const dimensionedScalar c
Speed of light in a vacuum.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
std::string::size_type count(const std::string &s, const char c)
Count the number of occurrences of the specified character.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Begin list [isseparator].
Database for solution data, solver performance and other reduced data.
Begin string with double quote.
virtual void flush()
Flush stream.