Go to the documentation of this file.
23 #ifndef __Ostream_hpp__
24 #define __Ostream_hpp__
83 virtual ios_base::fmtflags
flags()
const;
135 void seek(
size_t pos)
override;
141 ios_base::fmtflags
flags(
const ios_base::fmtflags f)
override;
150 void flush()
override;
153 void endl()
override;
156 char fill()
const override;
160 char fill(
const char fillch)
override;
163 int width()
const override;
167 int width(
const int w)
override;
194 #endif //__Ostream_hpp__
iOstream & writeQuoted(const word &str, const bool quoted=true) override
Write std::string surrounded by quotes.
virtual ios_base::fmtflags flags() const
Return flags of output stream.
void flush() override
Flush stream.
void operator=(const Ostream &)=delete
No copy assignment.
Token class based on OpenFOAM stream, with some modifications/simplifications to be tailored to our n...
void indent() override
Add indentation characters.
int width() const override
Get width of output field.
void endOfBinaryStreaming() override
Reach end of file add a new line and flush stream.
char fill() const override
Get the current padding character.
int precision() const override
Get precision of output field.
void endl() override
Add newline and flush stream.
virtual word & name()
Return non-const access to the name of the stream.
virtual const word & name() const
Return the name of the stream.
void startOfBinaryStreaming() override
Add a new line and flush stream.
iOstream & writeBinaryBlockFlag() override
Write the flag to indicate the start of a binary block.
void seek(size_t pos) override
auto count(const Vector< T, Allocator > &vec, const T &val)
Ostream(std::ostream &os, const word &streamName, writeFormat wf=ASCII)
Construct from components.
virtual std::ostream & stdStream()
Access to underlying std::ostream.
std::ostream & os_
Output stream.
unsigned long long int uint64
bool write(const token &tok) override
Write token to stream or otherwise handle it.
virtual const std::ostream & stdStream() const
Const access to underlying std::ostream.
Standard output stream for BINARY and ASCII formats.
Interface class for any output stream.