Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Xt_Stopwatch / Client.h
blob8d4507c83aa16ce1234d3bf47c3b1eeee185577b
2 //=============================================================================
3 /**
4 * @file Client.h
6 * @author Balachandran Natarajan <bala@cs.wustl.edu>
7 */
8 //=============================================================================
11 #ifndef CLIENT_H
12 #define CLIENT_H
14 #include "testC.h"
17 #include "tao/XtResource/XtResource_Loader.h"
18 class Control;
20 class Client
22 public:
24 /// ctor
25 Client (CORBA::ORB_ptr orb);
27 ///Dtor..
28 ~Client (void);
30 /// The callbacks
31 static void start_callback (Widget w,
32 XtPointer client_data,
33 XtPointer call_data);
34 static void stop_callback (Widget w,
35 XtPointer client_data,
36 XtPointer call_data);
38 /// The hooks...
39 void start_hook (void);
40 void stop_hook (void);
42 /// Adds the callbacks to the GUI underneath.....
43 void add_callback (Control &);
45 void parse_args (int argc, ACE_TCHAR *argv[]);
46 private:
48 /// The ORB
49 CORBA::ORB_var orb_;
51 /// The server.
52 Stopwatch_var server_;
55 #endif /* CLIENT_H */