Public Member Functions | List of all members
Seldon::Str Class Reference

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 >
Stroperator<< (const T &input)
 Adds an element to the string. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Str()

Seldon::Str::Str ( const Str s)
inline

Copy constructor.

Parameters
[in]s'Str' instance to be copied.

Definition at line 72 of file CommonInline.cxx.

Member Function Documentation

◆ operator<<()

template<class T >
Str & Seldon::Str::operator<< ( const T &  input)
inline

Adds an element to the string.

Parameters
[in]inputelement added at the end of the string.

Definition at line 91 of file CommonInline.cxx.


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