blob: 478a4fc6902e5c1c98ad089f4b222f1b5894ff5f (
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
|
// $Id$
#include "Hello_i.h"
#include "ace/OS_NS_unistd.h"
// Implementation skeleton constructor
Demo_HelloWorld_i::Demo_HelloWorld_i (CORBA::ORB_ptr orb)
: orb_ (CORBA::ORB::_duplicate (orb))
{
}
// Implementation skeleton destructor
Demo_HelloWorld_i::~Demo_HelloWorld_i (void)
{
}
void Demo_HelloWorld_i::sayHello (
const char * msg
)
{
ACE_OS::sleep(1);
// Add your implementation here
ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("%P|%t)Demo_HelloWorld_i::sayHello %C\n"), msg));
}
void
Demo_HelloWorld_i::shutdown()
{
ACE_DEBUG ((LM_DEBUG, "(%P|%t)Demo_HelloWorld_i::shutdown \n"));
this->orb_->shutdown (0);
}
|