blob: 8703a2d95a9dba6358fe3a74f76dca9b22512ec6 (
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
51
|
//$Id$
// ============================================================================
//
// = LIBRARY
// TAO/tests/Exposed_Policies
//
// = FILENAME
// Counter_i.h
//
// = DESCRIPTION
// This class implements the Counter IDL interface.
//
// = AUTHOR
// Angelo Corsaro <corsaro@cs.wustl.edu>
//
// ============================================================================
#ifndef COUNTER_I_H_
#define COUNTER_I_H_
// -- App. Specific Include --
#include "CounterS.h"
#include "Policy_Tester.h"
class Counter_Servant : public POA_Counter
{
public:
// = Ctor-Dtor Declaration
Counter_Servant (Policy_Tester *policy_tester);
virtual ~Counter_Servant (void);
// = Counter Interface Methods Overloading.
virtual void increment (void);
virtual CORBA::Long get_count (void);
virtual void reset (void);
virtual void shutdown (void);
protected:
CORBA::Long count_;
Policy_Tester *policy_tester_;
};
#endif /*COUNTER_I_H_*/
|