summaryrefslogtreecommitdiff
path: root/TAO/tests/Quoter/quoter_impl.cpp
blob: fd93cf3027763b8d60f722a2d63eecf0f1e51d80 (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
// $Id$

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

#include "tao/corba.h"
//#include "ace/Auto_Ptr.h"
#include "quoter_impl.h"

// Constructor

Quoter_Factory_Impl::Quoter_Factory_Impl (void)
{
}

// Destructor

Quoter_Factory_Impl::~Quoter_Factory_Impl (void)
{
}

Stock::Quoter_ptr  
Quoter_Factory_Impl::create_quoter (const char *name,  
                                    CORBA::Environment &env)
{
  ACE_UNUSED_ARG (name);
  return my_quoter_._this (env);
}

// Constructor

Quoter_Impl::Quoter_Impl (const char *)
{
}

// Destructor

Quoter_Impl::~Quoter_Impl (void)
{
}

Quoter_Impl::get_quote (char const *stock_name, class CORBA_Environment &env)
{
  ACE_UNUSED_ARG (stock_name);
  ACE_UNUSED_ARG (env);
 
  return 42;
}

// Shutdown.

void Quoter_Impl::destroy (CORBA::Environment &env)
{
  ACE_UNUSED_ARG (env);

  ACE_DEBUG ((LM_DEBUG, 
              "%s",
	      "I have been asked to shut down "));
	      
  TAO_ORB_Core_instance ()->orb ()->shutdown ();
}