Go to the documentation of this file.
41 #ifndef prefixOSstream_H
42 #define prefixOSstream_H
68 inline void checkWritePrefix();
79 const string& streamName,
87 const string& streamName,
102 const string&
prefix() const noexcept
136 const std::string& val,
137 const bool quoted=
true
double doubleScalar
A typedef for double.
string & prefix() noexcept
Return non-const access to the stream prefix.
A class for handling words, derived from Foam::string.
virtual void print(Ostream &os) const
Print stream description to Ostream.
constexpr IOstreamOption(streamFormat fmt=streamFormat::ASCII, compressionType comp=compressionType::UNCOMPRESSED) noexcept
virtual void indent()
Add indentation characters.
float floatScalar
A typedef for float.
static const versionNumber currentVersion
The current version number (2.0)
A token holds an item read from Istream.
virtual bool write(const token &tok)
Write token to stream or otherwise handle it.
prefixOSstream(std::ostream &os, const string &streamName, IOstreamOption streamOpt=IOstreamOption())
Construct and set stream status.
Version of OSstream that prints a prefix on each line.
Representation of a major/minor version number.
The IOstreamOption is a simple container for options an IOstream can normally have.
Generic output stream using a standard (STL) stream.
virtual Ostream & writeQuoted(const std::string &val, const bool quoted=true)
Write std::string surrounded by quotes.
streamFormat
Data format (ascii | binary)
OBJstream os(runTime.globalPath()/outputName)
unsigned int count(const UList< bool > &bools, const bool val=true)
Count number of 'true' entries.
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,...
const string & prefix() const noexcept
Return the stream prefix.