![]() |
|
Public Member Functions | |
Ostream (streamFormat format=ASCII, versionNumber version=currentVersion, compressionType compression=UNCOMPRESSED) | |
Set stream status. | |
virtual | ~Ostream () |
virtual Ostream & | write (const token &)=0 |
Write next token to stream. | |
virtual Ostream & | write (const char)=0 |
Write character. | |
virtual Ostream & | write (const char *)=0 |
Write character string. | |
virtual Ostream & | write (const word &)=0 |
Write word. | |
virtual Ostream & | write (const string &)=0 |
Write string. | |
virtual Ostream & | write (const label)=0 |
Write label. | |
virtual Ostream & | write (const floatScalar)=0 |
Write floatScalar. | |
virtual Ostream & | write (const doubleScalar)=0 |
Write doubleScalar. | |
virtual Ostream & | write (const char *, std::streamsize)=0 |
Write binary block. | |
virtual void | indent ()=0 |
Add indentation characters. | |
unsigned short | indentLevel () const |
Return indent level. | |
unsigned short & | indentLevel () |
Access to indent level. | |
void | incrIndent () |
Incrememt the indent level. | |
void | decrIndent () |
Decrememt the indent level. | |
Ostream & | writeKeyword (const word &keyword) |
Write the keyword to the Ostream followed by. | |
virtual void | flush ()=0 |
Flush stream. | |
virtual void | endl ()=0 |
Add ' ' and flush stream. | |
virtual int | width () const =0 |
Get width of output field. | |
virtual int | width (const int w)=0 |
Set width of output field (and return old width). | |
virtual int | precision () const =0 |
Get precision of output field. | |
virtual int | precision (const int p)=0 |
Set precision of output field (and return old precision). | |
Ostream & | operator() () const |
Return a non-const reference to const Ostream. | |
Protected Attributes | |
unsigned short | indentLevel_ |
Current indent level. | |
Static Protected Attributes | |
const unsigned short | indentSize_ = 4 |
Number of spaces per indent level. | |
const unsigned short | entryIndentation_ = 16 |
Indentation of the entry from the start of the keyword. |
|
Set stream status.
|
|
|
|
Decrememt the indent level.
|
|
Add '
|
|
Flush stream.
|
|
Incrememt the indent level.
|
|
Add indentation characters.
Implemented in OPstream, OSstream, and prefixOSstream. |
|
Access to indent level.
|
|
Return indent level.
|
|
Return a non-const reference to const Ostream. Needed for write functions where the stream argument is temporary: e.g. thing thisThing(OFstream("thingFileName")()); |
|
Set precision of output field (and return old precision).
Implemented in OSstream. |
|
Get precision of output field.
|
|
Set width of output field (and return old width).
Implemented in OSstream. |
|
Get width of output field.
|
|
Write binary block.
Implemented in OPstream, OSstream, and prefixOSstream. |
|
Write doubleScalar.
Implemented in OPstream, OPstream, OPstream, OPstream, OSstream, OSstream, OSstream, OSstream, prefixOSstream, prefixOSstream, prefixOSstream, and prefixOSstream. |
|
Write floatScalar.
Implemented in OPstream, OPstream, OPstream, OPstream, OSstream, OSstream, OSstream, OSstream, prefixOSstream, prefixOSstream, prefixOSstream, and prefixOSstream. |
|
Write label.
Implemented in OPstream, OPstream, OPstream, OPstream, OSstream, OSstream, OSstream, OSstream, prefixOSstream, prefixOSstream, prefixOSstream, and prefixOSstream. |
|
Write string.
Implemented in OPstream, OSstream, and prefixOSstream. |
|
Write word.
Implemented in OPstream, OSstream, and prefixOSstream. |
|
Write character string.
Implemented in OPstream, OSstream, and prefixOSstream. |
|
Write character.
Implemented in OPstream, OPstream, OPstream, OPstream, OSstream, OSstream, OSstream, OSstream, prefixOSstream, prefixOSstream, prefixOSstream, and prefixOSstream. |
|
Write next token to stream.
Implemented in OPstream, OSstream, and prefixOSstream. |
|
Write the keyword to the Ostream followed by. appropriate indentation |
|
Indentation of the entry from the start of the keyword.
|
|
Current indent level.
|
|
Number of spaces per indent level.
|