ostream.h File Reference

output stream. More...

#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_OSTREAMflush (ABA_OSTREAM &o)
ABA_OSTREAMendl (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.:.


Detailed Description

output stream.

Author:
Matthias Elf
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 .

License:
This file is part of ABACUS - A Branch And CUt System Copyright (C) 1995 - 2003 University of Cologne, Germany
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
See also:
http://www.gnu.org/copyleft/gpl.html

Definition in file ostream.h.


Typedef Documentation

typedef ABA_OSTREAM&(*) ABA_OSTREAM_MANIP(ABA_OSTREAM &)

Definition at line 59 of file ostream.h.


Function Documentation

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;.

Returns:
A reference to the output stream.
Parameters:
o An output stream.

ABA_OSTREAM& flush ( ABA_OSTREAM o  ) 

Returns:
A reference to the output stream.
Parameters:
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;

Returns:
A manipulator object with the function ().
Parameters:
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;

Returns:
A manipulator object with the function ().
Parameters:
p The width of the output field.


Generated on Tue Aug 14 18:09:55 2007 for ABACUS by  doxygen 1.5.1