summaryrefslogtreecommitdiff
path: root/TAO/tests/Simple/simple_object_impl.cpp
blob: b0266f5a140fe820f864198be82c9a96132bf4bf (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
// $Id$

#include "simple_object_impl.h"
#include "tao/corba.h"

ACE_RCSID(Simple, simple_object_impl, "$Id$")

// Constructor

Simple_Impl::Simple_Impl (const char *)
{
}


// Destructor

Simple_Impl::~Simple_Impl (void)
{
}

// Cube a long

CORBA::Long
Simple_Impl::simple_method (CORBA::Long l, CORBA::Environment &env)
{
  ACE_UNUSED_ARG (env);
  return l * l * l;
}

// Shutdown.

void Simple_Impl::shutdown (CORBA::Environment &env)
{
  ACE_UNUSED_ARG (env);

  ACE_DEBUG ((LM_DEBUG, "%s\n", "Simple_Impl is shutting down"));

  TAO_ORB_Core_instance ()->orb ()->shutdown ();
}