Version: 9.12.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

◆ toStrT()

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

Member Function Documentation

◆ operator const char *()

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

Field Documentation

◆ myStr

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