]> pilppa.org Git - libplpbus.git/blob - src/idl/RequestResponseBusDynSK.cc
Memory leak fixes.
[libplpbus.git] / src / idl / RequestResponseBusDynSK.cc
1 // This file is generated by omniidl (C++ backend) - omniORB_4_1. Do not edit.
2
3 #include "RequestResponseBus.hh"
4
5 OMNI_USING_NAMESPACE(omni)
6
7 static const char* _0RL_dyn_library_version = omniORB_4_1_dyn;
8
9 static ::CORBA::TypeCode::_Tracker _0RL_tcTrack(__FILE__);
10
11 static CORBA::PR_structMember _0RL_structmember_plpbus__orb_mDataItem[] = {
12   {"name", CORBA::TypeCode::PR_string_tc(0, &_0RL_tcTrack)},
13   {"value", CORBA::TypeCode::PR_any_tc()},
14   {"str_value", CORBA::TypeCode::PR_string_tc(0, &_0RL_tcTrack)}
15 };
16
17 #ifdef _0RL_tc_plpbus__orb_mDataItem
18 #  undef _0RL_tc_plpbus__orb_mDataItem
19 #endif
20 static CORBA::TypeCode_ptr _0RL_tc_plpbus__orb_mDataItem = CORBA::TypeCode::PR_struct_tc("IDL:plpbus_orb/DataItem:1.0", "DataItem", _0RL_structmember_plpbus__orb_mDataItem, 3, &_0RL_tcTrack);
21
22 #if defined(HAS_Cplusplus_Namespace) && defined(_MSC_VER)
23 // MSVC++ does not give the constant external linkage otherwise.
24 namespace plpbus_orb { 
25   const ::CORBA::TypeCode_ptr _tc_DataItem = _0RL_tc_plpbus__orb_mDataItem;
26
27 #else
28 const ::CORBA::TypeCode_ptr plpbus_orb::_tc_DataItem = _0RL_tc_plpbus__orb_mDataItem;
29 #endif
30
31
32
33
34
35
36 static CORBA::TypeCode_ptr _0RL_tc_plpbus__orb_mDataItemSequence = CORBA::TypeCode::PR_alias_tc("IDL:plpbus_orb/DataItemSequence:1.0", "DataItemSequence", CORBA::TypeCode::PR_sequence_tc(0, _0RL_tc_plpbus__orb_mDataItem, &_0RL_tcTrack), &_0RL_tcTrack);
37
38
39 #if defined(HAS_Cplusplus_Namespace) && defined(_MSC_VER)
40 // MSVC++ does not give the constant external linkage otherwise.
41 namespace plpbus_orb { 
42   const ::CORBA::TypeCode_ptr _tc_DataItemSequence = _0RL_tc_plpbus__orb_mDataItemSequence;
43
44 #else
45 const ::CORBA::TypeCode_ptr plpbus_orb::_tc_DataItemSequence = _0RL_tc_plpbus__orb_mDataItemSequence;
46 #endif
47
48 #if defined(HAS_Cplusplus_Namespace) && defined(_MSC_VER)
49 // MSVC++ does not give the constant external linkage otherwise.
50 namespace plpbus_orb { 
51   const ::CORBA::TypeCode_ptr _tc_OrbClient = CORBA::TypeCode::PR_interface_tc("IDL:plpbus_orb/OrbClient:1.0", "OrbClient", &_0RL_tcTrack);
52
53 #else
54 const ::CORBA::TypeCode_ptr plpbus_orb::_tc_OrbClient = CORBA::TypeCode::PR_interface_tc("IDL:plpbus_orb/OrbClient:1.0", "OrbClient", &_0RL_tcTrack);
55 #endif
56
57 #if defined(HAS_Cplusplus_Namespace) && defined(_MSC_VER)
58 // MSVC++ does not give the constant external linkage otherwise.
59 namespace plpbus_orb { 
60   const ::CORBA::TypeCode_ptr _tc_OrbServer = CORBA::TypeCode::PR_interface_tc("IDL:plpbus_orb/OrbServer:1.0", "OrbServer", &_0RL_tcTrack);
61
62 #else
63 const ::CORBA::TypeCode_ptr plpbus_orb::_tc_OrbServer = CORBA::TypeCode::PR_interface_tc("IDL:plpbus_orb/OrbServer:1.0", "OrbServer", &_0RL_tcTrack);
64 #endif
65
66 static void _0RL_plpbus__orb_mDataItem_marshal_fn(cdrStream& _s, void* _v)
67 {
68   plpbus_orb::DataItem* _p = (plpbus_orb::DataItem*)_v;
69   *_p >>= _s;
70 }
71 static void _0RL_plpbus__orb_mDataItem_unmarshal_fn(cdrStream& _s, void*& _v)
72 {
73   plpbus_orb::DataItem* _p = new plpbus_orb::DataItem;
74   *_p <<= _s;
75   _v = _p;
76 }
77 static void _0RL_plpbus__orb_mDataItem_destructor_fn(void* _v)
78 {
79   plpbus_orb::DataItem* _p = (plpbus_orb::DataItem*)_v;
80   delete _p;
81 }
82
83 void operator<<=(::CORBA::Any& _a, const plpbus_orb::DataItem& _s)
84 {
85   plpbus_orb::DataItem* _p = new plpbus_orb::DataItem(_s);
86   _a.PR_insert(_0RL_tc_plpbus__orb_mDataItem,
87                _0RL_plpbus__orb_mDataItem_marshal_fn,
88                _0RL_plpbus__orb_mDataItem_destructor_fn,
89                _p);
90 }
91 void operator<<=(::CORBA::Any& _a, plpbus_orb::DataItem* _sp)
92 {
93   _a.PR_insert(_0RL_tc_plpbus__orb_mDataItem,
94                _0RL_plpbus__orb_mDataItem_marshal_fn,
95                _0RL_plpbus__orb_mDataItem_destructor_fn,
96                _sp);
97 }
98
99 ::CORBA::Boolean operator>>=(const ::CORBA::Any& _a, plpbus_orb::DataItem*& _sp)
100 {
101   return _a >>= (const plpbus_orb::DataItem*&) _sp;
102 }
103 ::CORBA::Boolean operator>>=(const ::CORBA::Any& _a, const plpbus_orb::DataItem*& _sp)
104 {
105   void* _v;
106   if (_a.PR_extract(_0RL_tc_plpbus__orb_mDataItem,
107                     _0RL_plpbus__orb_mDataItem_unmarshal_fn,
108                     _0RL_plpbus__orb_mDataItem_marshal_fn,
109                     _0RL_plpbus__orb_mDataItem_destructor_fn,
110                     _v)) {
111     _sp = (const plpbus_orb::DataItem*)_v;
112     return 1;
113   }
114   return 0;
115 }
116
117 static void _0RL_plpbus__orb_mDataItemSequence_marshal_fn(cdrStream& _s, void* _v)
118 {
119   plpbus_orb::DataItemSequence* _p = (plpbus_orb::DataItemSequence*)_v;
120   *_p >>= _s;
121 }
122 static void _0RL_plpbus__orb_mDataItemSequence_unmarshal_fn(cdrStream& _s, void*& _v)
123 {
124   plpbus_orb::DataItemSequence* _p = new plpbus_orb::DataItemSequence;
125   *_p <<= _s;
126   _v = _p;
127 }
128 static void _0RL_plpbus__orb_mDataItemSequence_destructor_fn(void* _v)
129 {
130   plpbus_orb::DataItemSequence* _p = (plpbus_orb::DataItemSequence*)_v;
131   delete _p;
132 }
133
134 void operator<<=(::CORBA::Any& _a, const plpbus_orb::DataItemSequence& _s)
135 {
136   plpbus_orb::DataItemSequence* _p = new plpbus_orb::DataItemSequence(_s);
137   _a.PR_insert(_0RL_tc_plpbus__orb_mDataItemSequence,
138                _0RL_plpbus__orb_mDataItemSequence_marshal_fn,
139                _0RL_plpbus__orb_mDataItemSequence_destructor_fn,
140                _p);
141 }
142 void operator<<=(::CORBA::Any& _a, plpbus_orb::DataItemSequence* _sp)
143 {
144   _a.PR_insert(_0RL_tc_plpbus__orb_mDataItemSequence,
145                _0RL_plpbus__orb_mDataItemSequence_marshal_fn,
146                _0RL_plpbus__orb_mDataItemSequence_destructor_fn,
147                _sp);
148 }
149
150 ::CORBA::Boolean operator>>=(const ::CORBA::Any& _a, plpbus_orb::DataItemSequence*& _sp)
151 {
152   return _a >>= (const plpbus_orb::DataItemSequence*&) _sp;
153 }
154 ::CORBA::Boolean operator>>=(const ::CORBA::Any& _a, const plpbus_orb::DataItemSequence*& _sp)
155 {
156   void* _v;
157   if (_a.PR_extract(_0RL_tc_plpbus__orb_mDataItemSequence,
158                     _0RL_plpbus__orb_mDataItemSequence_unmarshal_fn,
159                     _0RL_plpbus__orb_mDataItemSequence_marshal_fn,
160                     _0RL_plpbus__orb_mDataItemSequence_destructor_fn,
161                     _v)) {
162     _sp = (const plpbus_orb::DataItemSequence*)_v;
163     return 1;
164   }
165   return 0;
166 }
167
168 static void _0RL_plpbus__orb_mOrbClient_marshal_fn(cdrStream& _s, void* _v)
169 {
170   omniObjRef* _o = (omniObjRef*)_v;
171   omniObjRef::_marshal(_o, _s);
172 }
173 static void _0RL_plpbus__orb_mOrbClient_unmarshal_fn(cdrStream& _s, void*& _v)
174 {
175   omniObjRef* _o = omniObjRef::_unMarshal(plpbus_orb::OrbClient::_PD_repoId, _s);
176   _v = _o;
177 }
178 static void _0RL_plpbus__orb_mOrbClient_destructor_fn(void* _v)
179 {
180   omniObjRef* _o = (omniObjRef*)_v;
181   if (_o)
182     omni::releaseObjRef(_o);
183 }
184
185 void operator<<=(::CORBA::Any& _a, plpbus_orb::OrbClient_ptr _o)
186 {
187   plpbus_orb::OrbClient_ptr _no = plpbus_orb::OrbClient::_duplicate(_o);
188   _a.PR_insert(plpbus_orb::_tc_OrbClient,
189                _0RL_plpbus__orb_mOrbClient_marshal_fn,
190                _0RL_plpbus__orb_mOrbClient_destructor_fn,
191                _no->_PR_getobj());
192 }
193 void operator<<=(::CORBA::Any& _a, plpbus_orb::OrbClient_ptr* _op)
194 {
195   _a.PR_insert(plpbus_orb::_tc_OrbClient,
196                _0RL_plpbus__orb_mOrbClient_marshal_fn,
197                _0RL_plpbus__orb_mOrbClient_destructor_fn,
198                (*_op)->_PR_getobj());
199   *_op = plpbus_orb::OrbClient::_nil();
200 }
201
202 ::CORBA::Boolean operator>>=(const ::CORBA::Any& _a, plpbus_orb::OrbClient_ptr& _o)
203 {
204   void* _v;
205   if (_a.PR_extract(plpbus_orb::_tc_OrbClient,
206                     _0RL_plpbus__orb_mOrbClient_unmarshal_fn,
207                     _0RL_plpbus__orb_mOrbClient_marshal_fn,
208                     _0RL_plpbus__orb_mOrbClient_destructor_fn,
209                     _v)) {
210     omniObjRef* _r = (omniObjRef*)_v;
211     if (_r)
212       _o = (plpbus_orb::OrbClient_ptr)_r->_ptrToObjRef(plpbus_orb::OrbClient::_PD_repoId);
213     else
214       _o = plpbus_orb::OrbClient::_nil();
215     return 1;
216   }
217   return 0;
218 }
219
220 static void _0RL_plpbus__orb_mOrbServer_marshal_fn(cdrStream& _s, void* _v)
221 {
222   omniObjRef* _o = (omniObjRef*)_v;
223   omniObjRef::_marshal(_o, _s);
224 }
225 static void _0RL_plpbus__orb_mOrbServer_unmarshal_fn(cdrStream& _s, void*& _v)
226 {
227   omniObjRef* _o = omniObjRef::_unMarshal(plpbus_orb::OrbServer::_PD_repoId, _s);
228   _v = _o;
229 }
230 static void _0RL_plpbus__orb_mOrbServer_destructor_fn(void* _v)
231 {
232   omniObjRef* _o = (omniObjRef*)_v;
233   if (_o)
234     omni::releaseObjRef(_o);
235 }
236
237 void operator<<=(::CORBA::Any& _a, plpbus_orb::OrbServer_ptr _o)
238 {
239   plpbus_orb::OrbServer_ptr _no = plpbus_orb::OrbServer::_duplicate(_o);
240   _a.PR_insert(plpbus_orb::_tc_OrbServer,
241                _0RL_plpbus__orb_mOrbServer_marshal_fn,
242                _0RL_plpbus__orb_mOrbServer_destructor_fn,
243                _no->_PR_getobj());
244 }
245 void operator<<=(::CORBA::Any& _a, plpbus_orb::OrbServer_ptr* _op)
246 {
247   _a.PR_insert(plpbus_orb::_tc_OrbServer,
248                _0RL_plpbus__orb_mOrbServer_marshal_fn,
249                _0RL_plpbus__orb_mOrbServer_destructor_fn,
250                (*_op)->_PR_getobj());
251   *_op = plpbus_orb::OrbServer::_nil();
252 }
253
254 ::CORBA::Boolean operator>>=(const ::CORBA::Any& _a, plpbus_orb::OrbServer_ptr& _o)
255 {
256   void* _v;
257   if (_a.PR_extract(plpbus_orb::_tc_OrbServer,
258                     _0RL_plpbus__orb_mOrbServer_unmarshal_fn,
259                     _0RL_plpbus__orb_mOrbServer_marshal_fn,
260                     _0RL_plpbus__orb_mOrbServer_destructor_fn,
261                     _v)) {
262     omniObjRef* _r = (omniObjRef*)_v;
263     if (_r)
264       _o = (plpbus_orb::OrbServer_ptr)_r->_ptrToObjRef(plpbus_orb::OrbServer::_PD_repoId);
265     else
266       _o = plpbus_orb::OrbServer::_nil();
267     return 1;
268   }
269   return 0;
270 }
271