blob: a548e52640d39b5f59daf9fcab625f25386bf22e (
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
75
76
77
78
79
80
81
82
83
84
85
|
// $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);
virtual CosLifeCycle::LifeCycleObject_ptr copy (CosLifeCycle::FactoryFinder_ptr there,
const CosLifeCycle::Criteria &the_criteria,
CORBA::Environment &_tao_environment);
virtual void move (CosLifeCycle::FactoryFinder_ptr there,
const CosLifeCycle::Criteria &the_criteria,
CORBA::Environment &_tao_environment);
virtual void remove (CORBA::Environment &_tao_environment);
};
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_;
// @@ Do we just want one of these?!
};
#endif /* QUOTER_IMPL_H */
|