summaryrefslogtreecommitdiff
path: root/trunk/CIAO/ciao/CCM_EventConsumerBase.idl
blob: 0e1facf5940a9861d0ba1ee9f66f3f07357f9aea (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$

/**
 * @@ Compile this file with:
 *
 *     tao_idl -Gv -I ../.. -I ../../orbsvcs/orbsvcs \
 *          -Wb,export_macro=CIAO_Export \
 *          -Wb,export_include=CIAO_export.h \
 *          -Wb,pre_include="ace/pre.h" \
 *          -Wb,post_include="ace/post.h" \
 *          CCM_Event.idl
 */

//#define CIAO_HAS_IMPORT_KEYWORD

#if !defined (CCM_EVENTCONSUMERBASE_IDL)
#define CCM_EVENTCONSUMERBASE_IDL

#include "ciao/CCM_EventBase.idl"
#include "tao/Typecode_types.pidl"
#include "tao/orb_types.pidl"

module Components
{
  typeprefix Components "omg.org";

  exception BadEventType
  {
    CORBA::RepositoryId expected_event_type;
  };

  interface EventConsumerBase
  {
    void push_event (in EventBase evt) raises (BadEventType);

    // CIAO-specific operation to treat event service as regular event
    // sink port. The source_id needs to be passed in to identify the
    // source of the publisher port to support event filtering mechanism.
    void ciao_push_event (in EventBase evt,
                          in string source_id,
                          in CORBA::TypeCode tc)
      raises (BadEventType);

    // CIAO-specific operation to help support the capability
    // to subscribe to eventtypes more derived than the type
    // consumed.
    boolean ciao_is_substitutable (in string event_repo_id);
  };
};
#endif /* CCM_EVENTCONSUMERBASE_IDL */