Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / DynAny_Test / driver.h
blobf337213da6a0c9b1848c0c8f9dcdd23b462ab8bc
2 //=============================================================================
3 /**
4 * @file driver.h
6 * Header file for the driver program.
8 * @author Jeff Parsons <parsons@cs.wustl.edu>
9 */
10 //=============================================================================
13 #if !defined (DRIVER_H)
14 #define DRIVER_H
16 #include "tao/ORB.h"
18 class Driver
20 public:
21 // = Constructor and destructor.
22 Driver ();
23 ~Driver ();
25 enum TEST_TYPE
27 NO_TEST,
28 TEST_DYNANY,
29 TEST_DYNARRAY,
30 TEST_DYNENUM,
31 TEST_DYNSEQUENCE,
32 TEST_DYNSTRUCT,
33 TEST_DYNUNION
36 /// Initialize the driver object.
37 int init (int argc, ACE_TCHAR *argv[]);
39 /// Parse command line arguments.
40 int parse_args (int argc, ACE_TCHAR *argv[]);
42 /// Execute test code.
43 /**
44 * @return The number of errors detected
46 int run ();
48 private:
49 /// underlying ORB (we do not own it)
50 CORBA::ORB_var orb_;
52 TEST_TYPE test_type_;
54 int debug_;
57 #endif /* DRIVER_H */