41#ifndef prefixOSstream_H
42#define prefixOSstream_H
68 inline void checkWritePrefix();
79 const string& streamName,
87 const string& streamName,
136 const std::string& val,
137 const bool quoted=
true
153 virtual Ostream&
write(
const char* buf, std::streamsize count);
Representation of a major/minor version number.
The IOstreamOption is a simple container for options an IOstream can normally have.
streamFormat
Data format (ascii | binary)
compressionType
Compression treatment (UNCOMPRESSED | COMPRESSED)
@ UNCOMPRESSED
compression = false
static const versionNumber currentVersion
The current version number (2.0)
Generic output stream using a standard (STL) stream.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Version of OSstream that prints a prefix on each line.
virtual Ostream & writeQuoted(const std::string &val, const bool quoted=true)
Write std::string surrounded by quotes.
virtual void indent()
Add indentation characters.
prefixOSstream(std::ostream &os, const string &streamName, IOstreamOption::streamFormat fmt, IOstreamOption::versionNumber ver=IOstreamOption::currentVersion, IOstreamOption::compressionType cmp=IOstreamOption::UNCOMPRESSED)
Construct and set stream status.
virtual void print(Ostream &os) const
Print stream description to Ostream.
const string & prefix() const noexcept
Return the stream prefix.
string & prefix() noexcept
Return non-const access to the stream prefix.
A token holds an item read from Istream.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)
double doubleScalar
A typedef for double.
float floatScalar
A typedef for float.