summaryrefslogtreecommitdiff
path: root/TAO/tests/CSD_Strategy_Tests/TP_Common/TestAppBase.h
blob: 40b06e5ca2d433c8f9354490eaca83cd882df0cc (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
#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