Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / examples / Callback_Quoter / Consumer.idl
blob07bc8ba9afed81de215968f027141a45071f7e76
1 /* -*- C++ -*- */
2 #if !defined (_CONSUMER_IDL)
3 #define _CONSUMER_IDL
5 module Callback_Quoter
7 // = TITLE
8 // This module contains the data structure defined to store
9 // information and the consumer interface.
11 exception Invalid_Stock
13 // = TITLE
14 // Requested stock does not exist.
16 string reason;
17 // The message which declares the reason for this exception.
21 exception Invalid_Handle
23 // = TITLE
24 // Requested object does not exist.
26 string reason;
27 // The actual reason which caused the exception.
31 struct Info
33 // = TITLE
34 // The information passed by the Notifier to the consumer.
36 string stock_name;
37 // This is the name of the stock about whom the consumer
38 // is seeking information.
40 long value;
41 // This is the market price of the stock.
44 interface Consumer
46 // = TITLE
47 // The Consumer interface which is utilized by the Notifier
48 // to pass information to the consumer.
50 void push (in Callback_Quoter::Info data);
51 // Notifier sends data to the consumer.
53 void shutdown ();
54 // the process shuts down.
58 #endif /* _CONSUMER_IDL */