Salome HOME
c2557fd478a902c2dcfb9507047a6379fddf0435
[modules/yacs.git] / src / runtime / Test / echo.idl
1 //  Copyright (C) 2006-2008  CEA/DEN, EDF R&D
2 //
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.
7 //
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.
12 //
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
16 //
17 //  See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19 #ifndef __ECHO_IDL__
20 #define __ECHO_IDL__
21
22 module eo{
23   enum ExceptionType
24   {
25     COMM,             /*!< Communication problem */
26     BAD_PARAM,        /*!< Bad User parameters */
27     INTERNAL_ERROR    /*!< Application level problem, irrecoverable */
28   };
29
30   struct ExceptionStruct
31   {
32     ExceptionType type; /*!<Type of the exception.*/
33     string        text; /*!<Message which is shown when the exception is raised.*/
34     string        sourceFile; /*!<The source file where the exception is raised.*/
35     unsigned long lineNumber; /*!<Line number where the exception is raised.*/
36   };
37
38   exception SALOME_Exception
39   {
40     ExceptionStruct details; /*!<Structure of the exception.*/
41   };
42
43   typedef sequence<double> DoubleVec ;
44   typedef sequence<long> IntVec;
45   typedef sequence<string> StrVec;
46   typedef sequence<Object> ObjectVec;
47   typedef sequence<DoubleVec> DoubleVecVec;
48   typedef sequence<ObjectVec> ObjectVecVec;
49
50   interface Obj
51   {
52     long echoLong(in long i);
53   };
54   interface C:Obj
55   {
56   };
57   interface D
58   {
59     long echoLong2(in long i);
60   };
61   interface E:C,D
62   {
63   };
64
65   typedef sequence<Obj> ObjVec ;
66
67   interface Echo
68   {
69     string echoString(in string mesg);
70     long echoLong(in long i) raises (SALOME_Exception);
71     void echoDouble(in double i,out double j) ;
72     void echoDoubleVec(in DoubleVec i,out DoubleVec j) ;
73     void echoDoubleVecVec(in DoubleVecVec i,out DoubleVecVec j) ;
74     void echoIntVec(in IntVec i,out IntVec j) ;
75     void echoStrVec(in StrVec i,out StrVec j) ;
76     void echoObj2(in Obj i,out Obj j) ;
77     void echoD(in D i,out D j) ;
78     void echoC(in C i,out C j) ;
79     void echoObjVec(in ObjVec i,out ObjVec j) ;
80     void echoObjectVec(in ObjectVec i,out ObjectVec j) ;
81     void echoObjectVecVec(in ObjectVecVec i,out ObjectVecVec j) ;
82     Obj echoObj(in long i,in Obj o,in long k,out Obj p);
83     void createObj(in long i,out Obj p);
84     void createC(out C p);
85     void echoAll(in double d,in long l,in string m,in Obj o,out double dd,out long ll,out string s,out Obj p);
86   };
87   interface SubEcho:Echo
88   {
89   };
90 };
91
92 #endif