Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / orbsvcs / LifeCycle_Service / LifeCycle_Service.h
blobd85b29f5249622436b92ec1a62a645b602ee01e0
2 //=============================================================================
3 /**
4 * @file LifeCycle_Service.h
6 * A creation service for objects using the CosLifeCycle GenericFactory.
8 * @author Michael Kircher (mk1@cs.wustl.edu)
9 */
10 //=============================================================================
13 #include "ace/Get_Opt.h"
15 #if !defined (ACE_LACKS_PRAGMA_ONCE)
16 # pragma once
17 #endif /* ACE_LACKS_PRAGMA_ONCE */
19 #include "tao/Utils/ORB_Manager.h"
20 #include "LifeCycle_Service_i.h"
22 #ifndef LIFECYCLE_SERVICE_H
23 #define LIFECYCLE_SERVICE_H
25 /**
26 * @class Life_Cycle_Service_Server
27 = TILE
28 * Server object for the LifeCycle Service
30 class Life_Cycle_Service_Server
33 public:
34 /// Default constructor
35 Life_Cycle_Service_Server (void);
37 /// Destructor
38 ~Life_Cycle_Service_Server (void);
40 /// Initialize the Server state - parsing arguments and ...
41 int init (int argc,
42 ACE_TCHAR *argv[]);
44 /// Run the orb.
45 int run (void);
47 /// Parse the passed parameters.
48 u_int parse_args (int argc,
49 ACE_TCHAR* argv[]);
51 private:
52 /// instance of the ORB Manager
53 TAO_ORB_Manager orb_manager_;
55 /// Instance of the creation service
56 Life_Cycle_Service_i *life_Cycle_Service_i_ptr_;
58 /// reference to the naming service
59 CosNaming::NamingContext_var namingContext_var_;
61 /// debug level (0 = quiet, 1 = default, informative, 2+ = noisy);
62 int debug_level_;
65 #endif /* LIFECYCLE_SERVICE_H */