Go to the documentation of this file.
84 const string& streamName,
92 const string& streamName,
120 virtual ios_base::fmtflags
flags()
const;
148 const std::string& str,
149 const bool quoted=
true
171 std::streamsize
count
189 virtual ios_base::fmtflags
flags(
const ios_base::fmtflags
f);
192 virtual void flush();
198 virtual char fill()
const;
202 virtual char fill(
const char fillch);
205 virtual int width()
const;
209 virtual int width(
const int w);
228 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
Get 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
Get stream flags.
Generic output stream using a standard (STL) stream.
virtual fileName & name()
Return stream name for modification.
virtual bool endRawWrite()
End marker for low-level raw binary output.
streamFormat
Data format (ascii | binary)
OBJstream os(runTime.globalPath()/outputName)
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)
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.