SALOME - SMESH
SMESH_Comment Class Reference

Class to generate string from any type. More...

#include <SMESH_Comment.hxx>

Inheritance diagram for SMESH_Comment:
Inheritance graph
Collaboration diagram for SMESH_Comment:
Collaboration graph

Public Member Functions

 SMESH_Comment ()
 
 SMESH_Comment (const SMESH_Comment &c)
 
template<class T >
 SMESH_Comment (const T &anything)
 
template<class T >
SMESH_Commentoperator<< (const T &anything)
 
 operator char * () const
 

Private Attributes

std::ostringstream _s
 

Detailed Description

Class to generate string from any type.

Definition at line 39 of file SMESH_Comment.hxx.

Constructor & Destructor Documentation

◆ SMESH_Comment() [1/3]

SMESH_Comment::SMESH_Comment ( )

Definition at line 45 of file SMESH_Comment.hxx.

◆ SMESH_Comment() [2/3]

SMESH_Comment::SMESH_Comment ( const SMESH_Comment c)

Definition at line 47 of file SMESH_Comment.hxx.

References _s.

◆ SMESH_Comment() [3/3]

template<class T >
SMESH_Comment::SMESH_Comment ( const T &  anything)

Definition at line 53 of file SMESH_Comment.hxx.

References _s.

Member Function Documentation

◆ operator<<()

template<class T >
SMESH_Comment& SMESH_Comment::operator<< ( const T &  anything)

Definition at line 59 of file SMESH_Comment.hxx.

References _s.

◆ operator char *()

SMESH_Comment::operator char * ( ) const

Definition at line 65 of file SMESH_Comment.hxx.

Field Documentation

◆ _s

std::ostringstream SMESH_Comment::_s
private

Definition at line 41 of file SMESH_Comment.hxx.

Referenced by operator<<(), and SMESH_Comment().