139 const std::string& str,
140 const bool quoted=
true
180 virtual ios_base::fmtflags
flags()
const
182 return ios_base::fmtflags(0);
186 std::ios_base::fmtflags
flags(
const ios_base::fmtflags)
188 return ios_base::fmtflags(0);
201 virtual char fill()
const
207 virtual char fill(
const char)
213 virtual int width()
const
220 virtual int width(
const int)
260 #ifdef Foam_IOstream_extras
A 1D vector of objects of type <T> that resizes itself as necessary to accept the new objects.
void clear() noexcept
Clear the addressed list, i.e. set the size to zero.
Representation of a major/minor version number.
The IOstreamOption is a simple container for options an IOstream can normally have.
versionNumber version() const noexcept
Get the stream version.
streamFormat format() const noexcept
Get the current stream format.
streamFormat
Data format (ascii | binary)
static const versionNumber currentVersion
The current version number (2.0)
void setGood() noexcept
Set stream state to be good.
void setOpened() noexcept
Set stream opened.
A simple output token stream that can be used to build token lists. Always UNCOMPRESSED.
OTstream(IOstreamOption streamOpt=IOstreamOption())
Default construct, set stream status.
virtual Ostream & writeRaw(const char *data, std::streamsize count)
Low-level raw binary output.
virtual char fill() const
Get the current padding character.
virtual void indent()
Add indentation characters.
virtual char fill(const char)
Set padding character for formatted field up to field width.
virtual void endl()
Add newline and flush stream.
virtual bool beginRawWrite(std::streamsize count)
Begin marker for low-level raw binary output.
void print(Ostream &os) const
Print stream description to Ostream.
OTstream(const OTstream &os)
Copy construct.
virtual int width() const
Get width of output field.
~OTstream()=default
Destructor.
std::ios_base::fmtflags flags(const ios_base::fmtflags)
Set flags of stream - ignored.
DynamicList< token > & tokens()
The tokens.
void reset()
Reset the output buffer and rewind the stream.
virtual void flush()
Flush stream.
OTstream(OTstream &&os)
Move construct.
virtual Ostream & writeQuoted(const std::string &str, const bool quoted=true)
Write std::string surrounded by quotes.
virtual bool endRawWrite()
End marker for low-level raw binary output.
virtual ios_base::fmtflags flags() const
Get flags of output stream.
virtual void rewind()
Rewind the output stream.
virtual int precision() const
Get precision of output field.
const DynamicList< token > & tokens() const
The tokens.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Database for solution data, solver performance and other reduced data.
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.