blob: e98291a19eefbb574954c5d9b41e3e2a4bbd8991 (
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
|
// $Id$
#include "simple_object_impl.h"
#include "tao/corba.h"
ACE_RCSID(ImplRepo, simple_object_impl, "$Id$")
// Constructor
Simple_i::Simple_i (const char *)
: use_ir_ (1)
{
}
// Destructor
Simple_i::~Simple_i (void)
{
}
// Cube a long
CORBA::Long
Simple_i::simple_method (CORBA::Long l, CORBA::Environment &env)
{
ACE_DEBUG ((LM_DEBUG, "Simple Method\n"));
ACE_UNUSED_ARG (env);
TAO_ORB_Core_instance ()->orb ()->shutdown ();
return l * l * l;
}
// Shutdown.
void Simple_i::shutdown (CORBA::Environment &env)
{
ACE_UNUSED_ARG (env);
ACE_DEBUG ((LM_DEBUG, "%s\n", "Simple_i is shutting down"));
// if (this->use_ir_ == 1)
// TAO_ORB_Core_instance ()->orb ()->shutdown ();
}
void Ping_i::ping (CORBA::Environment &env)
{
ACE_DEBUG ((LM_DEBUG, "Pinged!\n"));
ACE_UNUSED_ARG (env);
// Does nothing, just returns.
}
|