=default for generated implementation copy ctor
[ACE_TAO.git] / TAO / tests / DLL_ORB / Test_Server_Module.h
blobc2011ba6c46b182e13e844dcf37170a623f7149e
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:
39 /// Initializes object when dynamic linking occurs.
40 virtual int init (int argc, ACE_TCHAR *argv[]);
42 /// Terminates object when dynamic unlinking occurs.
43 virtual int fini ();
45 /// Run by a daemon thread to handle deferred processing.
46 virtual int svc ();
48 virtual ~Test_Server_Module ();
50 private:
51 /// Reference to the ORB.
52 CORBA::ORB_var orb_;
54 /// Reference to the POA.
55 PortableServer::POA_var poa_;
57 /// Reference to the POA Manager.
58 PortableServer::POAManager_var poa_manager_;
60 /// The servant that implements the "Test" object.
61 Test_i servant_;
64 ACE_FACTORY_DECLARE (Test_Server_Module, Test_Server_Module)
66 #include /**/ "ace/post.h"
68 #endif /* TEST_SERVER_MODULE_H */