diff options
Diffstat (limited to 'TAO/performance-tests/CSD_Strategy/TestInf/TestAppBase.h')
-rw-r--r-- | TAO/performance-tests/CSD_Strategy/TestInf/TestAppBase.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/TAO/performance-tests/CSD_Strategy/TestInf/TestAppBase.h b/TAO/performance-tests/CSD_Strategy/TestInf/TestAppBase.h new file mode 100644 index 00000000000..b19cfed2f0d --- /dev/null +++ b/TAO/performance-tests/CSD_Strategy/TestInf/TestAppBase.h @@ -0,0 +1,36 @@ +// $Id$ +#ifndef TESTAPPBASE_H +#define TESTAPPBASE_H + +#include "CSD_PT_TestInf_Export.h" +#include "ace/SString.h" +#include "tao/Environment.h" +#include "ace/CORBA_macros.h" + + +class CSD_PT_TestInf_Export TestAppBase +{ + public: + + virtual ~TestAppBase(); + + // Returns 0 for success, and -1 for failure. + int run(int argc, char* argv[]); + + const char* name() const; + + + protected: + + TestAppBase(const char* name); + + // Returns -1 for failure, 0 for success + virtual int run_i(int argc, char* argv[]) = 0; + + + private: + + ACE_CString name_; +}; + +#endif |