bpp-core3  3.0.0
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 29 of file OutputStream.h.

Member Function Documentation

◆ clone()

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.

◆ enableScientificNotation()

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

Implemented in bpp::AbstractOutputStream.

◆ endLine()

◆ flush()

virtual OutputStream& bpp::OutputStream::flush ( )
pure virtual

◆ getPrecision()

◆ isScientificNotationEnabled()

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

◆ operator<<() [1/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const std::string &  message)
pure virtual

◆ operator<<() [2/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const char *  message)
pure virtual

◆ operator<<() [3/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const char &  message)
pure virtual

◆ operator<<() [4/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const int &  message)
pure virtual

◆ operator<<() [5/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const unsigned int &  message)
pure virtual

◆ operator<<() [6/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const long int &  message)
pure virtual

◆ operator<<() [7/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const unsigned long int &  message)
pure virtual

◆ operator<<() [8/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const double &  message)
pure virtual

◆ operator<<() [9/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const long double &  message)
pure virtual

◆ operator<<() [10/10]

virtual OutputStream& bpp::OutputStream::operator<< ( const bool &  message)
pure virtual

◆ setPrecision()

virtual OutputStream& bpp::OutputStream::setPrecision ( int  digit)
pure virtual

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