3 //=============================================================================
7 * Contains classes that do the work of the client side of the Quoter Test
9 * @author Darrell Brunsch
11 //=============================================================================
13 #ifndef QUOTER_CLIENT_H
14 #define QUOTER_CLIENT_H
16 #include "ace/Get_Opt.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include "orbsvcs/CosLifeCycleC.h"
27 #include "ace/Thread_Manager.h"
30 * @class Quoter_Client
32 * @brief Quoter_Client
34 * Does all the work of making the calls on the Quoter server
39 // = Constructor and destructor.
43 /// Execute client example code.
46 /// Initialize the client communication endpoint with server.
47 int init (int argc
, ACE_TCHAR
**argv
);
53 /// Function to initialize the naming service.
54 int init_naming_service ();
56 /// Parses the arguments passed on the command line.
59 /// # of arguments on the command line.
62 /// arguments from command line.
65 /// Key of factory obj ref.
66 char *quoter_factory_key_
;
68 /// Key of the obj ref to be retrieved via the factory.
71 /// Flag to tell server to shutdown.
74 /// Pointer to a factory finder
75 Stock::Quoter_Factory_Finder_var factory_Finder_var_
;
77 /// Pointer to a factory
78 Stock::Quoter_Factory_var factory_var_
;
80 /// Pointer to a generic factory
81 CosLifeCycle::GenericFactory_var generic_Factory_var_
;
84 Stock::Quoter_var quoter_var_
;
86 /// Flag to tell if the a Generic Factory is going to be used
87 /// or the LifeCycle Service (0 means Generic Factory, 1 means LCS)
88 int useLifeCycleService_
;
90 /// debug level (0 = quiet, 1 = default, informative, 2+ = noisy);
99 * Task that creates a Quoter_Client and uses it
101 class Quoter_Task
: public ACE_Task
<ACE_SYNCH
>
104 Quoter_Task (int argc
, ACE_TCHAR
**argv
);
109 Quoter_Client quoter_client
;
114 #endif /* QUOTER_CLIENT_H */