]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
WIP
authorAnthony Geay <anthony.geay@edf.fr>
Tue, 12 Jan 2021 13:30:55 +0000 (14:30 +0100)
committerAnthony Geay <anthony.geay@edf.fr>
Tue, 12 Jan 2021 13:30:55 +0000 (14:30 +0100)
src/SMESH_SWIG/SMeshHelper.cxx

index df8650c0fd8c5c60aaccd1106dd61ddd46f88a32..23a9259710896d9774501b396ba194ae7858a198 100644 (file)
 
 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 "%%%%%%%%";
 }