summaryrefslogtreecommitdiff
path: root/modules/CIAO/connectors/ami4ccm/tests/IDL_Test/Hello.idl
blob: 9e2a46a130ffdd4d890b02af7d6ddaa8b2f0e11c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// $Id$

#ifndef HELLO_IDL
#define HELLO_IDL

#pragma ciao lem "HelloE.idl"
#pragma ciao ami4ccm interface "Hello::MyFoo"
#pragma ciao ami4ccm interface "Hello::MyDerived"
#pragma ciao ami4ccm interface "Foo::MyFoo"

module Hello
{
  exception InternalError
    {
      long id;
      string error_string;
    };

  interface MyFoo
    {
      long foo (in string in_str, out string answer)
        raises (InternalError);
      void hello (out long answer)
        raises (InternalError);

      attribute short rw_attrib
        getraises (InternalError)
        setraises (InternalError);

      readonly attribute short ro_attrib
        raises (InternalError);
    };

  interface MyDerived : MyFoo
    {
      long do_someting (in string str);
      attribute long my_attribute;
    };
};

module Foo
{
  interface MyFoo
    {
      long myop (in string str);
    };
};

#endif