blob: 5d986e5084d057dcee57287fbc379cb09f61d067 (
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
|
// -*- C++ -*-
//=============================================================================
/**
* @file sink_i.h
*
* $Id$
*
* This class implements the ThreeTier IDL interface.
* It acts as the "end of the line" for tick and tock
* requests.
*
* @author Dale Wilson <wilsond@ociweb.com>
*/
//=============================================================================
#ifndef SINK_I_H
#define SINK_I_H
#include "ThreeTierS.h"
class Sink_i: public POA_ThreeTier
{
public:
/// Construct
/// @param an initialized ORB
Sink_i (CORBA::ORB_ptr orb);
/// Destructor
~Sink_i ();
bool parse_args (int & argc, ACE_TCHAR * argv[]);
///Implement ThreeTier methods
virtual void tick ();
virtual void tock ();
virtual ::CORBA::ULong tickCount ();
virtual ::CORBA::ULong tockCount ();
virtual void shutdown ();
private:
CORBA::ORB_var orb_;
unsigned long tickCount_;
unsigned long tockCount_;
};
#endif /* SINK_I_H */
|