//============================================================================= /** * @file helper.h * * Defines a helper class that can generate values for the parameters used * for the Param_Test example * * @author Aniruddha Gokhale */ //============================================================================= #ifndef HELPER_H #define HELPER_H #include "param_testC.h" #include "tao/DynamicInterface/Request.h" #include "ace/Singleton.h" class Generator { public: /// constructor Generator (); /// destructor ~Generator (); CORBA::Short gen_short (); CORBA::Long gen_long (); char* gen_string (); char* gen_string (int maxlength); CORBA::WChar* gen_wstring (); CORBA::WChar* gen_wstring (int maxlength); const Param_Test::Fixed_Struct gen_fixed_struct (); const Param_Test::Step gen_step (); private: Param_Test::Fixed_Struct fixed_struct_; Param_Test::Step step_; }; typedef ACE_Singleton GENERATOR; #endif /* HELPER_H */