Salome HOME
merge from branch DEV tag mergeto_trunk_04apr08
[modules/yacs.git] / src / runtime / Test / echo.idl
1 #ifndef __ECHO_IDL__
2 #define __ECHO_IDL__
3
4 module eo{
5   enum ExceptionType
6   {
7     COMM,             /*!< Communication problem */
8     BAD_PARAM,        /*!< Bad User parameters */
9     INTERNAL_ERROR    /*!< Application level problem, irrecoverable */
10   };
11
12   struct ExceptionStruct
13   {
14     ExceptionType type; /*!<Type of the exception.*/
15     string        text; /*!<Message which is shown when the exception is raised.*/
16     string        sourceFile; /*!<The source file where the exception is raised.*/
17     unsigned long lineNumber; /*!<Line number where the exception is raised.*/
18   };
19
20   exception SALOME_Exception
21   {
22     ExceptionStruct details; /*!<Structure of the exception.*/
23   };
24
25   typedef sequence<double> DoubleVec ;
26   typedef sequence<long> IntVec;
27   typedef sequence<string> StrVec;
28   typedef sequence<Object> ObjectVec;
29   typedef sequence<DoubleVec> DoubleVecVec;
30   typedef sequence<ObjectVec> ObjectVecVec;
31
32   interface Obj
33   {
34     long echoLong(in long i);
35   };
36   interface C:Obj
37   {
38   };
39   interface D
40   {
41     long echoLong2(in long i);
42   };
43   interface E:C,D
44   {
45   };
46
47   typedef sequence<Obj> ObjVec ;
48
49   interface Echo
50   {
51     string echoString(in string mesg);
52     long echoLong(in long i) raises (SALOME_Exception);
53     void echoDouble(in double i,out double j) ;
54     void echoDoubleVec(in DoubleVec i,out DoubleVec j) ;
55     void echoDoubleVecVec(in DoubleVecVec i,out DoubleVecVec j) ;
56     void echoIntVec(in IntVec i,out IntVec j) ;
57     void echoStrVec(in StrVec i,out StrVec j) ;
58     void echoObj2(in Obj i,out Obj j) ;
59     void echoD(in D i,out D j) ;
60     void echoC(in C i,out C j) ;
61     void echoObjVec(in ObjVec i,out ObjVec j) ;
62     void echoObjectVec(in ObjectVec i,out ObjectVec j) ;
63     void echoObjectVecVec(in ObjectVecVec i,out ObjectVecVec j) ;
64     Obj echoObj(in long i,in Obj o,in long k,out Obj p);
65     void createObj(in long i,out Obj p);
66     void createC(out C p);
67     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);
68   };
69   interface SubEcho:Echo
70   {
71   };
72 };
73
74 #endif