Seldon::Str Class Reference

This class helps formatting C++ strings on the fly. More...

#include <Common.hxx>

List of all members.

Public Member Functions

 Str ()
 Default constructor.
 Str (const Str &s)
 Copy constructor.
 operator std::string () const
 Conversion to string.
template<class T >
Stroperator<< (const T &input)
 Adds an element to the string.

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 45 of file Common.hxx.


Constructor & Destructor Documentation

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

Copy constructor.

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

Definition at line 46 of file Common.cxx.


Member Function Documentation

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

Adds an element to the string.

Parameters:
[in] input element added at the end of the string.

Definition at line 64 of file Common.cxx.


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