summaryrefslogtreecommitdiff
path: root/TAO/tests/Quoter/quoter_impl.h
blob: 6adf9fbcb813c5c713465fa01ba2f92cc6e184b6 (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
62
63
64
65
66
67
68
69
70
71
72
73
74
// $Id$

// ============================================================================
//
// = LIBRARY
//    TAO/tests/Quoter
// 
// = FILENAME
//    quoter_impl.h
//
// = AUTHOR
//    Darrell Brunsch 
// 
// ============================================================================

#if !defined (QUOTER_IMPL_H)
#define	QUOTER_IMPL_H

#include "QuoterS.h"

// Forward declarations.
class Quoter_Impl;

// Typedefs.
typedef Quoter_Impl *Quoter_Impl_ptr;
typedef Quoter_Impl_ptr Quoter_Impl_ref;

class Quoter_Impl: public POA_Stock::Quoter
{
  // = TITLE
  //   @@@@ Write
  //
  // = DESCRIPTION
  //   @@@@ Write
public:
  Quoter_Impl (const char *obj_name = 0);
  // Constructor

  ~Quoter_Impl (void);
  // Destructor

  virtual CORBA::Long get_quote (const char *stock_name,
                                 CORBA::Environment &env);
  
  virtual void destroy (CORBA_Environment &env);
};

class Quoter_Factory_Impl;

typedef Quoter_Factory_Impl *Quoter_Factory_Impl_ptr;

class Quoter_Factory_Impl: public POA_Stock::Quoter_Factory
{
  // = TITLE
  //   Quoter_Factory_Impl
  //
  // = DESCRIPTION
  //   Factory object returning the quoter_impl objrefs
public:
  Quoter_Factory_Impl (void);
  // Constructor.

  ~Quoter_Factory_Impl (void);
  // Destructor.

  virtual Stock::Quoter_ptr  create_quoter (const char *name,  
                                            CORBA::Environment &env);
  // Return the quoter by the id <name>

private:
  Quoter_Impl my_quoter_;
};

#endif /* QUOTER_IMPL_H */