summaryrefslogtreecommitdiff
path: root/TAO/tests/Simple/bank/Bank_i.cpp
blob: 70341f2ba69e9bddc2e81bfa532e70b9facb1655 (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
// $Id$

#include "Bank_i.h"

ACE_RCSID(Bank, Bank_i, "$Id$")

// Constructor

Bank_i::Bank_i (void)
{
  // no-op
}

// Destructor

Bank_i::~Bank_i (void)
{
  // no-op
}

// Set the ORB pointer.

void
Bank_i::orb (CORBA::ORB_ptr o)
{
  this->orb_ = CORBA::ORB::_duplicate (o);
}

// Return the current balance on the server.

CORBA::Float
Bank_i::balance (CORBA::Environment &)
{
  return CORBA::Float (100);
}

// Shutdown.

void Bank_i::shutdown (CORBA::Environment &)
{
  ACE_DEBUG ((LM_DEBUG,
              "%s\n",
              "Bank_i is shutting down"));

  // Instruct the ORB to shutdown.
  this->orb_->shutdown ();
}