3 //=============================================================================
7 * Implements the Quoter_Server class which handles the initialization of
8 * the quoter implementations.
10 * @author Darrell Brunsch (brunsch@cs.wustl.edu)
12 //=============================================================================
15 #ifndef QUOTER_SERVER_H
16 #define QUOTER_SERVER_H
18 #include "ace/Get_Opt.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include "ace/Log_Msg.h"
25 #include "orbsvcs/CosNamingC.h"
26 #include "orbsvcs/Naming/Naming_Server.h"
27 #include "tao/Utils/ORB_Manager.h"
32 * @class Quoter_Server
34 * Defines a Quoter Server class that implements the functionality
35 * of a server process as an object.
37 * The interface is quite simple. A server program has to call
38 * init to initialize the quoter_server's state and then call run
45 /// Default constructor
49 ~Quoter_Server (void);
51 /// Initialize the Quoter_Server state - parsing arguments and ...
52 int init (int argc
, ACE_TCHAR
*argv
[]);
58 /// Parses the commandline arguments.
59 int parse_args (void);
61 /// Initializes the name server and registers cubit factory with the
63 int init_naming_service (void);
65 /// Number of quoter objects we export.
68 /// Naming Service context
69 CosNaming::NamingContext_var namingContext_var_
;
71 /// Instantiate the Quoter Factory
72 Quoter_Factory_i
*quoter_Factory_i_ptr_
;
75 TAO_ORB_Manager orb_manager_
;
77 /// Number of commandline arguments.
80 /// commandline arguments.
83 /// debug level (0 = quiet, 1 = default, informative, 2+ = noisy);
87 #endif /* QUOTER_SERVER_H */