![]() |
|
Public Member Functions | |
OSstream (ostream &os, const string &name, streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED) | |
Set stream status. | |
virtual const fileName & | name () const |
Return the name of the stream. | |
virtual fileName & | name () |
Return non-const access to the name of the stream. | |
virtual ios_base::fmtflags | flags () const |
Return flags of output stream. | |
virtual Ostream & | write (const token &) |
Write next token to stream. | |
virtual Ostream & | write (const char) |
Write character. | |
virtual Ostream & | write (const char *) |
Write character string. | |
virtual Ostream & | write (const word &) |
Write word. | |
virtual Ostream & | write (const string &) |
Write string. | |
virtual Ostream & | write (const label) |
Write label. | |
virtual Ostream & | write (const floatScalar) |
Write floatScalar. | |
virtual Ostream & | write (const doubleScalar) |
Write doubleScalar. | |
virtual Ostream & | write (const char *, std::streamsize) |
Write binary block. | |
virtual void | indent () |
Add indentation characters. | |
virtual ios_base::fmtflags | flags (const ios_base::fmtflags flags) |
Set flags of output stream. | |
virtual void | flush () |
Flush stream. | |
virtual void | endl () |
Add ' ' and flush stream. | |
virtual int | width () const |
Get width of output field. | |
virtual int | width (const int w) |
Set width of output field (and return old width). | |
virtual int | precision () const |
Get precision of output field. | |
virtual int | precision (const int p) |
Set precision of output field (and return old precision). | |
virtual void | print (Ostream &) const |
Print description of IOstream to Ostream. | |
Protected Member Functions | |
ostream & | stream () |
Return the stream reference. | |
const ostream & | stream () const |
Return the const stream reference. |
|
Set stream status.
Definition at line 89 of file OSstream.H. |
|
Add '
Implements Ostream. |
|
Set flags of output stream.
|
|
Return flags of output stream.
Implements IOstream. |
|
Flush stream.
Implements Ostream. |
|
Add indentation characters.
Implements Ostream. Reimplemented in prefixOSstream. |
|
Return non-const access to the name of the stream. Useful to alter the stream name Reimplemented from IOstream. Reimplemented in OFstream. Definition at line 131 of file OSstream.H. |
|
Return the name of the stream. Useful for Fstream to return the filename Reimplemented from IOstream. Reimplemented in OFstream. Definition at line 122 of file OSstream.H. |
|
Set precision of output field (and return old precision).
Implements Ostream. |
|
Get precision of output field.
Implements Ostream. |
|
Print description of IOstream to Ostream.
Reimplemented from IOstream. Reimplemented in OFstream, prefixOSstream, and OStringStream. |
|
Return the const stream reference.
Definition at line 77 of file OSstream.H. |
|
Return the stream reference.
Definition at line 71 of file OSstream.H. |
|
Set width of output field (and return old width).
Implements Ostream. |
|
Get width of output field.
Implements Ostream. |
|
Write binary block.
Implements Ostream. Reimplemented in prefixOSstream. |
|
Write doubleScalar.
Implements Ostream. Reimplemented in prefixOSstream, prefixOSstream, prefixOSstream, and prefixOSstream. |
|
Write floatScalar.
Implements Ostream. Reimplemented in prefixOSstream, prefixOSstream, prefixOSstream, and prefixOSstream. |
|
Write label.
Implements Ostream. Reimplemented in prefixOSstream, prefixOSstream, prefixOSstream, and prefixOSstream. |
|
Write string.
Implements Ostream. Reimplemented in prefixOSstream. |
|
Write word.
Implements Ostream. Reimplemented in prefixOSstream. |
|
Write character string.
Implements Ostream. Reimplemented in prefixOSstream. |
|
Write character.
Implements Ostream. Reimplemented in prefixOSstream, prefixOSstream, prefixOSstream, and prefixOSstream. |
|
Write next token to stream.
Implements Ostream. Reimplemented in prefixOSstream. |