bpp-core  2.2.0
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros
bpp::OutputStream Class Referenceabstract

OutputStream interface. More...

#include <Bpp/Io/OutputStream.h>

+ Inheritance diagram for bpp::OutputStream:
+ Collaboration diagram for bpp::OutputStream:

Public Member Functions

virtual OutputStreamoperator<< (const std::string &message)=0
 
virtual OutputStreamoperator<< (const char *message)=0
 
virtual OutputStreamoperator<< (const char &message)=0
 
virtual OutputStreamoperator<< (const int &message)=0
 
virtual OutputStreamoperator<< (const unsigned int &message)=0
 
virtual OutputStreamoperator<< (const long int &message)=0
 
virtual OutputStreamoperator<< (const unsigned long int &message)=0
 
virtual OutputStreamoperator<< (const double &message)=0
 
virtual OutputStreamoperator<< (const long double &message)=0
 
virtual OutputStreamoperator<< (const bool &message)=0
 
virtual OutputStreamendLine ()=0
 
virtual OutputStreamflush ()=0
 
virtual OutputStreamsetPrecision (int digit)=0
 
virtual int getPrecision () const =0
 
virtual OutputStreamenableScientificNotation (bool yn)=0
 
virtual bool isScientificNotationEnabled () const =0
 
The Clonable interface.
OutputStreamclone () const =0
 Create a copy of this object and send a pointer to it. More...
 

Detailed Description

OutputStream interface.

This interface define several << operators for outputing messages. Wrapper classes for the STL streams are available as special implementations, but this interface can be used to redirect the output to files or to graphical components for instance.

Definition at line 64 of file OutputStream.h.

Member Function Documentation

OutputStream* bpp::OutputStream::clone ( ) const
pure virtual

Create a copy of this object and send a pointer to it.

Returns
A pointer toward the copy object.

Implements bpp::Clonable.

Implemented in bpp::StdErr, bpp::StdOut, bpp::StlOutputStreamWrapper, bpp::StlOutputStream, and bpp::NullOutputStream.

virtual OutputStream& bpp::OutputStream::enableScientificNotation ( bool  yn)
pure virtual

Implemented in bpp::AbstractOutputStream.

virtual int bpp::OutputStream::getPrecision ( ) const
pure virtual
virtual bool bpp::OutputStream::isScientificNotationEnabled ( ) const
pure virtual

Implemented in bpp::AbstractOutputStream.

virtual OutputStream& bpp::OutputStream::operator<< ( const std::string &  message)
pure virtual
virtual OutputStream& bpp::OutputStream::operator<< ( const char *  message)
pure virtual
virtual OutputStream& bpp::OutputStream::operator<< ( const char &  message)
pure virtual
virtual OutputStream& bpp::OutputStream::operator<< ( const int &  message)
pure virtual
virtual OutputStream& bpp::OutputStream::operator<< ( const unsigned int &  message)
pure virtual
virtual OutputStream& bpp::OutputStream::operator<< ( const long int &  message)
pure virtual
virtual OutputStream& bpp::OutputStream::operator<< ( const unsigned long int &  message)
pure virtual
virtual OutputStream& bpp::OutputStream::operator<< ( const double &  message)
pure virtual
virtual OutputStream& bpp::OutputStream::operator<< ( const long double &  message)
pure virtual
virtual OutputStream& bpp::OutputStream::operator<< ( const bool &  message)
pure virtual
virtual OutputStream& bpp::OutputStream::setPrecision ( int  digit)
pure virtual

The documentation for this class was generated from the following file: