Merge pull request #2316 from jwillemsen/jwi-taskcommenttypo
[ACE_TAO.git] / TAO / tests / CSD_Strategy_Tests / TP_Test_4 / ClientApp.h
blob1533218656c76e356fff2f5189b0e2d0497f85a7
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[]);
20 private:
21 // These are all called, in order, by the run_i() method.
22 int init(int argc, ACE_TCHAR* argv[]);
23 void client_setup();
24 int run_engine();
25 void cleanup();
27 // Helper methods used by the methods above.
28 int parse_args(int argc, ACE_TCHAR* argv[]);
30 int set_arg(unsigned& value,
31 const ACE_TCHAR* arg,
32 char opt,
33 const char* name,
34 int min = 0);
36 void usage_statement();
37 int arg_dependency_checks();
40 CORBA::ORB_var orb_;
41 ACE_TString exe_name_;
42 ACE_TString ior_;
43 unsigned client_kind_;
44 ClientEngine_Handle engine_;
45 unsigned client_id_;
48 #endif