summaryrefslogtreecommitdiff
path: root/trunk/TAO/tests/DynAny_Test/driver.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/tests/DynAny_Test/driver.h')
-rw-r--r--trunk/TAO/tests/DynAny_Test/driver.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/trunk/TAO/tests/DynAny_Test/driver.h b/trunk/TAO/tests/DynAny_Test/driver.h
new file mode 100644
index 00000000000..d3f308129e1
--- /dev/null
+++ b/trunk/TAO/tests/DynAny_Test/driver.h
@@ -0,0 +1,57 @@
+
+//=============================================================================
+/**
+ * @file driver.h
+ *
+ * $Id$
+ *
+ * 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, char* argv[]);
+
+ /// Parse command line arguments.
+ int parse_args (int argc, char* argv[]);
+
+ /// Execute test code.
+ int run (void);
+
+private:
+ /// underlying ORB (we do not own it)
+ CORBA::ORB_var orb_;
+
+ TEST_TYPE test_type_;
+
+ int debug_;
+};
+
+#endif /* DRIVER_H */