From 368789e6409fccbbb0aeb5c80e738a1dc79a6821 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 29 Mar 2005 08:46:39 +0000 Subject: [PATCH] "Dump Python". Add GetDumpName() --- src/GEOM_I/GEOM_DumpPython.cc | 15 +++++++++++++++ src/GEOM_I/GEOM_Gen_i.hh | 3 ++- 2 files changed, 17 insertions(+), 1 deletion(-) 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 -- 2.39.2