Cleanup ACE_HAS_PTHREAD_SIGMASK_PROTOTYPE, all platforms support it so far as I can...
[ACE_TAO.git] / TAO / performance-tests / CSD_Strategy / TestApps / ClientApp.h
blob2fbb239cde0eb139a57591713e99721191acea46
1 //=============================================================================
2 /**
3 * @file ClientApp.h
5 * @author Tim Bradley <bradley_t@ociweb.com>
6 */
7 //=============================================================================
8 #ifndef CLIENTAPP_H
9 #define CLIENTAPP_H
11 #include "TestInf/TestAppBase.h"
12 #include "TestInf/ClientEngine.h"
13 #include "tao/ORB.h"
14 #include "ace/SString.h"
16 class ClientApp : public TestAppBase
18 public:
19 ClientApp();
20 virtual ~ClientApp();
22 protected:
23 virtual int run_i(int argc, ACE_TCHAR* argv[]);
25 private:
26 // These are all called, in order, by the run_i() method.
27 int init(int argc, ACE_TCHAR* argv[]);
28 void client_setup();
29 int run_engine();
30 void cleanup();
32 // Helper methods used by the methods above.
33 int parse_args(int argc, ACE_TCHAR* argv[]);
35 int set_arg(unsigned& value,
36 const ACE_TCHAR* arg,
37 char opt,
38 const char* name,
39 int min = 0);
41 void usage_statement();
42 int arg_dependency_checks();
45 CORBA::ORB_var orb_;
46 ACE_TString exe_name_;
47 ACE_TString ior_;
48 ClientEngine_Handle engine_;
49 unsigned client_id_;
50 unsigned num_loops_;
53 #endif