blob: 4a707034563520873657b228248acad0a8d14e3e (
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
44
45
46
47
48
49
50
|
//$Id$
#include "Counter_i.h"
ACE_RCSID(tao, Counter_Servant, "$Id$")
// 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 (ACE_ENV_SINGLE_ARG_DECL_NOT_USED/*ACE_ENV_SINGLE_ARG_PARAMETER*/)
ACE_THROW_SPEC ((CORBA::SystemException))
{
++this->count_;
}
CORBA::Long
Counter_Servant::get_count (ACE_ENV_SINGLE_ARG_DECL_NOT_USED/*ACE_ENV_SINGLE_ARG_PARAMETER*/)
ACE_THROW_SPEC ((CORBA::SystemException))
{
return this->count_;
}
void
Counter_Servant::reset (ACE_ENV_SINGLE_ARG_DECL_NOT_USED/*ACE_ENV_SINGLE_ARG_PARAMETER*/)
ACE_THROW_SPEC ((CORBA::SystemException))
{
this->count_ = 0;
}
void
Counter_Servant::shutdown (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException))
{
this->policy_tester_->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER);
ACE_TRY_CHECK;
}
|