summaryrefslogtreecommitdiff
path: root/CIAO/tests/CIF/Component/CIF_Component.idl
blob: 209d8dd330820b4a6f323c711014a872a07f038b (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
51
52
53
54
55
56
57
58
59
#ifndef CIF_COMPONENT_IDL_
#define CIF_COMPONENT_IDL_

#include <Components.idl>

module CIF
{
  interface foo
  {
    void do_foo ();
  };

  interface derived_foo : foo
  {
    void do_derived_foo ();
  };
#if !defined (CCM_NOEVENT)
  eventtype DoSomething {
    public string tobedone;
  };
  eventtype DoSomethingElse {
    public string tobedone;
  };
#endif

  component CIF_Provider
  {
#if !defined (CCM_NOEVENT)
    publishes DoSomething     publish_do_something;
    publishes DoSomethingElse publish_do_something_else;

    emits     DoSomething     emit_do_something;
    emits     DoSomethingElse emit_do_something_else;
#endif
    provides foo          provide_cif_foo;
    provides derived_foo  provide_cif_derived_foo;

    attribute short provider_id;
  };

  component CIF_User
  {
#if !defined (CCM_NOEVENT)
    consumes DoSomething consume_do_something;
    consumes DoSomethingElse consume_do_something_else;
#endif
    uses foo             use_cif_foo;
    uses multiple foo    use_multiple_foo;
    uses derived_foo     use_cif_derived_foo;

    attribute short user_id;
  };

  home CIF_UserHome manages CIF_User
  {
  };
};

#endif /* CIF_COMPONENT_IDL_ */