Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / examples / Quoter / Factory_Finder.h
blobd8cedd7aae5e055995f1934f7bb37a06c27f8658
2 //=============================================================================
3 /**
4 * @file Factory_Finder.h
6 * Server for the Quoter Factory Finder
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 "Factory_Finder_i.h"
22 #ifndef QUOTER_FACTORY_FINDER_H
23 #define QUOTER_FACTORY_FINDER_H
25 /**
26 * @class Quoter_Factory_Finder_Server
27 = TILE
28 * Server object for the Quoter Factory Finder
30 class Quoter_Factory_Finder_Server
33 public:
34 /// Default constructor
35 Quoter_Factory_Finder_Server (void);
37 /// Destructor
38 ~Quoter_Factory_Finder_Server (void);
40 /// Initialize the Quoter_Server state - parsing arguments and ...
41 int init (int argc, ACE_TCHAR *argv[]);
43 /// Run the orb
44 int run (void);
46 /// parse the passed parameters
47 u_int parse_args (void);
49 private:
50 /// instance of the ORB Manager
51 TAO_ORB_Manager orb_manager_;
53 /// instance of the Quoter Factory Finder
54 Quoter_Factory_Finder_i *quoter_Factory_Finder_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 /// debug level (0 = quiet, 1 = default, informative, 2+ = noisy);
66 int debug_level_;
69 #endif /* QUOTER_FACTORY_FINDER_H */