ACE+TAO-6_5_17
[ACE_TAO.git] / TAO / tests / Bug_2935_Regression / sink_i.h
blob819142d5d5f11b7b68d9b12975bc63cce1350b4c
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file sink_i.h
7 * This class implements the ThreeTier IDL interface.
8 * It acts as the "end of the line" for tick and tock
9 * requests.
11 * @author Dale Wilson <wilsond@ociweb.com>
13 //=============================================================================
16 #ifndef SINK_I_H
17 #define SINK_I_H
19 #include "ThreeTierS.h"
21 class Sink_i: public POA_ThreeTier
23 public:
24 /// Construct
25 /// @param an initialized ORB
26 Sink_i (CORBA::ORB_ptr orb);
28 /// Destructor
29 ~Sink_i ();
31 bool parse_args (int & argc, ACE_TCHAR * argv[]);
33 ///Implement ThreeTier methods
34 virtual void tick ();
35 virtual void tock ();
36 virtual ::CORBA::ULong tickCount ();
37 virtual ::CORBA::ULong tockCount ();
38 virtual void shutdown ();
40 private:
41 CORBA::ORB_var orb_;
43 unsigned long tickCount_;
44 unsigned long tockCount_;
47 #endif /* SINK_I_H */