Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / tests / CSD_Strategy_Tests / TP_Test_2 / ClientApp.h
blobb45a2ba6afdf0c91a0deedbc8b8be4858c8d7c54
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:
13 ClientApp();
14 virtual ~ClientApp();
16 protected:
17 virtual int run_i(int argc, ACE_TCHAR* argv[]);
19 private:
20 // These are all called, in order, by the run_i() method.
21 int init(int argc, ACE_TCHAR* argv[]);
22 void client_setup();
23 int run_engine();
24 void cleanup();
26 // Helper methods used by the methods above.
27 int parse_args(int argc, ACE_TCHAR* argv[]);
29 int set_arg(unsigned& value,
30 const ACE_TCHAR* arg,
31 char opt,
32 const char* name,
33 int min = 0);
35 void usage_statement();
36 int arg_dependency_checks();
39 CORBA::ORB_var orb_;
40 ACE_TString exe_name_;
41 ACE_TString ior_;
42 unsigned client_kind_;
43 ClientEngine_Handle engine_;
44 unsigned client_id_;
47 #endif