summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/RtecEventComm.idl
blob: 5171aaa44380d6ba9e75d4c693cdfba460882765 (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
//
// $Id$
//

module RtecEventComm {
  exception Disconnected {};

#if 0
  union EventData switch(short) {
  case 1: double dval;
  case 2: string sval;
  case 3: sequence<octet> bval;
  default: long lval;
  };
#else
  struct EventData {
    long x;
    long y;
  };
#endif

  typedef long EventSourceID;
  typedef long EventType;

  // @@ TODO: Use CosTimeService?
  // The current definition (double) is a TOTAL HACK, we store a long
  // long here just because it fits....
  typedef double Time;

  struct Event {
    EventSourceID source_;
    EventType type_;
    Time creation_time_;
    Time ec_recv_time_;
    Time ec_send_time_;
    EventData data_;
  };
  typedef sequence<Event> EventSet;

  interface PushConsumer {
    oneway void push (in EventSet data); //  raises(Disconnected);
    oneway void disconnect_push_consumer(); 
  };

  interface PushSupplier {
    oneway void disconnect_push_supplier();
  };

};