2 //=============================================================================
4 * @file Generic_Factory.h
6 * A generic factory, customized for the use with the Quoter example.
8 * @author Michael Kircher (mk1@cs.wustl.edu)
10 //=============================================================================
13 #include "ace/Get_Opt.h"
15 #if !defined (ACE_LACKS_PRAGMA_ONCE)
17 #endif /* ACE_LACKS_PRAGMA_ONCE */
19 #include "tao/Utils/ORB_Manager.h"
20 #include "Generic_Factory_i.h"
22 #ifndef GENERIC_FACTORY_H
23 #define GENERIC_FACTORY_H
26 * @class Quoter_Generic_Factory_Server
28 * Server object for the Quoter Generic Factory
30 class Quoter_Generic_Factory_Server
34 /// Default constructor
35 Quoter_Generic_Factory_Server (void);
38 ~Quoter_Generic_Factory_Server (void);
40 /// Initialize the Quoter_Server state - parsing arguments and ...
47 /// Parse the passed parameters.
48 u_int
parse_args (void);
51 /// instance of the ORB Manager
52 TAO_ORB_Manager orb_manager_
;
54 /// Instance of the Quoter Generic Factory.
55 Quoter_Generic_Factory_i
*quoter_Generic_Factory_i_ptr_
;
57 /// Reference to the Quoter naming context.
58 CosNaming::NamingContext_var quoterNamingContext_var_
;
60 /// Number of commandline arguments.
63 /// commandline arguments.
66 /// flag for whether or not to use the lifecycle service
67 unsigned char use_LifeCycle_Service_
;
69 /// debug level (0 = quiet, 1 = default, informative, 2+ = noisy);
73 #endif /* GENERIC_FACTORY_H */