Class implements an output stream which can be turned on and off at run time, i.e., if the output stream is turned off, then no messages written by the operator << reach the associated “real” output stream.
#include <ostream.h>
Inheritance diagram for ABA_OSTREAM::
|
The destructor.
Reimplementation for all fundamental types, for const char *, and for some other classes listed below.
A manipulator is a function having as argument a reference to an ABA_OSTREAM and returning an ABA_OSTREAM.
This version of logOn() turns the output to the logfile on and sets the log-file to logStreamName.
Can be used to set the format flags of the output stream and the log file similar to the function ios::set() of the iostream library.
The “real” stream associated with our output stream (usually cout or cerr).
If true, then output is written to the stream out_, otherwise it is suppressed.
If true_, then output is also written to the log stream *log.
Flushes the output and the log stream buffers of the stream o. This function can be called via the manipulator o << flush;.
Class implements an output stream which can be turned on and off at run time, i.e., if the output stream is turned off, then no messages written by the operator << reach the associated “real” output stream.
Definition at line 64 of file ostream.h.
The constructor turns the output on and associates it with a “real” stream.
The destructor.
Reimplementation for all fundamental types, for const char *, and for some other classes listed below.
output operator <<
If the output is turned on the operator of the base class ostream is called. If also the output to the logfile is turned on, we write the same message also to the log-file.
return A reference to the output stream.
Definition at line 105 of file ostream.h.
A manipulator is a function having as argument a reference to an ABA_OSTREAM and returning an ABA_OSTREAM.
Manipulators are used that we can call, e.g., the function endl(o) by just writing its name omitting brackets and the function argument.
A reference to the output stream.
Turns the output to the logfile on.
This version of logOn() turns the output to the logfile on and sets the log-file to logStreamName.
Turns the output to the logfile off.
true If the output is turned on,
false otherwise.
true If the output to the logfile is turned on,
false otherwise.
A pointer to the stream associated with the log-file.
Can be used to set the format flags of the output stream and the log file similar to the function ios::set() of the iostream library.
For a documentation of all possible flags we refer to the documentation of the GNU / iostream Library.
Flushes the output and the log stream buffers of the stream o. This function can be called via the manipulator o << flush;.
A reference to the output stream.
Writes an end of line to the output and log-file of the stream o and flushes both stream buffers.
This function can be called via the manipulator o << endl;.
A reference to the output stream.
Sets the width of the field for the next output operation on the log and the output stream.
In most cases the manipulator setWith is more convenient to use.
A reference to the output stream.
Sets the precision for the output stream.
In most cases the manipulator setPrecision is more convenient to use.
A reference to the output stream.
The “real” stream associated with our output stream (usually cout or cerr).
Definition at line 248 of file ostream.h.
If true, then output is written to the stream out_, otherwise it is suppressed.
Definition at line 253 of file ostream.h.
If true_, then output is also written to the log stream *log.
Definition at line 258 of file ostream.h.
A pointer to a stream associated with the log file.
Definition at line 262 of file ostream.h.
The documentation for this class was generated from the following file: