summaryrefslogtreecommitdiff
path: root/trunk/TAO/tests/Param_Test/helper.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/tests/Param_Test/helper.h')
-rw-r--r--trunk/TAO/tests/Param_Test/helper.h51
1 files changed, 51 insertions, 0 deletions
diff --git a/trunk/TAO/tests/Param_Test/helper.h b/trunk/TAO/tests/Param_Test/helper.h
new file mode 100644
index 00000000000..b8c9c8b14d0
--- /dev/null
+++ b/trunk/TAO/tests/Param_Test/helper.h
@@ -0,0 +1,51 @@
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO/tests/Param_Test
+//
+// = FILENAME
+// helper.h
+//
+// = DESCRIPTION
+// Defines a helper class that can generate values for the parameters used
+// for the Param_Test example
+//
+// = AUTHORS
+// Aniruddha Gokhale
+//
+// ============================================================================
+
+#ifndef HELPER_H
+#define HELPER_H
+
+#include "param_testC.h"
+#include "tao/DynamicInterface/Request.h"
+#include "ace/Singleton.h"
+
+class Generator
+{
+public:
+ Generator (void);
+ // constructor
+
+ ~Generator (void);
+ // destructor
+
+ CORBA::Short gen_short (void);
+ CORBA::Long gen_long (void);
+ char* gen_string (void);
+ char* gen_string (int maxlength);
+ CORBA::WChar* gen_wstring (void);
+ CORBA::WChar* gen_wstring (int maxlength);
+ const Param_Test::Fixed_Struct gen_fixed_struct (void);
+ const Param_Test::Step gen_step (void);
+ private:
+ Param_Test::Fixed_Struct fixed_struct_;
+ Param_Test::Step step_;
+};
+
+typedef ACE_Singleton<Generator, TAO_SYNCH_RECURSIVE_MUTEX> GENERATOR;
+
+#endif /* HELPER_H */