More tests update
[ACE_TAO.git] / TAO / tests / CSD_Strategy_Tests / TP_Test_4 / ClientApp.h
blobf89df26d866d0f30352854a26ba7e3ae61180edc
1 #ifndef CLIENTAPP_H
2 #define CLIENTAPP_H
4 #include "TestAppBase.h"
5 #include "ClientEngine.h"
6 #include "tao/ORB.h"
7 #include "ace/SString.h"
10 class ClientApp : public TestAppBase
12 public:
14 ClientApp();
15 virtual ~ClientApp();
17 protected:
19 virtual int run_i(int argc, ACE_TCHAR* argv[]);
22 private:
24 // These are all called, in order, by the run_i() method.
25 int init(int argc, ACE_TCHAR* argv[]);
26 void client_setup(void);
27 int run_engine(void);
28 void cleanup();
30 // Helper methods used by the methods above.
31 int parse_args(int argc, ACE_TCHAR* argv[]);
33 int set_arg(unsigned& value,
34 const ACE_TCHAR* arg,
35 char opt,
36 const char* name,
37 int min = 0);
39 void usage_statement();
40 int arg_dependency_checks();
43 CORBA::ORB_var orb_;
44 ACE_TString exe_name_;
45 ACE_TString ior_;
46 unsigned client_kind_;
47 ClientEngine_Handle engine_;
48 unsigned client_id_;
51 #endif