Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / DLL_ORB / Test_Server_Module.h
blobda65a59ce275d33e02c503e402453188bbe71b8e
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Test_Server_Module.h
7 * @author Ossama Othman <ossama@uci.edu>
8 */
9 //=============================================================================
11 #ifndef TEST_SERVER_MODULE_H
12 #define TEST_SERVER_MODULE_H
14 #include /**/ "ace/pre.h"
16 #include "Test_Server_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 "Test_i.h"
26 /**
27 * @class Test_Server_Module
29 * @brief The shared object that is instantiated when the server-side
30 * test module/library is dynamically loaded.
32 * This class handles all of the server-side ORB tasks, such as
33 * activating the test CORBA object, and running the ORB.
36 class Test_Server_Module_Export Test_Server_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 virtual ~Test_Server_Module (void);
51 private:
53 /// Reference to the ORB.
54 CORBA::ORB_var orb_;
56 /// Reference to the POA.
57 PortableServer::POA_var poa_;
59 /// Reference to the POA Manager.
60 PortableServer::POAManager_var poa_manager_;
62 /// The servant that implements the "Test" object.
63 Test_i servant_;
67 ACE_FACTORY_DECLARE (Test_Server_Module, Test_Server_Module)
69 #include /**/ "ace/post.h"
71 #endif /* TEST_SERVER_MODULE_H */