Use a variable on the stack to not have a temporary in the call
[ACE_TAO.git] / TAO / performance-tests / CSD_Strategy / TestInf / TestAppBase.h
blobf92e3b8e849ba822d9f73677d48e3cb81c42080e
1 #ifndef TESTAPPBASE_H
2 #define TESTAPPBASE_H
4 #include "CSD_PT_TestInf_Export.h"
5 #include "ace/SString.h"
6 #include "tao/Environment.h"
7 #include "ace/CORBA_macros.h"
10 class CSD_PT_TestInf_Export TestAppBase
12 public:
13 virtual ~TestAppBase();
15 // Returns 0 for success, and -1 for failure.
16 int run(int argc, ACE_TCHAR* argv[]);
18 const char* name() const;
21 protected:
22 TestAppBase(const char* name);
24 // Returns -1 for failure, 0 for success
25 virtual int run_i(int argc, ACE_TCHAR* argv[]) = 0;
28 private:
29 ACE_CString name_;
32 #endif