summaryrefslogtreecommitdiff
path: root/tests/Exposed_Policies/Counter_i.cpp
blob: 9ec2282ccdaf97fa7da387ef664ea80d213d52c8 (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
//$Id$

#include "Counter_i.h"

// Dtor-Ctor Implementation.

Counter_Servant::Counter_Servant (Policy_Tester *policy_tester)
  : count_ (0),
    policy_tester_ (policy_tester)
{
  // No-Op.
}

Counter_Servant::~Counter_Servant (void)
{
  // No-Op.
}

// Counter Interface Methods Implementation.

void
Counter_Servant::increment (/**/)
{
  ++this->count_;
}

CORBA::Long
Counter_Servant::get_count (/**/)
{
  return this->count_;
}

void
Counter_Servant::reset (/**/)
{
  this->count_ = 0;
}

void
Counter_Servant::shutdown (void)
{
  this->policy_tester_->shutdown ();
}