blob: 4b184c09e8fe41a6294652e161440dbca212188c (
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
52
53
|
// -*- C++ -*-
// $Id$
// ============================================================================
//
// = LIBRARY
// TAO/tests/ThreeTier
//
// = FILENAME
// Sink_i.h
//
// = DESCRIPTION
// 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);
~Sink_i ();
// Destructor
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 */
|