General KERNEL Documentation     End User KERNEL Services  


idl/SALOME_TestModuleCatalog.idl

Go to the documentation of this file.
00001 //  Copyright (C) 2003  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
00002 //  CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS 
00003 // 
00004 //  This library is free software; you can redistribute it and/or 
00005 //  modify it under the terms of the GNU Lesser General Public 
00006 //  License as published by the Free Software Foundation; either 
00007 //  version 2.1 of the License. 
00008 // 
00009 //  This library is distributed in the hope that it will be useful, 
00010 //  but WITHOUT ANY WARRANTY; without even the implied warranty of 
00011 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
00012 //  Lesser General Public License for more details. 
00013 // 
00014 //  You should have received a copy of the GNU Lesser General Public 
00015 //  License along with this library; if not, write to the Free Software 
00016 //  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA 
00017 // 
00018 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
00019 //
00020 //
00021 //
00022 //  File   : SALOME_TestModuleCatalog.idl
00023 //  Author : 
00024 
00025 #ifndef _TestModuleCatalog_IDL
00026 #define _TestModuleCatalog_IDL
00027 
00028 #include "SALOME_Component.idl"
00029 
00030 module SALOME_TestModuleCatalog {
00031 
00032   interface Adder ;
00033 
00034   interface AddComponent : Engines::Component {
00035 
00036 // DataStreamPorts Addition istream(INTEGER, in, T), ostream(STRING, out, I)
00037 // DataStreamPorts Addition Ostream(FLOAT, out, T)
00038     Adder Addition() ;
00039     double Add( in double x , in double y , out double z ) ;
00040     long Sigma( in long n ) ;
00041     double LastResult() ;
00042   };
00043 
00044   interface Adder : Engines::Component {
00045     double Add( in double x , in double y , out double z ) ;
00046     double AddAndCompare( in double x , in double y , in Adder anOtherAdder,
00047                           out double z ) ;
00048     void SetLastResult( in double z ) ;
00049     void LastResult( out double z ) ;
00050   };
00051 
00052 } ;
00053 
00054 #endif