35inline void Foam::prefixOSstream::checkWritePrefix()
37 if (printPrefix_ && !prefix_.empty())
50 const string& streamName,
51 IOstreamOption streamOpt
54 OSstream(
os, streamName, streamOpt),
64 os <<
"prefixOSstream ";
104 const size_t len = strlen(str);
174 std::streamsize count
A simple container for options an IOstream can normally have.
OSstream(const OSstream &)=default
Copy construct.
virtual Ostream & writeQuoted(const char *str, std::streamsize len, const bool quoted=true) override
Write character/string content, with/without surrounding quotes.
virtual void print(Ostream &os) const override
Print stream description to Ostream.
virtual void indent() override
Add indentation characters.
virtual bool write(const token &tok) override
Write token to stream or otherwise handle it.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual Ostream & writeQuoted(const char *str, std::streamsize len, const bool quoted=true) override
Write character/string content, with/without surrounding quotes.
virtual void print(Ostream &os) const override
Print stream description to Ostream.
virtual void indent() override
Add indentation characters.
prefixOSstream(std::ostream &os, const string &streamName, IOstreamOption streamOpt=IOstreamOption())
Construct and set stream status.
virtual bool write(const token &tok) override
Write token to stream or otherwise handle it.
A token holds an item read from Istream.
A class for handling words, derived from Foam::string.
OBJstream os(runTime.globalPath()/outputName)