42 case token::tokenType::FLAG :
48 case token::tokenType::DIRECTIVE :
55 case token::tokenType::EXPRESSION :
62 case token::tokenType::VARIABLE :
69 case token::tokenType::VERBATIM :
120 const std::string& str,
138 unsigned backslash = 0;
139 for (
auto iter = str.cbegin(); iter != str.cend(); ++iter)
141 const char c = *iter;
217 beginRawWrite(
count);
230 <<
"stream format not binary" 251 std::streamsize
count 265 for (
unsigned short i = 0; i < indentLevel_*indentSize_; ++i)
296 return os_.fill(fillch);
314 return os_.precision();
320 return os_.precision(
p);
virtual bool endRawWrite()
End marker for low-level raw binary output.
Begin block [isseparator].
virtual char fill() const
Get the current padding character.
virtual int precision() const
Get precision of output field.
const word & wordToken() const
Return const reference to the word contents.
A token holds an item read from Istream.
virtual void endl()
Add newline and flush stream.
tokenType type() const noexcept
Return the token type.
virtual void indent()
Add indentation characters.
Begin list [isseparator].
os writeQuoted(("# "+outputName+"\), false)
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
A class for handling words, derived from Foam::string.
virtual void flush()
Flush stream.
virtual bool write(const token &tok)=0
Write token to stream or otherwise handle it.
errorManip< error > abort(error &err)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual bool write(const token &tok)
Write token to stream or otherwise handle it.
virtual Ostream & writeQuoted(const std::string &str, const bool quoted=true)
Write std::string surrounded by quotes.
Database for solution data, solver performance and other reduced data.
const string & stringToken() const
Return const reference to the string contents.
word format(conversionProperties.get< word >("format"))
virtual bool beginRawWrite(std::streamsize count)
Begin marker for low-level raw binary output.
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.
std::string::size_type count(const std::string &s, const char c)
Count the number of occurrences of the specified character.
virtual Ostream & writeRaw(const char *data, std::streamsize count)
Low-level raw binary output.
Hash - directive or start verbatim string.
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...