summaryrefslogtreecommitdiff
path: root/TAO/examples/Callback_Quoter/Consumer.idl
blob: f37d1728078a3cc90032935b5945ba4434943c1d (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
/* -*- C++ -*- */
// $Id$

#if !defined (_CONSUMER_IDL)
#define _CONSUMER_IDL

module Callback_Quoter
{
  // = TITLE
  // The Consumer interface is implemented by the consumer-client.
  // The interface functions are called by the Supplier.

  exception Invalid_Stock 
  {
    // = TITLE
    //   Requested stock does not exist
  };

  struct Info
  {
    // = TITLE
    // @@ Please fill in here.

    string stock_name;
    long value;
  };

  interface Consumer
    {
      // = TITLE
      // @@ Please fill in here.

      // supplier sends data to the consumer.
      void push (in Callback_Quoter::Info data);
      // @@ Make sure to put the comments "underneath"
      // the operation/method names...

      // Called by the chat server before it goes away.
      oneway void shutdown ();
    };
};

#endif /* _CONSUMER_IDL */