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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
|
/* This file is automatically generated by Orbeline. */
/* Do not modify this file. */
/* Orbeline (c) is copyrighted by PostModern Computing, Inc. */
#include <ttcp_s.hh>
static CORBA::_PMCSkelFunc _ttcp_sequence_func_array[] = {
&ttcp_sequence_impl::_send,
&ttcp_sequence_impl::_send_hack,
&ttcp_sequence_impl::_start_timer,
&ttcp_sequence_impl::_stop_timer,
0
};
ttcp_sequence_impl::ttcp_sequence_impl(const char *object_name) :
ttcp_sequence(object_name)
{
_object_name(object_name);
CORBA::Environment _env;
_register_implementation("ttcp_sequence", 4, _ttcp_sequence_func_array, (void *) this, _env);
}
ttcp_sequence_impl::~ttcp_sequence_impl()
{
CORBA::Environment _env;
_unregister_implementation("ttcp_sequence", (void *) this, _env);
}
void ttcp_sequence_impl::_send(void *obj, CORBA::MarshalStream &strm,
CORBA::Environment& _env, CORBA::Principal *principal) {
ttcp_sequence_impl *_impl = (ttcp_sequence_impl *) obj;
_env.clear_exception();
ttcp_sequence::my_sequence ttcp_rec;
strm.getSequence(ttcp_rec, CORBA::MarshalStream::ARG_IN);
strm.flush(_env);
if (_env.check_exception())
return;
_impl->_principal(principal);
_impl->send(ttcp_rec);
strm.putEnvironment(_env);
_impl->_principal((CORBA::Principal *) NULL);
}
void ttcp_sequence_impl::_send_hack(void *obj, CORBA::MarshalStream &strm,
CORBA::Environment& _env, CORBA::Principal *principal) {
ttcp_sequence_impl *_impl = (ttcp_sequence_impl *) obj;
_env.clear_exception();
CORBA::String ttcp_string;
strm.getString(ttcp_string, CORBA::MarshalStream::ARG_IN);
strm.flush(_env);
if (_env.check_exception())
return;
_impl->_principal(principal);
_impl->send_hack(ttcp_string);
strm.putEnvironment(_env);
_impl->_principal((CORBA::Principal *) NULL);
}
void ttcp_sequence_impl::_start_timer(void *obj, CORBA::MarshalStream &strm,
CORBA::Environment& _env, CORBA::Principal *principal) {
ttcp_sequence_impl *_impl = (ttcp_sequence_impl *) obj;
_env.clear_exception();
strm.flush(_env);
if (_env.check_exception())
return;
_impl->_principal(principal);
_impl->start_timer();
strm.putEnvironment(_env);
_impl->_principal((CORBA::Principal *) NULL);
}
void ttcp_sequence_impl::_stop_timer(void *obj, CORBA::MarshalStream &strm,
CORBA::Environment& _env, CORBA::Principal *principal) {
ttcp_sequence_impl *_impl = (ttcp_sequence_impl *) obj;
_env.clear_exception();
strm.flush(_env);
if (_env.check_exception())
return;
_impl->_principal(principal);
_impl->stop_timer();
strm.putEnvironment(_env);
_impl->_principal((CORBA::Principal *) NULL);
}
static CORBA::_PMCSkelFunc _ttcp_string_func_array[] = {
&ttcp_string_impl::_send,
&ttcp_string_impl::_send_hack,
&ttcp_string_impl::_start_timer,
&ttcp_string_impl::_stop_timer,
0
};
ttcp_string_impl::ttcp_string_impl(const char *object_name) :
ttcp_string(object_name)
{
_object_name(object_name);
CORBA::Environment _env;
_register_implementation("ttcp_string", 4, _ttcp_string_func_array, (void *) this, _env);
}
ttcp_string_impl::~ttcp_string_impl()
{
CORBA::Environment _env;
_unregister_implementation("ttcp_string", (void *) this, _env);
}
void ttcp_string_impl::_send(void *obj, CORBA::MarshalStream &strm,
CORBA::Environment& _env, CORBA::Principal *principal) {
ttcp_string_impl *_impl = (ttcp_string_impl *) obj;
_env.clear_exception();
CORBA::String ttcp_string;
strm.getString(ttcp_string, CORBA::MarshalStream::ARG_IN);
strm.flush(_env);
if (_env.check_exception())
return;
_impl->_principal(principal);
_impl->send(ttcp_string);
strm.putEnvironment(_env);
_impl->_principal((CORBA::Principal *) NULL);
}
void ttcp_string_impl::_send_hack(void *obj, CORBA::MarshalStream &strm,
CORBA::Environment& _env, CORBA::Principal *principal) {
ttcp_string_impl *_impl = (ttcp_string_impl *) obj;
_env.clear_exception();
CORBA::String ttcp_string;
strm.getString(ttcp_string, CORBA::MarshalStream::ARG_IN);
strm.flush(_env);
if (_env.check_exception())
return;
_impl->_principal(principal);
_impl->send_hack(ttcp_string);
strm.putEnvironment(_env);
_impl->_principal((CORBA::Principal *) NULL);
}
void ttcp_string_impl::_start_timer(void *obj, CORBA::MarshalStream &strm,
CORBA::Environment& _env, CORBA::Principal *principal) {
ttcp_string_impl *_impl = (ttcp_string_impl *) obj;
_env.clear_exception();
strm.flush(_env);
if (_env.check_exception())
return;
_impl->_principal(principal);
_impl->start_timer();
strm.putEnvironment(_env);
_impl->_principal((CORBA::Principal *) NULL);
}
void ttcp_string_impl::_stop_timer(void *obj, CORBA::MarshalStream &strm,
CORBA::Environment& _env, CORBA::Principal *principal) {
ttcp_string_impl *_impl = (ttcp_string_impl *) obj;
_env.clear_exception();
strm.flush(_env);
if (_env.check_exception())
return;
_impl->_principal(principal);
_impl->stop_timer();
strm.putEnvironment(_env);
_impl->_principal((CORBA::Principal *) NULL);
}
|