Back to index

salome-kernel  6.5.0
SALOME_TestComponentPy.py
Go to the documentation of this file.
00001 #! /usr/bin/env python
00002 #  -*- coding: iso-8859-1 -*-
00003 # Copyright (C) 2007-2012  CEA/DEN, EDF R&D, OPEN CASCADE
00004 #
00005 # Copyright (C) 2003-2007  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00006 # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
00007 #
00008 # This library is free software; you can redistribute it and/or
00009 # modify it under the terms of the GNU Lesser General Public
00010 # License as published by the Free Software Foundation; either
00011 # version 2.1 of the License.
00012 #
00013 # This library is distributed in the hope that it will be useful,
00014 # but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00016 # Lesser General Public License for more details.
00017 #
00018 # You should have received a copy of the GNU Lesser General Public
00019 # License along with this library; if not, write to the Free Software
00020 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
00021 #
00022 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00023 #
00024 
00025 #  SALOME TestContainer : test of container creation and its life cycle
00026 #  File   : SALOME_TestComponentPy.py
00027 #  Author : Paul RASCLE, EDF
00028 #  Module : SALOME
00029 #  $Header: /home/server/cvs/KERNEL/KERNEL_SRC/src/TestContainer/SALOME_TestComponentPy.py,v 1.6.2.1.14.2.12.1 2012-04-12 14:05:31 vsr Exp $
00030 #
00031 import sys
00032 from omniORB import CORBA, PortableServer
00033 import CosNaming
00034 import Engines, Engines__POA
00035 from SALOME_ComponentPy import *
00036 
00037 class SALOME_TestComponentPy( Engines__POA.TestComponent, SALOME_ComponentPy_i):
00038 
00039     def Coucou(self, val):
00040         print "SALOME_TestComponentPy Coucou ", val
00041         result = "result from SALOME_TestComponentPy Coucou " + `val`
00042         return result
00043     
00044     def __init__(self, orb, poa, contID, containerName, instanceName, interfaceName):
00045         notif = 0
00046         SALOME_ComponentPy_i.__init__(self, orb, poa, contID, containerName,
00047                                       instanceName, interfaceName, notif)
00048         print "SALOME_TestComponentPy::__init__"
00049