bpp-core3  3.0.0
bpp::StlOutputStreamWrapper Class Reference

STL wrapper for output stream. More...

#include <Bpp/Io/OutputStream.h>

+ Inheritance diagram for bpp::StlOutputStreamWrapper:
+ Collaboration diagram for bpp::StlOutputStreamWrapper:

Public Member Functions

 StlOutputStreamWrapper (std::ostream *stream)
 
 StlOutputStreamWrapper (const StlOutputStreamWrapper &stlos)
 
StlOutputStreamWrapperoperator= (const StlOutputStreamWrapper &stlos)
 
StlOutputStreamWrapperoperator<< (const std::string &message)
 
StlOutputStreamWrapperoperator<< (const char *message)
 
StlOutputStreamWrapperoperator<< (const char &message)
 
StlOutputStreamWrapperoperator<< (const int &message)
 
StlOutputStreamWrapperoperator<< (const unsigned int &message)
 
StlOutputStreamWrapperoperator<< (const long int &message)
 
StlOutputStreamWrapperoperator<< (const unsigned long int &message)
 
StlOutputStreamWrapperoperator<< (const double &message)
 
StlOutputStreamWrapperoperator<< (const long double &message)
 
StlOutputStreamWrapperoperator<< (const bool &message)
 
StlOutputStreamWrapperendLine ()
 
StlOutputStreamWrapperflush ()
 
StlOutputStreamWrapperclone () const
 Create a copy of this object and send a pointer to it. More...
 
OutputStreamsetPrecision (int digit)
 
int getPrecision () const
 
virtual OutputStreamenableScientificNotation (bool yn)
 
virtual bool isScientificNotationEnabled () const
 

Protected Attributes

std::ostream * stream_
 

Detailed Description

STL wrapper for output stream.

This class wraps the std::ostream class, by forwarding to the STL class. It does not own the STL stream and won't delete it.

Definition at line 168 of file OutputStream.h.

Constructor & Destructor Documentation

◆ StlOutputStreamWrapper() [1/2]

bpp::StlOutputStreamWrapper::StlOutputStreamWrapper ( std::ostream *  stream)
inline

Definition at line 175 of file OutputStream.h.

◆ StlOutputStreamWrapper() [2/2]

bpp::StlOutputStreamWrapper::StlOutputStreamWrapper ( const StlOutputStreamWrapper stlos)
inline

Definition at line 176 of file OutputStream.h.

Member Function Documentation

◆ clone()

StlOutputStreamWrapper* bpp::StlOutputStreamWrapper::clone ( ) const
inlinevirtual

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

Returns
A pointer toward the copy object.

Implements bpp::OutputStream.

Definition at line 204 of file OutputStream.h.

◆ enableScientificNotation()

virtual OutputStream& bpp::AbstractOutputStream::enableScientificNotation ( bool  yn)
inlinevirtualinherited

Implements bpp::OutputStream.

Definition at line 81 of file OutputStream.h.

◆ endLine()

StlOutputStreamWrapper& bpp::StlOutputStreamWrapper::endLine ( )
inlinevirtual

Implements bpp::OutputStream.

Definition at line 201 of file OutputStream.h.

◆ flush()

StlOutputStreamWrapper& bpp::StlOutputStreamWrapper::flush ( )
inlinevirtual

Implements bpp::OutputStream.

Definition at line 202 of file OutputStream.h.

References flush().

Referenced by flush().

◆ getPrecision()

int bpp::AbstractOutputStream::getPrecision ( ) const
inlinevirtualinherited

Implements bpp::OutputStream.

Definition at line 79 of file OutputStream.h.

◆ isScientificNotationEnabled()

virtual bool bpp::AbstractOutputStream::isScientificNotationEnabled ( ) const
inlinevirtualinherited

Implements bpp::OutputStream.

Definition at line 82 of file OutputStream.h.

◆ operator<<() [1/10]

StlOutputStreamWrapper& bpp::StlOutputStreamWrapper::operator<< ( const std::string &  message)
inlinevirtual

Implements bpp::OutputStream.

Definition at line 180 of file OutputStream.h.

◆ operator<<() [2/10]

StlOutputStreamWrapper& bpp::StlOutputStreamWrapper::operator<< ( const char *  message)
inlinevirtual

Implements bpp::OutputStream.

Definition at line 181 of file OutputStream.h.

◆ operator<<() [3/10]

StlOutputStreamWrapper& bpp::StlOutputStreamWrapper::operator<< ( const char &  message)
inlinevirtual

Implements bpp::OutputStream.

Definition at line 182 of file OutputStream.h.

◆ operator<<() [4/10]

StlOutputStreamWrapper& bpp::StlOutputStreamWrapper::operator<< ( const int &  message)
inlinevirtual

Implements bpp::OutputStream.

Definition at line 183 of file OutputStream.h.

◆ operator<<() [5/10]

StlOutputStreamWrapper& bpp::StlOutputStreamWrapper::operator<< ( const unsigned int &  message)
inlinevirtual

Implements bpp::OutputStream.

Definition at line 184 of file OutputStream.h.

◆ operator<<() [6/10]

StlOutputStreamWrapper& bpp::StlOutputStreamWrapper::operator<< ( const long int &  message)
inlinevirtual

Implements bpp::OutputStream.

Definition at line 186 of file OutputStream.h.

◆ operator<<() [7/10]

StlOutputStreamWrapper& bpp::StlOutputStreamWrapper::operator<< ( const unsigned long int &  message)
inlinevirtual

Implements bpp::OutputStream.

Definition at line 187 of file OutputStream.h.

◆ operator<<() [8/10]

StlOutputStreamWrapper& bpp::StlOutputStreamWrapper::operator<< ( const double &  message)
inlinevirtual

◆ operator<<() [9/10]

StlOutputStreamWrapper& bpp::StlOutputStreamWrapper::operator<< ( const long double &  message)
inlinevirtual

◆ operator<<() [10/10]

StlOutputStreamWrapper& bpp::StlOutputStreamWrapper::operator<< ( const bool &  message)
inlinevirtual

Implements bpp::OutputStream.

Definition at line 200 of file OutputStream.h.

◆ operator=()

StlOutputStreamWrapper& bpp::StlOutputStreamWrapper::operator= ( const StlOutputStreamWrapper stlos)
inline

Definition at line 177 of file OutputStream.h.

References stream_.

◆ setPrecision()

OutputStream& bpp::AbstractOutputStream::setPrecision ( int  digit)
inlinevirtualinherited

Implements bpp::OutputStream.

Definition at line 74 of file OutputStream.h.

Member Data Documentation

◆ stream_

std::ostream* bpp::StlOutputStreamWrapper::stream_
protected

Definition at line 172 of file OutputStream.h.

Referenced by operator=().


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