Version: 8.3.0
SMESH::toStrT< _STRING > Class Template Reference

Class useful to convert a string returned from a CORBA call to other string types w/o memory leak. More...

#include <SMESHGUI_Utils.h>

Inheritance diagram for SMESH::toStrT< _STRING >:

Public Member Functions

 toStrT (char *s)
 
 operator const char * () const
 

Private Attributes

CORBA::String_var myStr
 

Detailed Description

template<class _STRING>
class SMESH::toStrT< _STRING >

Class useful to convert a string returned from a CORBA call to other string types w/o memory leak.

Usage (of instantiations): QString s = toQStr( objVar->GetName() ); std::string ss = toStdStr( objVar->GetName() );

Constructor & Destructor Documentation

template<class _STRING>
SMESH::toStrT< _STRING >::toStrT ( char *  s)

Member Function Documentation

template<class _STRING>
SMESH::toStrT< _STRING >::operator const char * ( ) const

Field Documentation

template<class _STRING>
CORBA::String_var SMESH::toStrT< _STRING >::myStr
private