summaryrefslogtreecommitdiff
path: root/TAO/tests/Param_Test/helper.h
blob: d80e8ae40dff6a5540a367444c0e5a6f79a78ce4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// $Id

// ============================================================================
//
// = 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
//
// ============================================================================

#if !defined (HELPER_H)
#define HELPER_H

#include "param_testC.h"

#define TEST_BUFSIZE 128

class Generator
{
public:
  Generator (void);
  // constructor

  ~Generator (void);
  // destructor

  CORBA::Short gen_short (void);
  CORBA::Long gen_long (void);
#if 0
  CORBA::Char gen_char (void);
  CORBA::Octet gen_octet (void);
  CORBA::Float gen_float (void);
  CORBA::Double gen_double (void);
#endif
  CORBA::String gen_string (void);
  const Param_Test::Fixed_Struct gen_fixed_struct (void);
private:
  Param_Test::Fixed_Struct fixed_struct_;
};

typedef ACE_Singleton<Generator, ACE_SYNCH_RECURSIVE_MUTEX> GENERATOR;
#endif /* HELPER_H */