Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / DLL_ORB / Test_Client_Module.h
blob8cb2d44ee618a129f75d6b78574f43c12dcc70ed
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Test_Client_Module.h
7 * @author Ossama Othman <ossama@uci.edu>
8 */
9 //=============================================================================
11 #ifndef TEST_MODULE_H
12 #define TEST_MODULE_H
14 #include /**/ "ace/pre.h"
16 #include "Test_Client_Module_Export.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "ace/Task.h"
23 #include "ace/Service_Config.h"
25 #include "TestC.h"
27 /**
28 * @class Test_Client_Module
30 * @brief The shared object that is instantiated when the client-side
31 * test module/library is dynamically loaded.
33 * This class invokes an operation on a "remote" CORBA object.
36 class Test_Client_Module_Export Test_Client_Module : public ACE_Task_Base
38 public:
40 /// Initializes object when dynamic linking occurs.
41 virtual int init (int argc, ACE_TCHAR *argv[]);
43 /// Terminates object when dynamic unlinking occurs.
44 virtual int fini (void);
46 /// Run by a daemon thread to handle deferred processing.
47 virtual int svc (void);
49 private:
51 /// Reference to the ORB.
52 CORBA::ORB_var orb_;
54 /// Reference to the test object.
55 Test_var test_;
59 ACE_FACTORY_DECLARE (Test_Client_Module, Test_Client_Module)
61 #include /**/ "ace/post.h"
63 #endif /* TEST_MODULE_H */