Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / Exposed_Policies / Counter_i.h
blobd4bed6f4ae585769a095b7f47796e174842dfc9f
2 //=============================================================================
3 /**
4 * @file Counter_i.h
6 * This class implements the Counter IDL interface.
8 * @author Angelo Corsaro <corsaro@cs.wustl.edu>
9 */
10 //=============================================================================
13 #ifndef COUNTER_I_H_
14 #define COUNTER_I_H_
16 // -- App. Specific Include --
17 #include "CounterS.h"
18 #include "Policy_Tester.h"
21 class Counter_Servant : public POA_Counter
23 public:
24 // = Ctor-Dtor Declaration
25 Counter_Servant (Policy_Tester *policy_tester);
26 virtual ~Counter_Servant () = default;
28 // = Counter Interface Methods Overloading.
30 virtual void increment ();
32 virtual CORBA::Long get_count ();
34 virtual void reset ();
36 virtual void shutdown ();
38 protected:
39 CORBA::Long count_;
40 Policy_Tester *policy_tester_;
43 #endif /*COUNTER_I_H_*/