Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / examples / Quoter / Factory_Finder.h
blob5dcb8c46ad07a9ab52f94fefc18c14411d83a250
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
32 public:
33 /// Default constructor
34 Quoter_Factory_Finder_Server ();
36 /// Destructor
37 ~Quoter_Factory_Finder_Server ();
39 /// Initialize the Quoter_Server state - parsing arguments and ...
40 int init (int argc, ACE_TCHAR *argv[]);
42 /// Run the orb
43 int run ();
45 /// parse the passed parameters
46 u_int parse_args ();
48 private:
49 /// instance of the ORB Manager
50 TAO_ORB_Manager orb_manager_;
52 /// instance of the Quoter Factory Finder
53 Quoter_Factory_Finder_i *quoter_Factory_Finder_i_ptr_;
55 /// reference to the Quoter naming context
56 CosNaming::NamingContext_var quoterNamingContext_var_;
58 /// Number of commandline arguments.
59 int argc_;
61 /// commandline arguments.
62 ACE_TCHAR **argv_;
64 /// debug level (0 = quiet, 1 = default, informative, 2+ = noisy);
65 int debug_level_;
68 #endif /* QUOTER_FACTORY_FINDER_H */