Salome HOME
updated copyright message
[modules/yacs.git] / src / yacsloader / Test / echo.idl
1 // Copyright (C) 2006-2023  CEA, EDF
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, or (at your option) any later version.
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
20 #ifndef __ECHO_IDL__
21 #define __ECHO_IDL__
22
23 module eo{
24   enum ExceptionType
25   {
26     COMM,             /*!< Communication problem */
27     BAD_PARAM,        /*!< Bad User parameters */
28     INTERNAL_ERROR    /*!< Application level problem, irrecoverable */
29   };
30
31   struct ExceptionStruct
32   {
33     ExceptionType type; /*!<Type of the exception.*/
34     string        text; /*!<Message which is shown when the exception is raised.*/
35     string        sourceFile; /*!<The source file where the exception is raised.*/
36     unsigned long lineNumber; /*!<Line number where the exception is raised.*/
37   };
38
39   exception SALOME_Exception
40   {
41     ExceptionStruct details; /*!<Structure of the exception.*/
42   };
43
44   typedef sequence<double> DoubleVec ;
45   typedef sequence<long> IntVec;
46   typedef sequence<string> StrVec;
47   typedef sequence<boolean> BoolVec;
48   typedef sequence<Object> ObjectVec;
49   typedef sequence<DoubleVec> DoubleVecVec;
50   typedef sequence<ObjectVec> ObjectVecVec;
51
52   interface Obj
53   {
54     long echoLong(in long i);
55   };
56   interface C:Obj
57   {
58   };
59   interface D
60   {
61     long echoLong2(in long i);
62   };
63   interface E:C,D
64   {
65   };
66
67   typedef sequence<Obj> ObjVec ;
68   struct S1
69   {
70     double x;
71     long y;
72     string s;
73     boolean b;
74     DoubleVec vd;
75   };
76   struct S2
77   {
78     S1 s;
79   };
80   struct S3
81   {
82     double x;
83     long y;
84     string s;
85     boolean b;
86     Obj ob;
87   };
88
89   interface Echo
90   {
91     string echoString(in string mesg);
92     boolean echoBoolean(in boolean b);
93     long echoLong(in long i) raises (SALOME_Exception);
94     void echoDouble(in double i,out double j) ;
95     void echoDoubleVec(in DoubleVec i,out DoubleVec j) ;
96     void echoDoubleVecVec(in DoubleVecVec i,out DoubleVecVec j) ;
97     void echoIntVec(in IntVec i,out IntVec j) ;
98     void echoStrVec(in StrVec i,out StrVec j) ;
99     void echoBoolVec(in BoolVec i,out BoolVec j) ;
100     void echoObj2(in Obj i,out Obj j) ;
101     void echoD(in D i,out D j) ;
102     void echoC(in C i,out C j) ;
103     void echoObjectVec(in ObjectVec i,out ObjectVec j) ;
104     void echoObjectVecVec(in ObjectVecVec i,out ObjectVecVec j) ;
105     Obj echoObj(in long i,in Obj o,in long k,out Obj p);
106     void createObj(in long i,out Obj p);
107     void createC(out C p);
108     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);
109     void sleepLong(in double time1,out double time2) ;
110     S2 echoStruct(in S2 s);
111     S3 echoStruct2(in S3 s);
112
113     // Shuts down the server.
114     void shutdown();
115   };
116   interface SubEcho:Echo
117   {
118   };
119 };
120
121 #endif