From: eap Date: Tue, 29 Mar 2005 08:46:39 +0000 (+0000) Subject: "Dump Python". Add GetDumpName() X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=368789e6409fccbbb0aeb5c80e738a1dc79a6821;p=modules%2Fgeom.git "Dump Python". Add GetDumpName() --- diff --git a/src/GEOM_I/GEOM_DumpPython.cc b/src/GEOM_I/GEOM_DumpPython.cc index 0ac10afeb..8ed8ce4bc 100644 --- a/src/GEOM_I/GEOM_DumpPython.cc +++ b/src/GEOM_I/GEOM_DumpPython.cc @@ -53,3 +53,18 @@ Engines::TMPFile* GEOM_Gen_i::DumpPython(CORBA::Object_ptr theStudy, return aStreamFile._retn(); } + +//======================================================================= +//function : GetDumpName +//purpose : +//======================================================================= + +char* GEOM_Gen_i::GetDumpName (const char* theStudyEntry) +{ + const char* name = _impl->GetDumpName( theStudyEntry ); + if ( name && strlen( name ) > 0 ) + return strdup( name ); + + return NULL; +} + diff --git a/src/GEOM_I/GEOM_Gen_i.hh b/src/GEOM_I/GEOM_Gen_i.hh index 19fe6e0c1..27c4243e3 100644 --- a/src/GEOM_I/GEOM_Gen_i.hh +++ b/src/GEOM_I/GEOM_Gen_i.hh @@ -179,6 +179,8 @@ class GEOM_Gen_i: public POA_GEOM::GEOM_Gen, public Engines_Component_i CORBA::Boolean isPublished, CORBA::Boolean& isValidScript); + char* GetDumpName (const char* theStudyEntry); + //********************************************************************************************************// // Internal methods //********************************************************************************************************// @@ -189,7 +191,6 @@ class GEOM_Gen_i: public POA_GEOM::GEOM_Gen, public Engines_Component_i ::GEOMImpl_Gen* _impl; SALOME_NamingService * name_service; char * _name; - }; #endif