diff options
Diffstat (limited to 'TAO/tests/CSD_Strategy_Tests/TP_Test_4/ClientApp.h')
-rw-r--r-- | TAO/tests/CSD_Strategy_Tests/TP_Test_4/ClientApp.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/TAO/tests/CSD_Strategy_Tests/TP_Test_4/ClientApp.h b/TAO/tests/CSD_Strategy_Tests/TP_Test_4/ClientApp.h new file mode 100644 index 00000000000..e2f7bf6fc06 --- /dev/null +++ b/TAO/tests/CSD_Strategy_Tests/TP_Test_4/ClientApp.h @@ -0,0 +1,52 @@ +// $Id$ +#ifndef CLIENTAPP_H +#define CLIENTAPP_H + +#include "TestAppBase.h" +#include "ClientEngine.h" +#include "tao/ORB.h" +#include "ace/SString.h" + + +class ClientApp : public TestAppBase +{ + public: + + ClientApp(); + virtual ~ClientApp(); + + protected: + + virtual int run_i(int argc, char* argv[] ACE_ENV_ARG_DECL); + + + private: + + // These are all called, in order, by the run_i() method. + int init(int argc, char* argv[] ACE_ENV_ARG_DECL); + void client_setup(ACE_ENV_SINGLE_ARG_DECL); + int run_engine(ACE_ENV_SINGLE_ARG_DECL); + void cleanup(); + + // Helper methods used by the methods above. + int parse_args(int argc, char* argv[]); + + int set_arg(unsigned& value, + const char* arg, + char opt, + const char* name, + int min = 0); + + void usage_statement(); + int arg_dependency_checks(); + + + CORBA::ORB_var orb_; + ACE_CString exe_name_; + ACE_CString ior_; + unsigned client_kind_; + ClientEngine_Handle engine_; + unsigned client_id_; +}; + +#endif |