mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-25 22:37:55 +05:00
WIP
This commit is contained in:
parent
bf24cd41fc
commit
21f60f9cf3
@ -23,5 +23,13 @@
|
|||||||
|
|
||||||
std::string BuildSMESHInstance()
|
std::string BuildSMESHInstance()
|
||||||
{
|
{
|
||||||
|
CORBA::ORB_var orb;
|
||||||
|
{ int argc(0); orb = CORBA::ORB_init(argc,nullptr); }
|
||||||
|
CORBA::Object_var obj = orb->resolve_initial_references("RootPOA");
|
||||||
|
PortableServer::POA_var poa = PortableServer::POA::_narrow(obj);
|
||||||
|
PortableServer::ObjectId * id = nullptr ;
|
||||||
|
SMESH_Gen_i *servant = new SMESH_Gen_i(orb,poa,id,"SMESH_inst_2","SMESH");
|
||||||
|
PortableServer::ObjectId *zeId = servant->getId();
|
||||||
|
CORBA::Object_var zeRef = poa->id_to_reference(*zeId);
|
||||||
return "%%%%%%%%";
|
return "%%%%%%%%";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user