#include <iostream>
#include <fstream>
#include <iomanip>
#include "abacus/abacusroot.h"
Go to the source code of this file.
Classes | |
class | ABA_OSTREAM |
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. More... | |
class | ABA_OSTREAM_MANIP_INT |
the manipulator class for manipulators with one argument More... | |
Typedefs | |
typedef ABA_OSTREAM &(*) | ABA_OSTREAM_MANIP (ABA_OSTREAM &) |
Functions | |
ABA_OSTREAM & | flush (ABA_OSTREAM &o) |
ABA_OSTREAM & | endl (ABA_OSTREAM &o) |
manipulator functions with one argument The following function provide us manipulator having the same functionality as the functions setw() and setprecision() for normal output streams. | |
ABA_OSTREAM_MANIP_INT | setWidth (int w) |
Can be used for output streams of the class ABA_OSTREAM as the function setw for the class ostream, e.g.:. | |
ABA_OSTREAM_MANIP_INT | setPrecision (int p) |
Can be used for output streams of the class ABA_OSTREAM in the same way as the function setprecision for the class ostream, e.g.:. |
This 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. Moreover, the output is also optionally written to a log file. The class is derived from the class ostream and reimplements the << operator for all fundamental types, strings of the form {const char *}, pointers to manipulators functions, and some classes of .
Definition in file ostream.h.
typedef ABA_OSTREAM&(*) ABA_OSTREAM_MANIP(ABA_OSTREAM &) |
ABA_OSTREAM& endl | ( | ABA_OSTREAM & | o | ) |
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;.
o | An output stream. |
ABA_OSTREAM& flush | ( | ABA_OSTREAM & | o | ) |
o | An output stream. |
ABA_OSTREAM_MANIP_INT setPrecision | ( | int | p | ) |
Can be used for output streams of the class ABA_OSTREAM in the same way as the function setprecision for the class ostream, e.g.:.
master ->out() << setprecision(10) << x << endl;
p | The precision for the output stream. |
ABA_OSTREAM_MANIP_INT setWidth | ( | int | w | ) |
Can be used for output streams of the class ABA_OSTREAM as the function setw for the class ostream, e.g.:.
master ->out() << setw(10) << x << endl;
p | The width of the output field. |