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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
//
// $Id$
//
#ifndef HELLO_H
#define HELLO_H
#include /**/ "ace/pre.h"
#include "TestS.h"
class Test_Simple_Test_i
: public virtual POA_Test::Simple_Test
{
public:
//Constructor
Test_Simple_Test_i (void);
//Destructor
virtual ~Test_Simple_Test_i (void);
virtual
void test_method (
::CORBA::ULong & error_count
);
};
/// Implement the Test::Hello interface
class Hello
: public virtual POA_Test::Hello
{
public:
/// Constructor
Hello (CORBA::ORB_ptr orb,
ACE_thread_t thr_id);
// = The skeleton methods
virtual
void test_basic_arg (
::CORBA::Long basic,
::CORBA::Long_out x
);
virtual
void test_unbounded_string_arg (
const char * message
);
virtual
void test_unbounded_string_arg_out (
const char * message,
::CORBA::String_out out_message
);
virtual
void test_bounded_string_arg (
const char * message
);
virtual
void test_fixed_array_arg (
const ::Test::Fixed_Array message
);
virtual
void test_var_array_arg (
const ::Test::Var_Array messages
);
virtual
void test_bounded_var_size_arg (
const ::Test::Bounded_Var_Size_Arg & message
);
virtual
void test_unbounded_var_size_arg (
const ::Test::Unbounded_Var_Size_Arg & message
);
virtual
void test_fixed_size_arg (
const ::Test::TimeOfDay & t
);
virtual
void test_special_basic_arg (
::CORBA::Char value
);
virtual
void test_objref_arg (
::Test::Simple_Test_ptr test
);
virtual
void test_object_arg (
::CORBA::Object_ptr o
);
virtual
void test_args_1 (
::CORBA::Object_ptr arg1,
::CORBA::Char arg2,
::Test::Simple_Test_ptr arg3
);
virtual
void test_args_2 (
const char * arg1,
const ::Test::Fixed_Array arg2,
const ::Test::TimeOfDay & arg3
);
virtual
void test_args_3 (
const char * arg1,
const ::Test::Bounded_Var_Size_Arg & arg2,
const ::Test::Unbounded_Var_Size_Arg & arg3,
const ::Test::Var_Array arg4
);
virtual char * get_string (void);
virtual
char * test_unbounded_string (
const char * s1,
char *& s2,
CORBA::String_out s3
);
virtual void shutdown (void);
CORBA::ULong error_count () const;
private:
/// Use an ORB reference to conver strings to objects and shutdown
/// the application.
CORBA::ORB_var orb_;
ACE_thread_t thr_id_;
CORBA::ULong error_count_;
};
#include /**/ "ace/post.h"
#endif /* HELLO_H */
|