bpp-core3  3.0.0
BppString.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: The Bio++ Development Group
2 //
3 // SPDX-License-Identifier: CECILL-2.1
4 
5 #ifndef BPP_BPPSTRING_H
6 #define BPP_BPPSTRING_H
7 
8 #include <iosfwd>
9 #include <string>
10 
11 #include "Clonable.h"
12 
13 namespace bpp
14 {
18 class BppString : public Clonable
19 {
20 private:
21  std::string text_{};
22 
23 public:
24  BppString();
25  BppString(const char* value);
26  BppString(const std::string& value);
27  BppString& operator=(const char* value);
28  BppString& operator=(const std::string& value);
29  BppString* clone() const;
30  const std::string& toSTL() const;
31 };
32 
33 std::ostream& operator<<(std::ostream& out, const BppString& s);
34 } // namespace bpp
35 #endif // BPP_BPPSTRING_H
std::string text_
Definition: BppString.h:21
BppString * clone() const
Create a copy of this object and send a pointer to it.
Definition: BppString.cpp:29
BppString & operator=(const char *value)
Definition: BppString.cpp:18
std::ostream & operator<<(std::ostream &out, const BppBoolean &s)
Definition: BppBoolean.h:32
The BppString object class. This class extends the stl::string class to support the Clonable interfac...
Definition: BppString.h:18
The Clonable interface (allow an object to be cloned).
Definition: Clonable.h:63
const std::string & toSTL() const
Definition: BppString.cpp:31