Class to generate string from any type. More...
#include <SMESH_Comment.hxx>

Public Member Functions | |
| SMESH_Comment () | |
| SMESH_Comment (const SMESH_Comment &c) | |
| SMESH_Comment & | operator= (const SMESH_Comment &c) |
| template<class T > | |
| SMESH_Comment (const T &anything) | |
| template<class T > | |
| SMESH_Comment & | operator<< (const T &anything) |
| operator char * () const | |
Private Attributes | |
| ostringstream | _s |
Class to generate string from any type.
Definition at line 38 of file SMESH_Comment.hxx.
| SMESH_Comment.SMESH_Comment | ( | ) |
Definition at line 44 of file SMESH_Comment.hxx.
:string("") {}
| SMESH_Comment.SMESH_Comment | ( | const SMESH_Comment & | c | ) |
Definition at line 46 of file SMESH_Comment.hxx.
:string() {
_s << c.c_str() ;
this->string::operator=( _s.str() );
}
| SMESH_Comment.SMESH_Comment | ( | const T & | anything | ) |
Definition at line 58 of file SMESH_Comment.hxx.
{
_s << anything ;
this->string::operator=( _s.str() );
}
| SMESH_Comment.operator char * | ( | ) | const |
Definition at line 70 of file SMESH_Comment.hxx.
{
return (char*)c_str();
}
| SMESH_Comment& SMESH_Comment.operator<< | ( | const T & | anything | ) |
Definition at line 64 of file SMESH_Comment.hxx.
{
_s << anything ;
this->string::operator=( _s.str() );
return *this ;
}
| SMESH_Comment& SMESH_Comment.operator= | ( | const SMESH_Comment & | c | ) |
Definition at line 51 of file SMESH_Comment.hxx.
{
_s << c.c_str() ;
this->string::operator=( _s.str() );
return *this;
}
ostringstream SMESH_Comment._s [private] |
Definition at line 40 of file SMESH_Comment.hxx.