📄 helper.h
字号:
// helper.h,v 1.15 2001/12/21 19:32:18 coryan Exp
// ============================================================================
//
// = LIBRARY
// TAO/tests/Param_Test
//
// = FILENAME
// helper.h
//
// = DESCRIPTION
// Defines a helper class that can generate values for the parameters used
// for the Param_Test example
//
// = AUTHORS
// Aniruddha Gokhale
//
// ============================================================================
#ifndef HELPER_H
#define HELPER_H
#include "param_testC.h"
#include "tao/DynamicInterface/Request.h"
#include "ace/Singleton.h"
class Generator
{
public:
Generator (void);
// constructor
~Generator (void);
// destructor
CORBA::Short gen_short (void);
CORBA::Long gen_long (void);
char* gen_string (void);
char* gen_string (int maxlength);
CORBA::WChar* gen_wstring (void);
CORBA::WChar* gen_wstring (int maxlength);
const Param_Test::Fixed_Struct gen_fixed_struct (void);
const Param_Test::Step gen_step (void);
private:
Param_Test::Fixed_Struct fixed_struct_;
Param_Test::Step step_;
};
typedef ACE_Singleton<Generator, TAO_SYNCH_RECURSIVE_MUTEX> GENERATOR;
#endif /* HELPER_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -