bpp-core  2.2.0
bpp::BppString Class Reference

The BppString object class. More...

#include <Bpp/BppString.h>

+ Inheritance diagram for bpp::BppString:
+ Collaboration diagram for bpp::BppString:

Public Member Functions

 BppString ()
 
 BppString (const char *value)
 
 BppString (const std::string &value)
 
BppStringoperator= (const char *value)
 
BppStringoperator= (const std::string &value)
 
virtual ~BppString ()
 
const std::string & toSTL () const
 
The Clonable interface.
BppStringclone () const
 Create a copy of this object and send a pointer to it. More...
 

Private Attributes

std::string text_
 

Detailed Description

The BppString object class.

This class extends the stl::string class to support the Clonable interface.

Definition at line 57 of file BppString.h.

Constructor & Destructor Documentation

◆ BppString() [1/3]

bpp::BppString::BppString ( )
inline

Definition at line 64 of file BppString.h.

Referenced by clone().

◆ BppString() [2/3]

bpp::BppString::BppString ( const char *  value)
inline

Definition at line 65 of file BppString.h.

◆ BppString() [3/3]

bpp::BppString::BppString ( const std::string &  value)
inline

Definition at line 66 of file BppString.h.

◆ ~BppString()

virtual bpp::BppString::~BppString ( )
inlinevirtual

Definition at line 69 of file BppString.h.

Member Function Documentation

◆ clone()

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

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

Returns
A pointer toward the copy object.

Implements bpp::Clonable.

Definition at line 83 of file BppString.h.

References BppString().

◆ operator=() [1/2]

BppString& bpp::BppString::operator= ( const char *  value)
inline

Definition at line 67 of file BppString.h.

References text_.

◆ operator=() [2/2]

BppString& bpp::BppString::operator= ( const std::string &  value)
inline

Definition at line 68 of file BppString.h.

References text_.

◆ toSTL()

const std::string& bpp::BppString::toSTL ( ) const
inline

Definition at line 86 of file BppString.h.

References text_.

Referenced by bpp::operator<<().

Member Data Documentation

◆ text_

std::string bpp::BppString::text_
private

Definition at line 60 of file BppString.h.

Referenced by operator=(), and toSTL().


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