summaryrefslogtreecommitdiff
path: root/TAO/docs/tutorials/Quoter/AMI/Handler_i.h
blob: 60848fb3aeccdc1f4f0ec4ff2b4d477bd61d47c2 (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
//
// $Id$
//

#ifndef TAO_TUTORIALS_QUOTER_AMI_CLIENT_HANDLER_I_H
#define TAO_TUTORIALS_QUOTER_AMI_CLIENT_HANDLER_I_H

#include "QuoterS.h"

class Single_Query_Stock_Handler_i : public POA_Quoter::AMI_Single_Query_StockHandler
{
public:
  Single_Query_Stock_Handler_i (int *response_count);

  void get_price_and_names (CORBA::Double ami_return_val,
                           const char *symbol,
                           const char *full_name)
      throw (CORBA::SystemException);

  void get_price_and_names_excep (Quoter::AMI_Single_Query_StockExceptionHolder *)
    throw (CORBA::SystemException);

  void get_symbol(const char *)
    throw (CORBA::SystemException);
  void get_symbol_excep (Quoter::AMI_StockExceptionHolder *)
    throw (CORBA::SystemException);

  void get_full_name (const char *)
    throw (CORBA::SystemException);
  void get_full_name_excep (Quoter::AMI_StockExceptionHolder *)
    throw (CORBA::SystemException);

  void price (double)
    throw (CORBA::SystemException);
  void price_excep (Quoter::AMI_StockExceptionHolder *)
    throw (CORBA::SystemException);

private:

  int *response_count_;
};

#endif /* TAO_TUTORIALS_QUOTER_AMI_CLIENT_HANDLER_I_H */