Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Alt_Mapping / helper.h
blobab5896750571fe0ea8195437cd5823db1cab204c
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 (void);
25 ~Generator (void);
27 CORBA::Short gen_short (void);
28 CORBA::Long gen_long (void);
29 char* gen_string (void);
30 char* gen_string (int maxlength);
31 CORBA::WChar* gen_wstring (void);
32 CORBA::WChar* gen_wstring (int maxlength);
33 const Alt_Mapping::Fixed_Struct gen_fixed_struct (void);
35 private:
36 Alt_Mapping::Fixed_Struct fixed_struct_;
39 typedef ACE_Singleton<Generator, TAO_SYNCH_RECURSIVE_MUTEX> GENERATOR;
41 #endif /* HELPER_H */