GCC Code Coverage Report


Directory: src/
File: src/hpp/manipulation_idl/_problemSK.cc
Date: 2024-12-13 15:43:02
Exec Total Coverage
Lines: 0 107 0.0%
Branches: 0 114 0.0%

Line Branch Exec Source
1 // This file is generated by omniidl (C++ backend) - omniORB_4_3. Do not edit.
2
3 #include "_problem-idl.hh"
4 #include <omniORB4/IOP_S.h>
5 #include <omniORB4/IOP_C.h>
6 #include <omniORB4/callDescriptor.h>
7 #include <omniORB4/callHandle.h>
8 #include <omniORB4/objTracker.h>
9
10
11 OMNI_USING_NAMESPACE(omni)
12
13 OMNI_MAYBE_UNUSED static const char* _0RL_library_version = omniORB_4_3;
14
15
16
17 hpp::manipulation_idl::Problem_ptr hpp::manipulation_idl::Problem_Helper::_nil() {
18 return ::hpp::manipulation_idl::Problem::_nil();
19 }
20
21 ::CORBA::Boolean hpp::manipulation_idl::Problem_Helper::is_nil(::hpp::manipulation_idl::Problem_ptr p) {
22 return ::CORBA::is_nil(p);
23
24 }
25
26 void hpp::manipulation_idl::Problem_Helper::release(::hpp::manipulation_idl::Problem_ptr p) {
27 ::CORBA::release(p);
28 }
29
30 void hpp::manipulation_idl::Problem_Helper::marshalObjRef(::hpp::manipulation_idl::Problem_ptr obj, cdrStream& s) {
31 ::hpp::manipulation_idl::Problem::_marshalObjRef(obj, s);
32 }
33
34 hpp::manipulation_idl::Problem_ptr hpp::manipulation_idl::Problem_Helper::unmarshalObjRef(cdrStream& s) {
35 return ::hpp::manipulation_idl::Problem::_unmarshalObjRef(s);
36 }
37
38 void hpp::manipulation_idl::Problem_Helper::duplicate(::hpp::manipulation_idl::Problem_ptr obj) {
39 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
40 }
41
42 hpp::manipulation_idl::Problem_ptr
43 hpp::manipulation_idl::Problem::_duplicate(::hpp::manipulation_idl::Problem_ptr obj)
44 {
45 if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj);
46 return obj;
47 }
48
49 hpp::manipulation_idl::Problem_ptr
50 hpp::manipulation_idl::Problem::_narrow(::CORBA::Object_ptr obj)
51 {
52 if (!obj || obj->_NP_is_nil() || obj->_NP_is_pseudo()) return _nil();
53 _ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId);
54 return e ? e : _nil();
55 }
56
57
58 hpp::manipulation_idl::Problem_ptr
59 hpp::manipulation_idl::Problem::_unchecked_narrow(::CORBA::Object_ptr obj)
60 {
61 if (!obj || obj->_NP_is_nil() || obj->_NP_is_pseudo()) return _nil();
62 _ptr_type e = (_ptr_type) obj->_PR_getobj()->_uncheckedNarrow(_PD_repoId);
63 return e ? e : _nil();
64 }
65
66 hpp::manipulation_idl::Problem_ptr
67 hpp::manipulation_idl::Problem::_nil()
68 {
69 #ifdef OMNI_UNLOADABLE_STUBS
70 static _objref_Problem _the_nil_obj;
71 return &_the_nil_obj;
72 #else
73 static _objref_Problem* _the_nil_ptr = 0;
74 if (!_the_nil_ptr) {
75 omni::nilRefLock().lock();
76 if (!_the_nil_ptr) {
77 _the_nil_ptr = new _objref_Problem;
78 registerNilCorbaObject(_the_nil_ptr);
79 }
80 omni::nilRefLock().unlock();
81 }
82 return _the_nil_ptr;
83 #endif
84 }
85
86 const char* hpp::manipulation_idl::Problem::_PD_repoId = "IDL:hpp/manipulation_idl/Problem:1.0";
87
88
89 typedef hpp::core_idl::Problem hpp_core_idl_Problem;
90 typedef hpp::core_idl::_impl_Problem hpp_core_idl__impl_Problem;
91 typedef hpp::core_idl::_objref_Problem hpp_core_idl__objref_Problem;
92
93 hpp::manipulation_idl::_objref_Problem::~_objref_Problem() {
94
95 }
96
97
98 hpp::manipulation_idl::_objref_Problem::_objref_Problem(omniIOR* ior, omniIdentity* id) :
99 omniObjRef(::hpp::manipulation_idl::Problem::_PD_repoId, ior, id, 1),
100 hpp_core_idl__objref_Problem(ior, id)
101
102 {
103 _PR_setobj(this);
104 }
105
106 void*
107 hpp::manipulation_idl::_objref_Problem::_ptrToObjRef(const char* id)
108 {
109 if (id == ::hpp::manipulation_idl::Problem::_PD_repoId)
110 return (::hpp::manipulation_idl::Problem_ptr) this;
111 if (id == ::hpp::core_idl::Problem::_PD_repoId)
112 return (::hpp::core_idl::Problem_ptr) this;
113
114
115 if (id == ::CORBA::Object::_PD_repoId)
116 return (::CORBA::Object_ptr) this;
117
118 if (omni::strMatch(id, ::hpp::manipulation_idl::Problem::_PD_repoId))
119 return (::hpp::manipulation_idl::Problem_ptr) this;
120 if (omni::strMatch(id, ::hpp::core_idl::Problem::_PD_repoId))
121 return (::hpp::core_idl::Problem_ptr) this;
122
123
124 if (omni::strMatch(id, ::CORBA::Object::_PD_repoId))
125 return (::CORBA::Object_ptr) this;
126
127 return 0;
128 }
129
130
131 //
132 // Code for hpp::manipulation_idl::Problem::getConstraintGraph
133
134 // Proxy call descriptor class. Mangled signature:
135 // _chpp_mmanipulation__idl_mgraph__idl_mGraph_e_chpp_mError
136 class _0RL_cd_3d849e5564382ad2_00000000
137 : public omniCallDescriptor
138 {
139 public:
140 inline _0RL_cd_3d849e5564382ad2_00000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0)
141 : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall)
142 {
143
144 }
145
146
147 void unmarshalReturnedValues(cdrStream&);
148 void marshalReturnedValues(cdrStream&);
149
150 void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*);
151 static const char* const _user_exns[];
152
153 hpp::manipulation_idl::graph_idl::Graph_var result;
154 };
155
156 void _0RL_cd_3d849e5564382ad2_00000000::marshalReturnedValues(cdrStream& _n)
157 {
158 hpp::manipulation_idl::graph_idl::Graph_Helper::marshalObjRef(result,_n);
159
160 }
161
162 void _0RL_cd_3d849e5564382ad2_00000000::unmarshalReturnedValues(cdrStream& _n)
163 {
164 result = hpp::manipulation_idl::graph_idl::Graph_Helper::unmarshalObjRef(_n);
165
166 }
167
168 const char* const _0RL_cd_3d849e5564382ad2_00000000::_user_exns[] = {
169 hpp::Error::_PD_repoId
170 };
171
172 void _0RL_cd_3d849e5564382ad2_00000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId)
173 {
174 if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) {
175 hpp::Error _ex;
176 _ex <<= s;
177 if (iop_client) iop_client->RequestCompleted();
178 throw _ex;
179 }
180
181
182 else {
183 if (iop_client) iop_client->RequestCompleted(1);
184 OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException,
185 (::CORBA::CompletionStatus)s.completion());
186 }
187 }
188
189 // Local call call-back function.
190 static void
191 _0RL_lcfn_3d849e5564382ad2_10000000(omniCallDescriptor* cd, omniServant* svnt)
192 {
193 _0RL_cd_3d849e5564382ad2_00000000* tcd = (_0RL_cd_3d849e5564382ad2_00000000*)cd;
194 hpp::manipulation_idl::_impl_Problem* impl = (hpp::manipulation_idl::_impl_Problem*) svnt->_ptrToInterface(hpp::manipulation_idl::Problem::_PD_repoId);
195 #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base
196 tcd->result = impl->getConstraintGraph();
197 #else
198 if (!cd->is_upcall())
199 tcd->result = impl->getConstraintGraph();
200 else {
201 try {
202 tcd->result = impl->getConstraintGraph();
203 }
204 catch(hpp::Error& ex) {
205 throw omniORB::StubUserException(ex._NP_duplicate());
206 }
207
208
209 }
210 #endif
211
212
213 }
214
215 hpp::manipulation_idl::graph_idl::Graph_ptr hpp::manipulation_idl::_objref_Problem::getConstraintGraph()
216 {
217 _0RL_cd_3d849e5564382ad2_00000000 _call_desc(_0RL_lcfn_3d849e5564382ad2_10000000, "getConstraintGraph", 19);
218
219
220 _invoke(_call_desc);
221 return _call_desc.result._retn();
222
223
224 }
225
226 hpp::manipulation_idl::_pof_Problem::~_pof_Problem() {}
227
228
229 omniObjRef*
230 hpp::manipulation_idl::_pof_Problem::newObjRef(omniIOR* ior, omniIdentity* id)
231 {
232 return new ::hpp::manipulation_idl::_objref_Problem(ior, id);
233 }
234
235
236 ::CORBA::Boolean
237 hpp::manipulation_idl::_pof_Problem::is_a(const char* id) const
238 {
239 if (omni::ptrStrMatch(id, ::hpp::manipulation_idl::Problem::_PD_repoId))
240 return 1;
241 if (omni::ptrStrMatch(id, hpp::core_idl::Problem::_PD_repoId))
242 return 1;
243
244
245 return 0;
246 }
247
248 const hpp::manipulation_idl::_pof_Problem _the_pof_hpp_mmanipulation__idl_mProblem;
249
250 hpp::manipulation_idl::_impl_Problem::~_impl_Problem() {}
251
252
253 ::CORBA::Boolean
254 hpp::manipulation_idl::_impl_Problem::_dispatch(omniCallHandle& _handle)
255 {
256 const char* op = _handle.operation_name();
257
258 if (omni::strMatch(op, "getConstraintGraph")) {
259
260 _0RL_cd_3d849e5564382ad2_00000000 _call_desc(_0RL_lcfn_3d849e5564382ad2_10000000, "getConstraintGraph", 19, 1);
261
262 _handle.upcall(this,_call_desc);
263 return 1;
264 }
265
266
267 #ifndef _MSC_VER
268 if (hpp_core_idl__impl_Problem::_dispatch(_handle)) {
269 return 1;
270 }
271 #else
272 // Work-around for incorrect MSVC code generation.
273 if (((hpp_core_idl__impl_Problem*)this)->
274 hpp_core_idl__impl_Problem::_dispatch(_handle)) {
275 return 1;
276 }
277 #endif
278
279
280 return 0;
281 }
282
283 void*
284 hpp::manipulation_idl::_impl_Problem::_ptrToInterface(const char* id)
285 {
286 if (id == ::hpp::manipulation_idl::Problem::_PD_repoId)
287 return (::hpp::manipulation_idl::_impl_Problem*) this;
288 if (id == ::hpp::core_idl::Problem::_PD_repoId)
289 return (::hpp::core_idl::_impl_Problem*) this;
290
291
292 if (id == ::CORBA::Object::_PD_repoId)
293 return (void*) 1;
294
295 if (omni::strMatch(id, ::hpp::manipulation_idl::Problem::_PD_repoId))
296 return (::hpp::manipulation_idl::_impl_Problem*) this;
297 if (omni::strMatch(id, ::hpp::core_idl::Problem::_PD_repoId))
298 return (::hpp::core_idl::_impl_Problem*) this;
299
300
301 if (omni::strMatch(id, ::CORBA::Object::_PD_repoId))
302 return (void*) 1;
303 return 0;
304 }
305
306 const char*
307 hpp::manipulation_idl::_impl_Problem::_mostDerivedRepoId()
308 {
309 return ::hpp::manipulation_idl::Problem::_PD_repoId;
310 }
311
312 POA_hpp::manipulation_idl::Problem::~Problem() {}
313
314