mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-25 17:00:35 +05:00
basic_geom_smesh_without_session.py test, OK again
This commit is contained in:
parent
3e130fb70b
commit
3fed413d9d
@ -29,6 +29,7 @@ static Engines::EngineComponent_var _unique_compo;
|
|||||||
|
|
||||||
Engines::EngineComponent_var RetrieveGEOMInstance()
|
Engines::EngineComponent_var RetrieveGEOMInstance()
|
||||||
{
|
{
|
||||||
|
constexpr char COMPO_NAME[]="GEOM";
|
||||||
if (CORBA::is_nil(_unique_compo))
|
if (CORBA::is_nil(_unique_compo))
|
||||||
{
|
{
|
||||||
CORBA::ORB_var orb;
|
CORBA::ORB_var orb;
|
||||||
@ -46,9 +47,10 @@ Engines::EngineComponent_var RetrieveGEOMInstance()
|
|||||||
//
|
//
|
||||||
pman->activate();
|
pman->activate();
|
||||||
//
|
//
|
||||||
GEOM_Gen_No_Session_i *servant = new GEOM_Gen_No_Session_i(orb, poa, conId, "GEOM_inst_2", "GEOM");
|
GEOM_Gen_No_Session_i *servant = new GEOM_Gen_No_Session_i(orb, poa, conId, "GEOM_inst_2", COMPO_NAME);
|
||||||
PortableServer::ObjectId *zeId = servant->getId();
|
PortableServer::ObjectId *zeId = servant->getId();
|
||||||
CORBA::Object_var zeRef = poa->id_to_reference(*zeId);
|
CORBA::Object_var zeRef = poa->id_to_reference(*zeId);
|
||||||
|
KERNEL::RegisterCompo(COMPO_NAME,zeRef);
|
||||||
_unique_compo = Engines::EngineComponent::_narrow(zeRef);
|
_unique_compo = Engines::EngineComponent::_narrow(zeRef);
|
||||||
}
|
}
|
||||||
return _unique_compo;
|
return _unique_compo;
|
||||||
|
Loading…
Reference in New Issue
Block a user