blob: da2af18b2bb4f3b790b8e7a0f3874b147af5488d (
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
|
//=============================================================================
/**
* @file Counter_i.h
*
* 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_*/
|