summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/ImplRepo/oneway/Test_i.cpp
blob: ee6d0e6ea32e6a1c5403e5e8e9b68747ae2e7315 (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
/* -*- C++ -*-  */

#include "Test_i.h"
#include "ace/OS_NS_unistd.h"

Test_i::Test_i ()
  : count_ (0)
{
}

Test_i::~Test_i ()
{
}

void
Test_i::foo ()
{
  ACE_DEBUG ((LM_DEBUG,"foo called\n"));
  ++this->count_;
}

CORBA::Short
Test_i::get_call_count ()
{
  CORBA::Short r = this->count_;
  this->count_ = 0;
  return r;
}