Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Param_Test / helper.h
blob37523be1c30776e4ed0fe76044411785405fc9dd
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 ();
27 /// destructor
28 ~Generator ();
30 CORBA::Short gen_short ();
31 CORBA::Long gen_long ();
32 char* gen_string ();
33 char* gen_string (int maxlength);
34 CORBA::WChar* gen_wstring ();
35 CORBA::WChar* gen_wstring (int maxlength);
36 const Param_Test::Fixed_Struct gen_fixed_struct ();
37 const Param_Test::Step gen_step ();
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 */