Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / Alt_Mapping / helper.h
blob55824f5078a3eb482d645cebcaf25ada905bf8bb
2 //=============================================================================
3 /**
4 * @file helper.h
6 * Defines a helper class that can generate values for the parameters used
7 * for the Param_Test example
9 * @author Aniruddha Gokhale
11 //=============================================================================
14 #ifndef HELPER_H
15 #define HELPER_H
17 #include "alt_mappingC.h"
18 #include "ace/Singleton.h"
20 class Generator
22 public:
23 Generator ();
25 ~Generator ();
27 CORBA::Short gen_short ();
28 CORBA::Long gen_long ();
29 char* gen_string ();
30 char* gen_string (int maxlength);
31 CORBA::WChar* gen_wstring ();
32 CORBA::WChar* gen_wstring (int maxlength);
33 const Alt_Mapping::Fixed_Struct gen_fixed_struct ();
35 private:
36 Alt_Mapping::Fixed_Struct fixed_struct_;
39 typedef ACE_Singleton<Generator, TAO_SYNCH_RECURSIVE_MUTEX> GENERATOR;
41 #endif /* HELPER_H */