summaryrefslogtreecommitdiff
path: root/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.h
blob: 0fb4aaaaa9f1356be5066c73a1aca327d8d803bc (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_TP_Test_Export.h"
#include "ace/SString.h"
#include "tao/Environment.h"
#include "ace/CORBA_macros.h"

class CSD_TP_Test_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