summaryrefslogtreecommitdiff
path: root/tests/Bug_3853_Regression/Hello_i.cpp
blob: b354ffa12c0a2d62abd0d451cbb8f2bf0f6d140a (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 "Hello_i.h"
#include "ace/OS.h"

#include <iostream>
using namespace std;

// 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 %s \n"), msg));
}



void 
Demo_HelloWorld_i::shutdown()
{
  ACE_DEBUG ((LM_DEBUG, "(%P|%t)Demo_HelloWorld_i::shutdown \n"));
  this->orb_->shutdown (0);
}