bpp-core3  3.0.0
bpp::BppString Class Reference

The BppString object class. This class extends the stl::string class to support the Clonable interface. 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)
 
BppStringclone () const
 Create a copy of this object and send a pointer to it. More...
 
const std::string & toSTL () const
 

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 56 of file BppString.h.

Constructor & Destructor Documentation

◆ BppString() [1/3]

bpp::BppString::BppString ( )
default

Referenced by clone().

◆ BppString() [2/3]

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

Definition at line 50 of file BppString.cpp.

◆ BppString() [3/3]

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

Definition at line 53 of file BppString.cpp.

Member Function Documentation

◆ clone()

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

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 67 of file BppString.cpp.

References BppString().

◆ operator=() [1/2]

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

Definition at line 56 of file BppString.cpp.

References text_.

◆ operator=() [2/2]

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

Definition at line 61 of file BppString.cpp.

References text_.

◆ toSTL()

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

Definition at line 69 of file BppString.cpp.

References text_.

Referenced by bpp::operator<<().

Member Data Documentation

◆ text_

std::string bpp::BppString::text_ {}
private

Definition at line 59 of file BppString.h.

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


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