"Dump Python". Add GetDumpName()

This commit is contained in:
eap 2005-03-29 08:46:39 +00:00
parent f724bcc264
commit 368789e640
2 changed files with 17 additions and 1 deletions

View File

@ -53,3 +53,18 @@ Engines::TMPFile* GEOM_Gen_i::DumpPython(CORBA::Object_ptr theStudy,
return aStreamFile._retn(); 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;
}

View File

@ -179,6 +179,8 @@ class GEOM_Gen_i: public POA_GEOM::GEOM_Gen, public Engines_Component_i
CORBA::Boolean isPublished, CORBA::Boolean isPublished,
CORBA::Boolean& isValidScript); CORBA::Boolean& isValidScript);
char* GetDumpName (const char* theStudyEntry);
//********************************************************************************************************// //********************************************************************************************************//
// Internal methods // Internal methods
//********************************************************************************************************// //********************************************************************************************************//
@ -189,7 +191,6 @@ class GEOM_Gen_i: public POA_GEOM::GEOM_Gen, public Engines_Component_i
::GEOMImpl_Gen* _impl; ::GEOMImpl_Gen* _impl;
SALOME_NamingService * name_service; SALOME_NamingService * name_service;
char * _name; char * _name;
}; };
#endif #endif