Go to the documentation of this file.
84 const string& streamName,
92 const string& streamName,
121 virtual ios_base::fmtflags
flags()
const;
149 const std::string& str,
150 const bool quoted=
true
172 std::streamsize
count
190 virtual ios_base::fmtflags
flags(
const ios_base::fmtflags
f);
193 virtual void flush();
199 virtual char fill()
const;
203 virtual char fill(
const char fillch);
206 virtual int width()
const;
210 virtual int width(
const int w);
229 virtual const std::ostream&
stdStream()
const
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.
A class for handling file names.
constexpr IOstreamOption(streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept
virtual const std::ostream & stdStream() const
Const access to underlying std::ostream.
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.
static const versionNumber currentVersion
The current version number (2.0)
A token holds an item read from Istream.
void operator=(const OSstream &)=delete
No copy assignment.
virtual Ostream & writeRaw(const char *data, std::streamsize count)
Low-level raw binary output.
Representation of a major/minor version number.
virtual const fileName & name() const
Return the name of the stream.
virtual std::ostream & stdStream()
Access to underlying std::ostream.
OSstream(const OSstream &)=default
Copy construct.
The IOstreamOption is a simple container for options an IOstream can normally have.
virtual char fill() const
Get the current padding character.
virtual ios_base::fmtflags flags() const
Return flags of output stream.
Generic output stream using a standard (STL) stream.
virtual bool endRawWrite()
End marker for low-level raw binary output.
streamFormat
Data format (ascii | binary)
virtual int precision() const
Get precision of output field.
virtual void indent()
Add indentation characters.
virtual void endl()
Add newline and flush stream.
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
virtual void print(Ostream &os) const
Print stream description to Ostream.
const dimensionedScalar c
Speed of light in a vacuum.
compressionType
Compression treatment (UNCOMPRESSED | COMPRESSED)
Ostream(const Ostream &)=default
Copy 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 void flush()
Flush stream.