More tests update
[ACE_TAO.git] / TAO / examples / Quoter / Generic_Factory.h
blob9d25e76053e22c4e3c22c6bdb75b249bcf72a0e3
2 //=============================================================================
3 /**
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)
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 "Generic_Factory_i.h"
22 #ifndef GENERIC_FACTORY_H
23 #define GENERIC_FACTORY_H
25 /**
26 * @class Quoter_Generic_Factory_Server
27 = TILE
28 * Server object for the Quoter Generic Factory
30 class Quoter_Generic_Factory_Server
33 public:
34 /// Default constructor
35 Quoter_Generic_Factory_Server (void);
37 /// Destructor
38 ~Quoter_Generic_Factory_Server (void);
40 /// Initialize the Quoter_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 (void);
50 private:
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.
61 int argc_;
63 /// commandline arguments.
64 ACE_TCHAR **argv_;
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);
70 int debug_level_;
73 #endif /* GENERIC_FACTORY_H */