Go to the documentation of this file.
149 const std::string& str,
150 const bool quoted=
true
199 virtual char fill()
const
205 virtual char fill(
const char)
211 virtual int width()
const
218 virtual int width(
const int)
240 virtual ios_base::fmtflags
flags()
const
242 return ios_base::fmtflags(0);
249 ios_base::fmtflags
flags(
const ios_base::fmtflags)
251 return ios_base::fmtflags(0);
virtual void endl()
Add newline and flush stream.
virtual char fill(const char)
Set padding character for formatted field up to field width.
virtual bool write(const token &tok)
Write token to stream or otherwise handle it.
double doubleScalar
A typedef for double.
virtual Ostream & writeQuoted(const std::string &str, const bool quoted=true)
Write std::string surrounded by quotes.
A class for handling words, derived from Foam::string.
OTstream(IOstreamOption streamOpt=IOstreamOption())
Default construct, set stream status.
constexpr IOstreamOption(streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
float floatScalar
A typedef for float.
virtual bool endRawWrite()
End marker for low-level raw binary output.
virtual void rewind()
Rewind the output stream.
streamFormat format() const noexcept
Get the current stream format.
static const versionNumber currentVersion
The current version number (2.0)
void print(Ostream &os) const
Print stream description to Ostream.
A token holds an item read from Istream.
void setOpened()
Set stream opened.
ios_base::fmtflags flags(const ios_base::fmtflags)
Set flags of stream.
virtual int precision() const
Get precision of output field.
Representation of a major/minor version number.
virtual int width() const
Get width of output field.
void reset()
Reset the output buffer and rewind the stream.
virtual Ostream & writeRaw(const char *data, std::streamsize count)
Low-level raw binary output.
OTstream(const OTstream &os)
Copy construct.
void clear()
Clear the addressed list, i.e. set the size to zero.
The IOstreamOption is a simple container for options an IOstream can normally have.
virtual void indent()
Add indentation characters.
versionNumber version() const noexcept
Get the stream version.
streamFormat
Data format (ascii | binary)
~OTstream()=default
Destructor.
virtual ios_base::fmtflags flags() const
Return flags of output stream.
A simple output token stream that can be used to build token lists. Always UNCOMPRESSED.
void setGood()
Set stream to be good.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
const DynamicList< token > & tokens() const
The tokens.
virtual char fill() const
Get the current padding character.
const dimensionedScalar c
Speed of light in a vacuum.
virtual void flush()
Flush stream.
OTstream(OTstream &&os)
Move construct.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Database for solution data, solver performance and other reduced data.
virtual bool beginRawWrite(std::streamsize count)
Begin marker for low-level raw binary output.
DynamicList< token > & tokens()
The tokens.