This class helps formatting C++ strings on the fly. More...
#include <Common.hxx>
Public Member Functions | |
Str () | |
Default constructor. | |
Str (const Str &s) | |
Copy constructor. More... | |
operator std::string () const | |
Conversion to string. | |
template<class T > | |
Str & | operator<< (const T &input) |
Adds an element to the string. More... | |
This class helps formatting C++ strings on the fly.
It should may be used like that: string output = Str() + "There are " + 3 + " laws of robotics.";
Definition at line 57 of file Common.hxx.
|
inline |
Copy constructor.
[in] | s | 'Str' instance to be copied. |
Definition at line 72 of file CommonInline.cxx.
|
inline |
Adds an element to the string.
[in] | input | element added at the end of the string. |
Definition at line 91 of file CommonInline.cxx.