summaryrefslogtreecommitdiff
path: root/TAO/performance-tests/CSD_Strategy/TestInf/TestAppBase.h
blob: b14436b623ca46a7c634fbb453bced0fe689e161 (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
33
34
35
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[] ACE_ENV_ARG_DECL);

    const char* name() const;


  protected:

    TestAppBase(const char* name);

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


  private:

    ACE_CString name_;
};

#endif