Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / examples / CSD_Strategy / ThreadPool5 / ClientTask.h
blobec19ef9a1bbd8664538dca230b448762d4577afb
1 // This may look like C, but it's really -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file ClientTask.h
7 * @author Tim Bradley <bradley_t@ociweb.com>
8 */
9 //=============================================================================
11 #ifndef CLIENT_TASK_H
12 #define CLIENT_TASK_H
14 #include "FooC.h"
15 #include "CallbackC.h"
16 #include "ace/Task.h"
18 class ClientTask : public ACE_Task_Base
20 public:
22 ClientTask(CORBA::ORB_ptr orb,
23 Foo_ptr foo,
24 Callback_ptr callback,
25 bool collocated = false);
27 virtual ~ClientTask();
29 virtual int open(void* x = 0);
30 virtual int svc();
31 virtual int close(u_long);
33 private:
34 bool validate_connection ();
36 CORBA::ORB_var orb_;
37 Foo_var foo_;
38 Callback_var callback_;
39 bool collocated_;
42 #endif