summaryrefslogtreecommitdiff
path: root/TAO/CIAO/examples/handcrafted/BasicSP_EC2/BasicSP.idl
blob: 5ea22ff5c99a6624e08330b385bf9788539922db (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
60
61
// $Id$
//=============================================================================
/**
 * @file BasicSP.idl
 *
 * Definition of events, and common interfaces used in the BasicSP module.
 *
 * @author Balachandran Natarajan <bala@dre.vanderbilt.edu>
 */
//=============================================================================

#ifndef CIAO_BASIC_SP_IDL
#define CIAO_BASIC_SP_IDL

#include <Components.idl>

// @@NOTE: Do we need a pragma prefix. Anyway its broken now in TAO..
// #pragma prefix ""


module BasicSP
{

  /**
   * @NOTE: Not sure whether this is a good abstraction. Just copying
   *  the stuff from Cadena folks.
   */
  /**
   * @interface ReadData
   *
   */

  interface ReadData {
    string get_data ();
  };

  interface RTEventChannel
  {
      void connect_consumer (in string event_type,
                             in string sink_name,
                             in string consumer_oid);

      void connect_supplier (in string event_type,
                             in string source_name,
                             in string supplier_oid);

  };

  /**
   * @eventtype Events that represent timeouts
   */
  eventtype TimeOut {};

  /**
   * @eventtype Events that represent data availability
   */
  eventtype DataAvailable {};

};

#endif /*CIAO_BASIC_SP_IDL*/