summaryrefslogtreecommitdiff
path: root/TAO/tests/DynAny_Test/driver.h
blob: b4eb6142180384120d9e0a28da3e21d390eea393 (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
57
58

//=============================================================================
/**
 *  @file    driver.h
 *
 *  Header file for the driver program.
 *
 *
 *  @author Jeff Parsons <parsons@cs.wustl.edu>
 */
//=============================================================================


#if !defined (DRIVER_H)
#define DRIVER_H

#include "tao/ORB.h"

class Driver
{
public:
  // = Constructor and destructor.
  Driver (void);
  ~Driver (void);

enum TEST_TYPE
  {
    NO_TEST,
    TEST_DYNANY,
    TEST_DYNARRAY,
    TEST_DYNENUM,
    TEST_DYNSEQUENCE,
    TEST_DYNSTRUCT,
    TEST_DYNUNION
  };

  /// Initialize the driver object.
  int init (int argc, ACE_TCHAR *argv[]);

  /// Parse command line arguments.
  int parse_args (int argc, ACE_TCHAR *argv[]);

  /// Execute test code.
  /**
   * @return The number of errors detected
   */
  int run (void);

private:
  /// underlying ORB (we do not own it)
  CORBA::ORB_var orb_;

  TEST_TYPE test_type_;

  int debug_;
};

#endif /* DRIVER_H */