Go to the documentation of this file.
42 case token::tokenType::FLAG :
48 case token::tokenType::VERBATIMSTRING :
59 case token::tokenType::VARIABLE :
81 setState(os_.rdstate());
90 setState(os_.rdstate());
98 setState(os_.rdstate());
105 const std::string& str,
115 setState(os_.rdstate());
123 unsigned backslash = 0;
124 for (
auto iter = str.cbegin(); iter != str.cend(); ++iter)
126 const char c = *iter;
157 setState(os_.rdstate());
164 return writeQuoted(str,
true);
171 setState(os_.rdstate());
179 setState(os_.rdstate());
187 setState(os_.rdstate());
195 setState(os_.rdstate());
202 beginRawWrite(
count);
215 <<
"stream format not binary"
220 setState(os_.rdstate());
229 setState(os_.rdstate());
238 std::streamsize
count
245 setState(os_.rdstate());
253 for (
unsigned short i = 0; i < indentLevel_*indentSize_; ++i)
295 return os_.fill(fillch);
313 return os_.precision();
319 return os_.precision(
p);
label ListType::const_reference val
double doubleScalar
Floating-point double precision scalar type.
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
Floating-point single precision scalar type.
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.
std::string::size_type count(const std::string &str, const char c)
Count the number of occurrences of the specified character.
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].
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.
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.