Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Param_Test / helper.h
blob57648202ecf5a0a0e312182247aa1e482fea57cb
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 "param_testC.h"
18 #include "tao/DynamicInterface/Request.h"
19 #include "ace/Singleton.h"
21 class Generator
23 public:
24 /// constructor
25 Generator (void);
27 /// destructor
28 ~Generator (void);
30 CORBA::Short gen_short (void);
31 CORBA::Long gen_long (void);
32 char* gen_string (void);
33 char* gen_string (int maxlength);
34 CORBA::WChar* gen_wstring (void);
35 CORBA::WChar* gen_wstring (int maxlength);
36 const Param_Test::Fixed_Struct gen_fixed_struct (void);
37 const Param_Test::Step gen_step (void);
38 private:
39 Param_Test::Fixed_Struct fixed_struct_;
40 Param_Test::Step step_;
43 typedef ACE_Singleton<Generator, TAO_SYNCH_RECURSIVE_MUTEX> GENERATOR;
45 #endif /* HELPER_H */