Version: 6.3.1
Public Member Functions | Private Attributes

SMESH_Comment Class Reference

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

#include <SMESH_Comment.hxx>

Inheritance diagram for SMESH_Comment:
Inheritance graph
[legend]

Public Member Functions

 SMESH_Comment ()
 SMESH_Comment (const SMESH_Comment &c)
SMESH_Commentoperator= (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

ostringstream _s

Detailed Description

Class to generate string from any type.

Definition at line 38 of file SMESH_Comment.hxx.


Constructor & Destructor Documentation

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() );
  }
template<class T >
SMESH_Comment.SMESH_Comment ( const T &  anything)

Definition at line 58 of file SMESH_Comment.hxx.

                                     {
    _s << anything ;
    this->string::operator=( _s.str() );
  }

Member Function Documentation

SMESH_Comment.operator char * ( ) const

Definition at line 70 of file SMESH_Comment.hxx.

                         {
    return (char*)c_str();
  }
template<class T >
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;
  }

Field Documentation

ostringstream SMESH_Comment._s [private]

Definition at line 40 of file SMESH_Comment.hxx.

Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS