summaryrefslogtreecommitdiff
path: root/TAO/Benchmark/benchmark/driver.h
blob: 690041eac7348f4976157f02ba420a1b8cc09db9 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/* -*- C++ -*- */
// $Id$


// ============================================================================
//
// = LIBRARY
//    CORBA Benchmark
// 
// = FILENAME
//    driver.h
//
// = AUTHOR
//    Aniruddha Gokhale
// 
// ============================================================================

#if !defined (_CORBA_BENCHMARK_DRIVER_H_)
#define _CORBA_BENCHMARK_DRIVER_H_

#include "ace/Log_Msg.h"

template <class PROXY>
class CORBA_Benchmark_Driver
{
  // = TITLE
  //    CORBA Benchmark Driver.
  //
  // = DESCRIPTION
  //    This class encapsulates all the driver common to the CORBA benchmark
  //    tests. It provides a template to run the benchmarking code. The real
  //    work will be done by the PROXY class.
public:

  CORBA_Benchmark_Driver (PROXY *p);
  // Constructor.

  ~CORBA_Benchmark_Driver (void);
  // Destructor

  int run (int argc, char *argv[]);
  // This is the starting point of all CORBA benchmark tests.
  // Returns 0 on success, -1 on error.

private:
  PROXY *proxy_;
  // the actual object that will do the work

  PROXY::RESULTS results_;
  // Storage of test results.

  PROXY::OPTIONS options_;
  // CORBA test command line options
};

#endif /* CORBA_BENCHMARK_DRIVER_H */