X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fhtml%2FINPUT%2Fsources%2Fstatic%2Fexamples_Naming.html;fp=doc%2Fhtml%2FINPUT%2Fsources%2Fstatic%2Fexamples_Naming.html;h=0000000000000000000000000000000000000000;hb=1b19d95e647335f4bec1c00d3f979e3e669d81eb;hp=ac08a67530095813f4c44ee8f8a94c7abb7de1fe;hpb=bb19781277b895352e1b399e29bdbe117ee5d64a;p=modules%2Fkernel.git diff --git a/doc/html/INPUT/sources/static/examples_Naming.html b/doc/html/INPUT/sources/static/examples_Naming.html deleted file mode 100755 index ac08a6753..000000000 --- a/doc/html/INPUT/sources/static/examples_Naming.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - - - - - Main Page - - - - -   -
- - - - - - - - -
- - -
-
- -

Examples

- #There is a python example of using SALOME_NamingService
-

-from omniORB import CORBA
-from time import sleep
-from LifeCycleCORBA import *
-from SALOME_NamingServicePy import *
-
-# initialise the ORB
-
orb = CORBA.ORB_init([''], CORBA.ORB_ID)
-
-# create an LifeCycleCORBA instance
-
myLifeCycleCORBA = LifeCycleCORBA(orb)
-
-#create a naming service instance
-
naming_service = SALOME_NamingServicePy_i(orb)
-
-mySession = myNamingService.Resolve("/Kernel/Session")
-mySession.GetInterface()
-sleep(10)
-myLocalVisu = myLifeCycleCORBA.FindOrLoadComponent("FactoryServer", "Visu")
-
-
-//There is some part of a code written by C++
-

-SALOME_NamingService aNamingService(orb);
-CORBA::Object_ptr anObject = aNamingService.Resolve("/Kernel/Session");
-SALOME::Session_var aSession = SALOME::Session::_narrow(anObject);
-Engines::Component_var aComponent = aSession->GetVisuGen();
-myVisuGen = VISU::VISU_Gen::_narrow(aComponent);
-
- -