Salome HOME
DCQ:prepare 2.0.0
[modules/kernel.git] / doc / html / INPUT / sources / static / examples_Naming.html
diff --git a/doc/html/INPUT/sources/static/examples_Naming.html b/doc/html/INPUT/sources/static/examples_Naming.html
deleted file mode 100755 (executable)
index ac08a67..0000000
+++ /dev/null
@@ -1,66 +0,0 @@
-<!DOCTYPE doctype PUBLIC "-//w3c//dtd html 4.0 transitional//en">
-<html>
-<head>
-    
-  <meta http-equiv="Content-Type"
- content="text/html; charset=iso-8859-1">
-    
-  <meta name="GENERATOR"
- content="Mozilla/4.73 [en] (WinNT; I) [Netscape]">
-  <title>Main Page</title>
-     
-  <link href="doxygen.css" rel="stylesheet" type="text/css">
-</head>
-  <body>
- &nbsp; 
-<center>
-<table width="96%">
- <tbody>
-    <tr>
- <td><a href="http://www.opencascade.com"><img
- src="sources/logocorp.gif" border="0" height="46" width="122">
-      </a></td>
-   <td> 
-      <div align="right"><a href="http://www.opencascade.org/SALOME/"><img
- src="sources/application.gif" border="0" height="46" width="108">
-      </a></div>
- </td>
- </tr>
-  </tbody>
-</table>
-</center>
-   
-<h1><a name="page2">Examples</a> </h1>
-   <font color="#3333ff">#There is a python example of using  SALOME_NamingService<br>
-</font><br>
-from omniORB import CORBA<br>
-from time import sleep<br>
-from LifeCycleCORBA import *<br>
-from SALOME_NamingServicePy import *<br>
-<br>
-<font color="#3333ff"># initialise the ORB<br>
-</font>orb = CORBA.ORB_init([''], CORBA.ORB_ID)<br>
-<br>
-<font color="#3333ff"># create an LifeCycleCORBA instance<br>
-</font>myLifeCycleCORBA = LifeCycleCORBA(orb)<br>
-<br>
-<font color="#3333ff">#create a naming service instance<br>
-</font>naming_service = SALOME_NamingServicePy_i(orb)<br>
-<br>
-mySession = myNamingService.Resolve("/Kernel/Session")<br>
-mySession.GetInterface()<br>
-sleep(10)<br>
-myLocalVisu = myLifeCycleCORBA.FindOrLoadComponent("FactoryServer", "Visu")<br>
-<br>
-<br>
-<font color="#3333ff">//There is some part of a code written by C++<br>
-</font><br>
-SALOME_NamingService aNamingService(orb);<br>
-CORBA::Object_ptr anObject = aNamingService.Resolve("/Kernel/Session");<br>
-SALOME::Session_var aSession = SALOME::Session::_narrow(anObject);<br>
-Engines::Component_var aComponent = aSession-&gt;GetVisuGen();<br>
-myVisuGen = VISU::VISU_Gen::_narrow(aComponent);<br>
-<br>
-</body>
-</html>