1 # Copyright (C) 2009-2013 EDF R&D
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11 # Lesser General Public License for more details.
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
22 import GENERICSOLVER_ORB__POA
23 import SALOME_ComponentPy
24 import SALOME_DriverPy
27 class GENERICSOLVER(GENERICSOLVER_ORB__POA.GENERICSOLVER_Gen,
28 SALOME_ComponentPy.SALOME_ComponentPy_i,
29 SALOME_DriverPy.SALOME_DriverPy_i):
32 Pour etre un composant SALOME cette classe Python
33 doit avoir le nom du composant et heriter de la
34 classe GENERICSOLVER_Gen issue de la compilation de l'idl
35 par omniidl et de la classe SALOME_ComponentPy_i
36 qui porte les services generaux d'un composant SALOME
38 def __init__ ( self, orb, poa, contID, containerName, instanceName,
40 SALOME_ComponentPy.SALOME_ComponentPy_i.__init__(self, orb, poa,
41 contID, containerName, instanceName, interfaceName, 0)
42 SALOME_DriverPy.SALOME_DriverPy_i.__init__(self, interfaceName)