Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / TAO / examples / Quoter / Generic_Factory.h
blob71c994a0c1a881b26665d06dfea3a322b1c78238
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
32 public:
33 /// Default constructor
34 Quoter_Generic_Factory_Server ();
36 /// Destructor
37 ~Quoter_Generic_Factory_Server ();
39 /// Initialize the Quoter_Server state - parsing arguments and ...
40 int init (int argc,
41 ACE_TCHAR *argv[]);
43 /// Run the orb.
44 int run ();
46 /// Parse the passed parameters.
47 u_int parse_args ();
49 private:
50 /// instance of the ORB Manager
51 TAO_ORB_Manager orb_manager_;
53 /// Instance of the Quoter Generic Factory.
54 Quoter_Generic_Factory_i *quoter_Generic_Factory_i_ptr_;
56 /// Reference to the Quoter naming context.
57 CosNaming::NamingContext_var quoterNamingContext_var_;
59 /// Number of commandline arguments.
60 int argc_;
62 /// commandline arguments.
63 ACE_TCHAR **argv_;
65 /// flag for whether or not to use the lifecycle service
66 unsigned char use_LifeCycle_Service_;
68 /// debug level (0 = quiet, 1 = default, informative, 2+ = noisy);
69 int debug_level_;
72 #endif /* GENERIC_FACTORY_H */