Go to the documentation of this file.
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 :
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);
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);
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.
A token holds an item read from Istream.
os writeQuoted(("# "+outputName+"\n"), false)
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
Get stream flags.
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 start 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 noexcept
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.
virtual void flush()
Flush stream.