summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/CSD_Strategy/TestInf/TestAppBase.h
blob: f92e3b8e849ba822d9f73677d48e3cb81c42080e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#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, ACE_TCHAR* argv[]);

    const char* name() const;


  protected:
    TestAppBase(const char* name);

    // Returns -1 for failure, 0 for success
    virtual int run_i(int argc, ACE_TCHAR* argv[]) = 0;


  private:
    ACE_CString name_;
};

#endif