+++ /dev/null
-<!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>
-
-<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->GetVisuGen();<br>
-myVisuGen = VISU::VISU_Gen::_narrow(aComponent);<br>
-<br>
-</body>
-</html>