This commit is contained in:
Anthony Geay 2021-01-14 07:27:39 +01:00
parent f1840849c5
commit 9596745007

View File

@ -49,6 +49,10 @@ std::string BuildGEOMInstance()
GEOM_Gen_i *servant = new GEOM_Gen_i(orb,poa,const_cast<PortableServer::ObjectId*>(&conId.in()),"GEOM_inst_2","GEOM",false,false); GEOM_Gen_i *servant = new GEOM_Gen_i(orb,poa,const_cast<PortableServer::ObjectId*>(&conId.in()),"GEOM_inst_2","GEOM",false,false);
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);
char *interfaceName = servant->interfaceName();
std::string interfaceNameCpp(interfaceName);
CORBA::string_free(interfaceName);
KERNEL::RegisterCompo(interfaceNameCpp,zeRef);
CORBA::String_var ior = orb->object_to_string(zeRef); CORBA::String_var ior = orb->object_to_string(zeRef);
return std::string(ior.in()); return std::string(ior.in());
} }