Go to the documentation of this file.
35 inline void Foam::prefixOSstream::checkWritePrefix()
37 if (printPrefix_ && !prefix_.empty())
50 const string& streamName,
51 IOstreamOption streamOpt
54 OSstream(
os, streamName, streamOpt),
64 os <<
"prefixOSstream ";
94 const size_t len = strlen(str);
120 const std::string& val,
160 std::streamsize
count
double doubleScalar
Floating-point double precision scalar type.
virtual bool write(const token &tok)
A class for handling words, derived from Foam::string.
virtual void print(Ostream &os) const
float floatScalar
Floating-point single precision scalar type.
virtual Ostream & writeQuoted(const std::string &str, const bool quoted=true)
A token holds an item read from Istream.
virtual bool write(const token &tok)
prefixOSstream(std::ostream &os, const string &streamName, IOstreamOption streamOpt=IOstreamOption())
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)
OBJstream os(runTime.globalPath()/outputName)
unsigned int count(const UList< bool > &bools, const bool val=true)
virtual void print(Ostream &os) const
const dimensionedScalar c
An Ostream is an abstract base class for all output systems (streams, files, token lists,...