mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-02-22 23:35:38 +05:00
Fix from Christian CAREMOLI for distributed containers.
This commit is contained in:
parent
a5b52cc874
commit
e76c9ecaee
@ -96,17 +96,15 @@ void GEOM_Superv_i::setGeomEngine()
|
||||
{
|
||||
if ( !CORBA::is_nil(myGeomEngine) )
|
||||
return;
|
||||
// get GEOM_Gen engine
|
||||
///*
|
||||
SALOME_LifeCycleCORBA* lcc = new SALOME_LifeCycleCORBA( name_service );
|
||||
Engines::Component_var comp = lcc->FindOrLoad_Component( "FactoryServer", "GEOM" );
|
||||
//*/
|
||||
|
||||
/*
|
||||
// get GEOM_Gen engine
|
||||
Engines::Container_var cont=GetContainerRef();
|
||||
cont->load_component_Library("GEOM");
|
||||
Engines::Component_var comp=cont->create_component_instance("GEOM",0);
|
||||
*/
|
||||
CORBA::String_var container_name=cont->name();
|
||||
std::string shortName=container_name.in();
|
||||
shortName=shortName.substr(12); // substract "/Containers/"
|
||||
SALOME_LifeCycleCORBA* lcc = new SALOME_LifeCycleCORBA( name_service );
|
||||
Engines::Component_var comp = lcc->FindOrLoad_Component( shortName.c_str(), "GEOM" );
|
||||
delete lcc;
|
||||
|
||||
myGeomEngine = GEOM::GEOM_Gen::_narrow(comp);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user