blob: 0c80c2c6e3c442e932ead3a7fceb572f65a8b2a4 (
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
|
#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 ();
}
|