bpp-core3  3.0.0
bpp::StdStr Class Reference

String output stream. More...

#include <Bpp/Io/OutputStream.h>

+ Inheritance diagram for bpp::StdStr:
+ Collaboration diagram for bpp::StdStr:

Public Member Functions

 StdStr ()
 
std::string str () const
 
virtual ~StdStr ()
 
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

String output stream.

This class wraps the std::ostringstream stream.

Definition at line 279 of file OutputStream.h.

Constructor & Destructor Documentation

◆ StdStr()

bpp::StdStr::StdStr ( )
inline

Definition at line 283 of file OutputStream.h.

◆ ~StdStr()

virtual bpp::StdStr::~StdStr ( )
inlinevirtual

Definition at line 287 of file OutputStream.h.

Member Function Documentation

◆ clone()

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

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 ( )
inlinevirtualinherited

Implements bpp::OutputStream.

Definition at line 201 of file OutputStream.h.

◆ flush()

StlOutputStreamWrapper& bpp::StlOutputStreamWrapper::flush ( )
inlinevirtualinherited

Implements bpp::OutputStream.

Definition at line 202 of file OutputStream.h.

References bpp::StlOutputStreamWrapper::flush().

Referenced by bpp::StlOutputStreamWrapper::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)
inlinevirtualinherited

Implements bpp::OutputStream.

Definition at line 180 of file OutputStream.h.

◆ operator<<() [2/10]

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

Implements bpp::OutputStream.

Definition at line 181 of file OutputStream.h.

◆ operator<<() [3/10]

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

Implements bpp::OutputStream.

Definition at line 182 of file OutputStream.h.

◆ operator<<() [4/10]

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

Implements bpp::OutputStream.

Definition at line 183 of file OutputStream.h.

◆ operator<<() [5/10]

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

Implements bpp::OutputStream.

Definition at line 184 of file OutputStream.h.

◆ operator<<() [6/10]

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

Implements bpp::OutputStream.

Definition at line 186 of file OutputStream.h.

◆ operator<<() [7/10]

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

Implements bpp::OutputStream.

Definition at line 187 of file OutputStream.h.

◆ operator<<() [8/10]

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

◆ operator<<() [9/10]

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

◆ operator<<() [10/10]

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

Implements bpp::OutputStream.

Definition at line 200 of file OutputStream.h.

◆ setPrecision()

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

Implements bpp::OutputStream.

Definition at line 74 of file OutputStream.h.

◆ str()

std::string bpp::StdStr::str ( ) const
inline

Definition at line 285 of file OutputStream.h.

References str().

Referenced by str().

Member Data Documentation

◆ stream_

std::ostream* bpp::StlOutputStreamWrapper::stream_
protectedinherited

Definition at line 172 of file OutputStream.h.

Referenced by bpp::StlOutputStreamWrapper::operator=().


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