| Directory: | ./ |
|---|---|
| File: | src/hpp/corbaserver/toolsSK.cc |
| Date: | 2025-05-11 11:10:19 |
| Exec | Total | Coverage | |
|---|---|---|---|
| Lines: | 81 | 300 | 27.0% |
| Branches: | 26 | 218 | 11.9% |
| Line | Branch | Exec | Source |
|---|---|---|---|
| 1 | // This file is generated by omniidl (C++ backend) - omniORB_4_3. Do not edit. | ||
| 2 | |||
| 3 | #include "tools-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::Tools_ptr hpp::Tools_Helper::_nil() { | |
| 18 | ✗ | return ::hpp::Tools::_nil(); | |
| 19 | } | ||
| 20 | |||
| 21 | ✗ | ::CORBA::Boolean hpp::Tools_Helper::is_nil(::hpp::Tools_ptr p) { | |
| 22 | ✗ | return ::CORBA::is_nil(p); | |
| 23 | |||
| 24 | } | ||
| 25 | |||
| 26 | ✗ | void hpp::Tools_Helper::release(::hpp::Tools_ptr p) { | |
| 27 | ✗ | ::CORBA::release(p); | |
| 28 | } | ||
| 29 | |||
| 30 | ✗ | void hpp::Tools_Helper::marshalObjRef(::hpp::Tools_ptr obj, cdrStream& s) { | |
| 31 | ✗ | ::hpp::Tools::_marshalObjRef(obj, s); | |
| 32 | } | ||
| 33 | |||
| 34 | ✗ | hpp::Tools_ptr hpp::Tools_Helper::unmarshalObjRef(cdrStream& s) { | |
| 35 | ✗ | return ::hpp::Tools::_unmarshalObjRef(s); | |
| 36 | } | ||
| 37 | |||
| 38 | ✗ | void hpp::Tools_Helper::duplicate(::hpp::Tools_ptr obj) { | |
| 39 | ✗ | if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj); | |
| 40 | } | ||
| 41 | |||
| 42 | hpp::Tools_ptr | ||
| 43 | ✗ | hpp::Tools::_duplicate(::hpp::Tools_ptr obj) | |
| 44 | { | ||
| 45 | ✗ | if (obj && !obj->_NP_is_nil()) omni::duplicateObjRef(obj); | |
| 46 | ✗ | return obj; | |
| 47 | } | ||
| 48 | |||
| 49 | hpp::Tools_ptr | ||
| 50 | ✗ | hpp::Tools::_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::Tools_ptr | ||
| 59 | ✗ | hpp::Tools::_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::Tools_ptr | ||
| 67 | ✗ | hpp::Tools::_nil() | |
| 68 | { | ||
| 69 | #ifdef OMNI_UNLOADABLE_STUBS | ||
| 70 | static _objref_Tools _the_nil_obj; | ||
| 71 | return &_the_nil_obj; | ||
| 72 | #else | ||
| 73 | static _objref_Tools* _the_nil_ptr = 0; | ||
| 74 | ✗ | if (!_the_nil_ptr) { | |
| 75 | ✗ | omni::nilRefLock().lock(); | |
| 76 | ✗ | if (!_the_nil_ptr) { | |
| 77 | ✗ | _the_nil_ptr = new _objref_Tools; | |
| 78 | ✗ | registerNilCorbaObject(_the_nil_ptr); | |
| 79 | } | ||
| 80 | ✗ | omni::nilRefLock().unlock(); | |
| 81 | } | ||
| 82 | ✗ | return _the_nil_ptr; | |
| 83 | #endif | ||
| 84 | } | ||
| 85 | |||
| 86 | const char* hpp::Tools::_PD_repoId = "IDL:hpp/Tools:1.0"; | ||
| 87 | |||
| 88 | |||
| 89 | ✗ | hpp::_objref_Tools::~_objref_Tools() { | |
| 90 | |||
| 91 | } | ||
| 92 | |||
| 93 | |||
| 94 | 16 | hpp::_objref_Tools::_objref_Tools(omniIOR* ior, omniIdentity* id) : | |
| 95 |
1/2✓ Branch 2 taken 8 times.
✗ Branch 3 not taken.
|
16 | omniObjRef(::hpp::Tools::_PD_repoId, ior, id, 1) |
| 96 | |||
| 97 | |||
| 98 | { | ||
| 99 | 16 | _PR_setobj(this); | |
| 100 | } | ||
| 101 | |||
| 102 | void* | ||
| 103 | 8 | hpp::_objref_Tools::_ptrToObjRef(const char* id) | |
| 104 | { | ||
| 105 |
1/2✓ Branch 0 taken 8 times.
✗ Branch 1 not taken.
|
8 | if (id == ::hpp::Tools::_PD_repoId) |
| 106 | 8 | return (::hpp::Tools_ptr) this; | |
| 107 | |||
| 108 | ✗ | if (id == ::CORBA::Object::_PD_repoId) | |
| 109 | ✗ | return (::CORBA::Object_ptr) this; | |
| 110 | |||
| 111 | ✗ | if (omni::strMatch(id, ::hpp::Tools::_PD_repoId)) | |
| 112 | ✗ | return (::hpp::Tools_ptr) this; | |
| 113 | |||
| 114 | ✗ | if (omni::strMatch(id, ::CORBA::Object::_PD_repoId)) | |
| 115 | ✗ | return (::CORBA::Object_ptr) this; | |
| 116 | |||
| 117 | ✗ | return 0; | |
| 118 | } | ||
| 119 | |||
| 120 | |||
| 121 | // | ||
| 122 | // Code for hpp::Tools::loadServerPlugin | ||
| 123 | |||
| 124 | // Proxy call descriptor class. Mangled signature: | ||
| 125 | // _cboolean_i_cstring_i_cstring_e_chpp_mError | ||
| 126 | class _0RL_cd_2ec4e1586007d839_00000000 | ||
| 127 | : public omniCallDescriptor | ||
| 128 | { | ||
| 129 | public: | ||
| 130 | ✗ | inline _0RL_cd_2ec4e1586007d839_00000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0) | |
| 131 | ✗ | : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall) | |
| 132 | { | ||
| 133 | |||
| 134 | } | ||
| 135 | |||
| 136 | void marshalArguments(cdrStream&); | ||
| 137 | void unmarshalArguments(cdrStream&); | ||
| 138 | |||
| 139 | void unmarshalReturnedValues(cdrStream&); | ||
| 140 | void marshalReturnedValues(cdrStream&); | ||
| 141 | |||
| 142 | void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*); | ||
| 143 | static const char* const _user_exns[]; | ||
| 144 | |||
| 145 | ::CORBA::String_var arg_0_; | ||
| 146 | const char* arg_0; | ||
| 147 | ::CORBA::String_var arg_1_; | ||
| 148 | const char* arg_1; | ||
| 149 | ::CORBA::Boolean result; | ||
| 150 | }; | ||
| 151 | |||
| 152 | ✗ | void _0RL_cd_2ec4e1586007d839_00000000::marshalArguments(cdrStream& _n) | |
| 153 | { | ||
| 154 | ✗ | _n.marshalString(arg_0,0); | |
| 155 | ✗ | _n.marshalString(arg_1,0); | |
| 156 | |||
| 157 | } | ||
| 158 | |||
| 159 | ✗ | void _0RL_cd_2ec4e1586007d839_00000000::unmarshalArguments(cdrStream& _n) | |
| 160 | { | ||
| 161 | ✗ | arg_0_ = _n.unmarshalString(0); | |
| 162 | ✗ | arg_0 = arg_0_.in(); | |
| 163 | ✗ | arg_1_ = _n.unmarshalString(0); | |
| 164 | ✗ | arg_1 = arg_1_.in(); | |
| 165 | |||
| 166 | } | ||
| 167 | |||
| 168 | ✗ | void _0RL_cd_2ec4e1586007d839_00000000::marshalReturnedValues(cdrStream& _n) | |
| 169 | { | ||
| 170 | ✗ | _n.marshalBoolean(result); | |
| 171 | |||
| 172 | } | ||
| 173 | |||
| 174 | ✗ | void _0RL_cd_2ec4e1586007d839_00000000::unmarshalReturnedValues(cdrStream& _n) | |
| 175 | { | ||
| 176 | ✗ | result = _n.unmarshalBoolean(); | |
| 177 | |||
| 178 | } | ||
| 179 | |||
| 180 | const char* const _0RL_cd_2ec4e1586007d839_00000000::_user_exns[] = { | ||
| 181 | hpp::Error::_PD_repoId | ||
| 182 | }; | ||
| 183 | |||
| 184 | ✗ | void _0RL_cd_2ec4e1586007d839_00000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId) | |
| 185 | { | ||
| 186 | ✗ | if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) { | |
| 187 | ✗ | hpp::Error _ex; | |
| 188 | ✗ | _ex <<= s; | |
| 189 | ✗ | if (iop_client) iop_client->RequestCompleted(); | |
| 190 | ✗ | throw _ex; | |
| 191 | } | ||
| 192 | |||
| 193 | |||
| 194 | else { | ||
| 195 | ✗ | if (iop_client) iop_client->RequestCompleted(1); | |
| 196 | ✗ | OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException, | |
| 197 | (::CORBA::CompletionStatus)s.completion()); | ||
| 198 | } | ||
| 199 | } | ||
| 200 | |||
| 201 | // Local call call-back function. | ||
| 202 | static void | ||
| 203 | ✗ | _0RL_lcfn_2ec4e1586007d839_10000000(omniCallDescriptor* cd, omniServant* svnt) | |
| 204 | { | ||
| 205 | ✗ | _0RL_cd_2ec4e1586007d839_00000000* tcd = (_0RL_cd_2ec4e1586007d839_00000000*)cd; | |
| 206 | ✗ | hpp::_impl_Tools* impl = (hpp::_impl_Tools*) svnt->_ptrToInterface(hpp::Tools::_PD_repoId); | |
| 207 | #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base | ||
| 208 | ✗ | tcd->result = impl->loadServerPlugin(tcd->arg_0, tcd->arg_1); | |
| 209 | #else | ||
| 210 | if (!cd->is_upcall()) | ||
| 211 | tcd->result = impl->loadServerPlugin(tcd->arg_0, tcd->arg_1); | ||
| 212 | else { | ||
| 213 | try { | ||
| 214 | tcd->result = impl->loadServerPlugin(tcd->arg_0, tcd->arg_1); | ||
| 215 | } | ||
| 216 | catch(hpp::Error& ex) { | ||
| 217 | throw omniORB::StubUserException(ex._NP_duplicate()); | ||
| 218 | } | ||
| 219 | |||
| 220 | |||
| 221 | } | ||
| 222 | #endif | ||
| 223 | |||
| 224 | |||
| 225 | } | ||
| 226 | |||
| 227 | ✗ | ::CORBA::Boolean hpp::_objref_Tools::loadServerPlugin(const char* context_, const char* pluginName) | |
| 228 | { | ||
| 229 | ✗ | _0RL_cd_2ec4e1586007d839_00000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_10000000, "loadServerPlugin", 17); | |
| 230 | ✗ | _call_desc.arg_0 = context_; | |
| 231 | ✗ | _call_desc.arg_1 = pluginName; | |
| 232 | |||
| 233 | ✗ | _invoke(_call_desc); | |
| 234 | ✗ | return _call_desc.result; | |
| 235 | |||
| 236 | |||
| 237 | } | ||
| 238 | |||
| 239 | |||
| 240 | // | ||
| 241 | // Code for hpp::Tools::createContext | ||
| 242 | |||
| 243 | // Proxy call descriptor class. Mangled signature: | ||
| 244 | // _cboolean_i_cstring_e_chpp_mError | ||
| 245 | class _0RL_cd_2ec4e1586007d839_20000000 | ||
| 246 | : public omniCallDescriptor | ||
| 247 | { | ||
| 248 | public: | ||
| 249 | ✗ | inline _0RL_cd_2ec4e1586007d839_20000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0) | |
| 250 | ✗ | : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall) | |
| 251 | { | ||
| 252 | |||
| 253 | } | ||
| 254 | |||
| 255 | void marshalArguments(cdrStream&); | ||
| 256 | void unmarshalArguments(cdrStream&); | ||
| 257 | |||
| 258 | void unmarshalReturnedValues(cdrStream&); | ||
| 259 | void marshalReturnedValues(cdrStream&); | ||
| 260 | |||
| 261 | void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*); | ||
| 262 | static const char* const _user_exns[]; | ||
| 263 | |||
| 264 | ::CORBA::String_var arg_0_; | ||
| 265 | const char* arg_0; | ||
| 266 | ::CORBA::Boolean result; | ||
| 267 | }; | ||
| 268 | |||
| 269 | ✗ | void _0RL_cd_2ec4e1586007d839_20000000::marshalArguments(cdrStream& _n) | |
| 270 | { | ||
| 271 | ✗ | _n.marshalString(arg_0,0); | |
| 272 | |||
| 273 | } | ||
| 274 | |||
| 275 | ✗ | void _0RL_cd_2ec4e1586007d839_20000000::unmarshalArguments(cdrStream& _n) | |
| 276 | { | ||
| 277 | ✗ | arg_0_ = _n.unmarshalString(0); | |
| 278 | ✗ | arg_0 = arg_0_.in(); | |
| 279 | |||
| 280 | } | ||
| 281 | |||
| 282 | ✗ | void _0RL_cd_2ec4e1586007d839_20000000::marshalReturnedValues(cdrStream& _n) | |
| 283 | { | ||
| 284 | ✗ | _n.marshalBoolean(result); | |
| 285 | |||
| 286 | } | ||
| 287 | |||
| 288 | ✗ | void _0RL_cd_2ec4e1586007d839_20000000::unmarshalReturnedValues(cdrStream& _n) | |
| 289 | { | ||
| 290 | ✗ | result = _n.unmarshalBoolean(); | |
| 291 | |||
| 292 | } | ||
| 293 | |||
| 294 | const char* const _0RL_cd_2ec4e1586007d839_20000000::_user_exns[] = { | ||
| 295 | hpp::Error::_PD_repoId | ||
| 296 | }; | ||
| 297 | |||
| 298 | ✗ | void _0RL_cd_2ec4e1586007d839_20000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId) | |
| 299 | { | ||
| 300 | ✗ | if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) { | |
| 301 | ✗ | hpp::Error _ex; | |
| 302 | ✗ | _ex <<= s; | |
| 303 | ✗ | if (iop_client) iop_client->RequestCompleted(); | |
| 304 | ✗ | throw _ex; | |
| 305 | } | ||
| 306 | |||
| 307 | |||
| 308 | else { | ||
| 309 | ✗ | if (iop_client) iop_client->RequestCompleted(1); | |
| 310 | ✗ | OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException, | |
| 311 | (::CORBA::CompletionStatus)s.completion()); | ||
| 312 | } | ||
| 313 | } | ||
| 314 | |||
| 315 | // Local call call-back function. | ||
| 316 | static void | ||
| 317 | ✗ | _0RL_lcfn_2ec4e1586007d839_30000000(omniCallDescriptor* cd, omniServant* svnt) | |
| 318 | { | ||
| 319 | ✗ | _0RL_cd_2ec4e1586007d839_20000000* tcd = (_0RL_cd_2ec4e1586007d839_20000000*)cd; | |
| 320 | ✗ | hpp::_impl_Tools* impl = (hpp::_impl_Tools*) svnt->_ptrToInterface(hpp::Tools::_PD_repoId); | |
| 321 | #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base | ||
| 322 | ✗ | tcd->result = impl->createContext(tcd->arg_0); | |
| 323 | #else | ||
| 324 | if (!cd->is_upcall()) | ||
| 325 | tcd->result = impl->createContext(tcd->arg_0); | ||
| 326 | else { | ||
| 327 | try { | ||
| 328 | tcd->result = impl->createContext(tcd->arg_0); | ||
| 329 | } | ||
| 330 | catch(hpp::Error& ex) { | ||
| 331 | throw omniORB::StubUserException(ex._NP_duplicate()); | ||
| 332 | } | ||
| 333 | |||
| 334 | |||
| 335 | } | ||
| 336 | #endif | ||
| 337 | |||
| 338 | |||
| 339 | } | ||
| 340 | |||
| 341 | ✗ | ::CORBA::Boolean hpp::_objref_Tools::createContext(const char* context_) | |
| 342 | { | ||
| 343 | ✗ | _0RL_cd_2ec4e1586007d839_20000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_30000000, "createContext", 14); | |
| 344 | ✗ | _call_desc.arg_0 = context_; | |
| 345 | |||
| 346 | ✗ | _invoke(_call_desc); | |
| 347 | ✗ | return _call_desc.result; | |
| 348 | |||
| 349 | |||
| 350 | } | ||
| 351 | |||
| 352 | |||
| 353 | // | ||
| 354 | // Code for hpp::Tools::getContexts | ||
| 355 | |||
| 356 | // Proxy call descriptor class. Mangled signature: | ||
| 357 | // _chpp_mNames__t_e_chpp_mError | ||
| 358 | class _0RL_cd_2ec4e1586007d839_40000000 | ||
| 359 | : public omniCallDescriptor | ||
| 360 | { | ||
| 361 | public: | ||
| 362 | 1 | inline _0RL_cd_2ec4e1586007d839_40000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0) | |
| 363 | 1 | : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall) | |
| 364 | { | ||
| 365 | |||
| 366 | 1 | } | |
| 367 | |||
| 368 | |||
| 369 | void unmarshalReturnedValues(cdrStream&); | ||
| 370 | void marshalReturnedValues(cdrStream&); | ||
| 371 | |||
| 372 | void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*); | ||
| 373 | static const char* const _user_exns[]; | ||
| 374 | |||
| 375 | hpp::Names_t_var result; | ||
| 376 | }; | ||
| 377 | |||
| 378 | 1 | void _0RL_cd_2ec4e1586007d839_40000000::marshalReturnedValues(cdrStream& _n) | |
| 379 | { | ||
| 380 | 1 | (const hpp::Names_t&) result >>= _n; | |
| 381 | |||
| 382 | 1 | } | |
| 383 | |||
| 384 | ✗ | void _0RL_cd_2ec4e1586007d839_40000000::unmarshalReturnedValues(cdrStream& _n) | |
| 385 | { | ||
| 386 | ✗ | result = new hpp::Names_t; | |
| 387 | ✗ | (hpp::Names_t&)result <<= _n; | |
| 388 | |||
| 389 | } | ||
| 390 | |||
| 391 | const char* const _0RL_cd_2ec4e1586007d839_40000000::_user_exns[] = { | ||
| 392 | hpp::Error::_PD_repoId | ||
| 393 | }; | ||
| 394 | |||
| 395 | ✗ | void _0RL_cd_2ec4e1586007d839_40000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId) | |
| 396 | { | ||
| 397 | ✗ | if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) { | |
| 398 | ✗ | hpp::Error _ex; | |
| 399 | ✗ | _ex <<= s; | |
| 400 | ✗ | if (iop_client) iop_client->RequestCompleted(); | |
| 401 | ✗ | throw _ex; | |
| 402 | } | ||
| 403 | |||
| 404 | |||
| 405 | else { | ||
| 406 | ✗ | if (iop_client) iop_client->RequestCompleted(1); | |
| 407 | ✗ | OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException, | |
| 408 | (::CORBA::CompletionStatus)s.completion()); | ||
| 409 | } | ||
| 410 | } | ||
| 411 | |||
| 412 | // Local call call-back function. | ||
| 413 | static void | ||
| 414 | ✗ | _0RL_lcfn_2ec4e1586007d839_50000000(omniCallDescriptor* cd, omniServant* svnt) | |
| 415 | { | ||
| 416 | ✗ | _0RL_cd_2ec4e1586007d839_40000000* tcd = (_0RL_cd_2ec4e1586007d839_40000000*)cd; | |
| 417 | ✗ | hpp::_impl_Tools* impl = (hpp::_impl_Tools*) svnt->_ptrToInterface(hpp::Tools::_PD_repoId); | |
| 418 | #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base | ||
| 419 | ✗ | tcd->result = impl->getContexts(); | |
| 420 | #else | ||
| 421 | if (!cd->is_upcall()) | ||
| 422 | tcd->result = impl->getContexts(); | ||
| 423 | else { | ||
| 424 | try { | ||
| 425 | tcd->result = impl->getContexts(); | ||
| 426 | } | ||
| 427 | catch(hpp::Error& ex) { | ||
| 428 | throw omniORB::StubUserException(ex._NP_duplicate()); | ||
| 429 | } | ||
| 430 | |||
| 431 | |||
| 432 | } | ||
| 433 | #endif | ||
| 434 | |||
| 435 | |||
| 436 | } | ||
| 437 | |||
| 438 | ✗ | hpp::Names_t* hpp::_objref_Tools::getContexts() | |
| 439 | { | ||
| 440 | ✗ | _0RL_cd_2ec4e1586007d839_40000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_50000000, "getContexts", 12); | |
| 441 | |||
| 442 | |||
| 443 | ✗ | _invoke(_call_desc); | |
| 444 | ✗ | return _call_desc.result._retn(); | |
| 445 | |||
| 446 | |||
| 447 | } | ||
| 448 | |||
| 449 | |||
| 450 | // | ||
| 451 | // Code for hpp::Tools::deleteContext | ||
| 452 | |||
| 453 | // Local call call-back function. | ||
| 454 | static void | ||
| 455 | ✗ | _0RL_lcfn_2ec4e1586007d839_60000000(omniCallDescriptor* cd, omniServant* svnt) | |
| 456 | { | ||
| 457 | ✗ | _0RL_cd_2ec4e1586007d839_20000000* tcd = (_0RL_cd_2ec4e1586007d839_20000000*)cd; | |
| 458 | ✗ | hpp::_impl_Tools* impl = (hpp::_impl_Tools*) svnt->_ptrToInterface(hpp::Tools::_PD_repoId); | |
| 459 | #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base | ||
| 460 | ✗ | tcd->result = impl->deleteContext(tcd->arg_0); | |
| 461 | #else | ||
| 462 | if (!cd->is_upcall()) | ||
| 463 | tcd->result = impl->deleteContext(tcd->arg_0); | ||
| 464 | else { | ||
| 465 | try { | ||
| 466 | tcd->result = impl->deleteContext(tcd->arg_0); | ||
| 467 | } | ||
| 468 | catch(hpp::Error& ex) { | ||
| 469 | throw omniORB::StubUserException(ex._NP_duplicate()); | ||
| 470 | } | ||
| 471 | |||
| 472 | |||
| 473 | } | ||
| 474 | #endif | ||
| 475 | |||
| 476 | |||
| 477 | } | ||
| 478 | |||
| 479 | ✗ | ::CORBA::Boolean hpp::_objref_Tools::deleteContext(const char* context_) | |
| 480 | { | ||
| 481 | ✗ | _0RL_cd_2ec4e1586007d839_20000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_60000000, "deleteContext", 14); | |
| 482 | ✗ | _call_desc.arg_0 = context_; | |
| 483 | |||
| 484 | ✗ | _invoke(_call_desc); | |
| 485 | ✗ | return _call_desc.result; | |
| 486 | |||
| 487 | |||
| 488 | } | ||
| 489 | |||
| 490 | |||
| 491 | // | ||
| 492 | // Code for hpp::Tools::getServer | ||
| 493 | |||
| 494 | // Proxy call descriptor class. Mangled signature: | ||
| 495 | // _cCORBA_mObject_i_cstring_i_cstring_i_cstring_e_chpp_mError | ||
| 496 | class _0RL_cd_2ec4e1586007d839_70000000 | ||
| 497 | : public omniCallDescriptor | ||
| 498 | { | ||
| 499 | public: | ||
| 500 | 27 | inline _0RL_cd_2ec4e1586007d839_70000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0) | |
| 501 |
1/2✓ Branch 5 taken 27 times.
✗ Branch 6 not taken.
|
27 | : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall) |
| 502 | { | ||
| 503 | |||
| 504 | 27 | } | |
| 505 | |||
| 506 | void marshalArguments(cdrStream&); | ||
| 507 | void unmarshalArguments(cdrStream&); | ||
| 508 | |||
| 509 | void unmarshalReturnedValues(cdrStream&); | ||
| 510 | void marshalReturnedValues(cdrStream&); | ||
| 511 | |||
| 512 | void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*); | ||
| 513 | static const char* const _user_exns[]; | ||
| 514 | |||
| 515 | ::CORBA::String_var arg_0_; | ||
| 516 | const char* arg_0; | ||
| 517 | ::CORBA::String_var arg_1_; | ||
| 518 | const char* arg_1; | ||
| 519 | ::CORBA::String_var arg_2_; | ||
| 520 | const char* arg_2; | ||
| 521 | CORBA::Object_var result; | ||
| 522 | }; | ||
| 523 | |||
| 524 | ✗ | void _0RL_cd_2ec4e1586007d839_70000000::marshalArguments(cdrStream& _n) | |
| 525 | { | ||
| 526 | ✗ | _n.marshalString(arg_0,0); | |
| 527 | ✗ | _n.marshalString(arg_1,0); | |
| 528 | ✗ | _n.marshalString(arg_2,0); | |
| 529 | |||
| 530 | } | ||
| 531 | |||
| 532 | 27 | void _0RL_cd_2ec4e1586007d839_70000000::unmarshalArguments(cdrStream& _n) | |
| 533 | { | ||
| 534 | 27 | arg_0_ = _n.unmarshalString(0); | |
| 535 | 27 | arg_0 = arg_0_.in(); | |
| 536 | 27 | arg_1_ = _n.unmarshalString(0); | |
| 537 | 27 | arg_1 = arg_1_.in(); | |
| 538 | 27 | arg_2_ = _n.unmarshalString(0); | |
| 539 | 27 | arg_2 = arg_2_.in(); | |
| 540 | |||
| 541 | 27 | } | |
| 542 | |||
| 543 | 27 | void _0RL_cd_2ec4e1586007d839_70000000::marshalReturnedValues(cdrStream& _n) | |
| 544 | { | ||
| 545 | 27 | CORBA::Object::_marshalObjRef(result,_n); | |
| 546 | |||
| 547 | 27 | } | |
| 548 | |||
| 549 | ✗ | void _0RL_cd_2ec4e1586007d839_70000000::unmarshalReturnedValues(cdrStream& _n) | |
| 550 | { | ||
| 551 | ✗ | result = CORBA::Object::_unmarshalObjRef(_n); | |
| 552 | |||
| 553 | } | ||
| 554 | |||
| 555 | const char* const _0RL_cd_2ec4e1586007d839_70000000::_user_exns[] = { | ||
| 556 | hpp::Error::_PD_repoId | ||
| 557 | }; | ||
| 558 | |||
| 559 | ✗ | void _0RL_cd_2ec4e1586007d839_70000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId) | |
| 560 | { | ||
| 561 | ✗ | if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) { | |
| 562 | ✗ | hpp::Error _ex; | |
| 563 | ✗ | _ex <<= s; | |
| 564 | ✗ | if (iop_client) iop_client->RequestCompleted(); | |
| 565 | ✗ | throw _ex; | |
| 566 | } | ||
| 567 | |||
| 568 | |||
| 569 | else { | ||
| 570 | ✗ | if (iop_client) iop_client->RequestCompleted(1); | |
| 571 | ✗ | OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException, | |
| 572 | (::CORBA::CompletionStatus)s.completion()); | ||
| 573 | } | ||
| 574 | } | ||
| 575 | |||
| 576 | // Local call call-back function. | ||
| 577 | static void | ||
| 578 | 27 | _0RL_lcfn_2ec4e1586007d839_80000000(omniCallDescriptor* cd, omniServant* svnt) | |
| 579 | { | ||
| 580 | 27 | _0RL_cd_2ec4e1586007d839_70000000* tcd = (_0RL_cd_2ec4e1586007d839_70000000*)cd; | |
| 581 | 27 | hpp::_impl_Tools* impl = (hpp::_impl_Tools*) svnt->_ptrToInterface(hpp::Tools::_PD_repoId); | |
| 582 | #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base | ||
| 583 | 27 | tcd->result = impl->getServer(tcd->arg_0, tcd->arg_1, tcd->arg_2); | |
| 584 | #else | ||
| 585 | if (!cd->is_upcall()) | ||
| 586 | tcd->result = impl->getServer(tcd->arg_0, tcd->arg_1, tcd->arg_2); | ||
| 587 | else { | ||
| 588 | try { | ||
| 589 | tcd->result = impl->getServer(tcd->arg_0, tcd->arg_1, tcd->arg_2); | ||
| 590 | } | ||
| 591 | catch(hpp::Error& ex) { | ||
| 592 | throw omniORB::StubUserException(ex._NP_duplicate()); | ||
| 593 | } | ||
| 594 | |||
| 595 | |||
| 596 | } | ||
| 597 | #endif | ||
| 598 | |||
| 599 | |||
| 600 | 27 | } | |
| 601 | |||
| 602 | ✗ | CORBA::Object_ptr hpp::_objref_Tools::getServer(const char* context_, const char* pluginName, const char* objectname) | |
| 603 | { | ||
| 604 | ✗ | _0RL_cd_2ec4e1586007d839_70000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_80000000, "getServer", 10); | |
| 605 | ✗ | _call_desc.arg_0 = context_; | |
| 606 | ✗ | _call_desc.arg_1 = pluginName; | |
| 607 | ✗ | _call_desc.arg_2 = objectname; | |
| 608 | |||
| 609 | ✗ | _invoke(_call_desc); | |
| 610 | ✗ | return _call_desc.result._retn(); | |
| 611 | |||
| 612 | |||
| 613 | } | ||
| 614 | |||
| 615 | |||
| 616 | // | ||
| 617 | // Code for hpp::Tools::deleteServant | ||
| 618 | |||
| 619 | // Proxy call descriptor class. Mangled signature: | ||
| 620 | // void_i_cstring_e_chpp_mError | ||
| 621 | class _0RL_cd_2ec4e1586007d839_90000000 | ||
| 622 | : public omniCallDescriptor | ||
| 623 | { | ||
| 624 | public: | ||
| 625 | ✗ | inline _0RL_cd_2ec4e1586007d839_90000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0) | |
| 626 | ✗ | : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall) | |
| 627 | { | ||
| 628 | |||
| 629 | } | ||
| 630 | |||
| 631 | void marshalArguments(cdrStream&); | ||
| 632 | void unmarshalArguments(cdrStream&); | ||
| 633 | |||
| 634 | |||
| 635 | void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*); | ||
| 636 | static const char* const _user_exns[]; | ||
| 637 | |||
| 638 | ::CORBA::String_var arg_0_; | ||
| 639 | const char* arg_0; | ||
| 640 | }; | ||
| 641 | |||
| 642 | ✗ | void _0RL_cd_2ec4e1586007d839_90000000::marshalArguments(cdrStream& _n) | |
| 643 | { | ||
| 644 | ✗ | _n.marshalString(arg_0,0); | |
| 645 | |||
| 646 | } | ||
| 647 | |||
| 648 | ✗ | void _0RL_cd_2ec4e1586007d839_90000000::unmarshalArguments(cdrStream& _n) | |
| 649 | { | ||
| 650 | ✗ | arg_0_ = _n.unmarshalString(0); | |
| 651 | ✗ | arg_0 = arg_0_.in(); | |
| 652 | |||
| 653 | } | ||
| 654 | |||
| 655 | const char* const _0RL_cd_2ec4e1586007d839_90000000::_user_exns[] = { | ||
| 656 | hpp::Error::_PD_repoId | ||
| 657 | }; | ||
| 658 | |||
| 659 | ✗ | void _0RL_cd_2ec4e1586007d839_90000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId) | |
| 660 | { | ||
| 661 | ✗ | if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) { | |
| 662 | ✗ | hpp::Error _ex; | |
| 663 | ✗ | _ex <<= s; | |
| 664 | ✗ | if (iop_client) iop_client->RequestCompleted(); | |
| 665 | ✗ | throw _ex; | |
| 666 | } | ||
| 667 | |||
| 668 | |||
| 669 | else { | ||
| 670 | ✗ | if (iop_client) iop_client->RequestCompleted(1); | |
| 671 | ✗ | OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException, | |
| 672 | (::CORBA::CompletionStatus)s.completion()); | ||
| 673 | } | ||
| 674 | } | ||
| 675 | |||
| 676 | // Local call call-back function. | ||
| 677 | static void | ||
| 678 | ✗ | _0RL_lcfn_2ec4e1586007d839_a0000000(omniCallDescriptor* cd, omniServant* svnt) | |
| 679 | { | ||
| 680 | ✗ | _0RL_cd_2ec4e1586007d839_90000000* tcd = (_0RL_cd_2ec4e1586007d839_90000000*)cd; | |
| 681 | ✗ | hpp::_impl_Tools* impl = (hpp::_impl_Tools*) svnt->_ptrToInterface(hpp::Tools::_PD_repoId); | |
| 682 | #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base | ||
| 683 | ✗ | impl->deleteServant(tcd->arg_0); | |
| 684 | #else | ||
| 685 | if (!cd->is_upcall()) | ||
| 686 | impl->deleteServant(tcd->arg_0); | ||
| 687 | else { | ||
| 688 | try { | ||
| 689 | impl->deleteServant(tcd->arg_0); | ||
| 690 | } | ||
| 691 | catch(hpp::Error& ex) { | ||
| 692 | throw omniORB::StubUserException(ex._NP_duplicate()); | ||
| 693 | } | ||
| 694 | |||
| 695 | |||
| 696 | } | ||
| 697 | #endif | ||
| 698 | |||
| 699 | |||
| 700 | } | ||
| 701 | |||
| 702 | ✗ | void hpp::_objref_Tools::deleteServant(const char* id) | |
| 703 | { | ||
| 704 | ✗ | _0RL_cd_2ec4e1586007d839_90000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_a0000000, "deleteServant", 14); | |
| 705 | ✗ | _call_desc.arg_0 = id; | |
| 706 | |||
| 707 | ✗ | _invoke(_call_desc); | |
| 708 | |||
| 709 | |||
| 710 | |||
| 711 | } | ||
| 712 | |||
| 713 | |||
| 714 | // | ||
| 715 | // Code for hpp::Tools::deleteAllServants | ||
| 716 | |||
| 717 | // Proxy call descriptor class. Mangled signature: | ||
| 718 | // void_e_chpp_mError | ||
| 719 | class _0RL_cd_2ec4e1586007d839_b0000000 | ||
| 720 | : public omniCallDescriptor | ||
| 721 | { | ||
| 722 | public: | ||
| 723 | ✗ | inline _0RL_cd_2ec4e1586007d839_b0000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0) | |
| 724 | ✗ | : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 1, upcall) | |
| 725 | { | ||
| 726 | |||
| 727 | } | ||
| 728 | |||
| 729 | |||
| 730 | |||
| 731 | void userException(cdrStream&, _OMNI_NS(IOP_C)*, const char*); | ||
| 732 | static const char* const _user_exns[]; | ||
| 733 | |||
| 734 | |||
| 735 | }; | ||
| 736 | |||
| 737 | const char* const _0RL_cd_2ec4e1586007d839_b0000000::_user_exns[] = { | ||
| 738 | hpp::Error::_PD_repoId | ||
| 739 | }; | ||
| 740 | |||
| 741 | ✗ | void _0RL_cd_2ec4e1586007d839_b0000000::userException(cdrStream& s, _OMNI_NS(IOP_C)* iop_client, const char* repoId) | |
| 742 | { | ||
| 743 | ✗ | if (omni::strMatch(repoId, hpp::Error::_PD_repoId)) { | |
| 744 | ✗ | hpp::Error _ex; | |
| 745 | ✗ | _ex <<= s; | |
| 746 | ✗ | if (iop_client) iop_client->RequestCompleted(); | |
| 747 | ✗ | throw _ex; | |
| 748 | } | ||
| 749 | |||
| 750 | |||
| 751 | else { | ||
| 752 | ✗ | if (iop_client) iop_client->RequestCompleted(1); | |
| 753 | ✗ | OMNIORB_THROW(UNKNOWN,UNKNOWN_UserException, | |
| 754 | (::CORBA::CompletionStatus)s.completion()); | ||
| 755 | } | ||
| 756 | } | ||
| 757 | |||
| 758 | // Local call call-back function. | ||
| 759 | static void | ||
| 760 | ✗ | _0RL_lcfn_2ec4e1586007d839_c0000000(omniCallDescriptor* _OMNIORB_EX_ONLY_CD(cd), omniServant* svnt) | |
| 761 | { | ||
| 762 | |||
| 763 | ✗ | hpp::_impl_Tools* impl = (hpp::_impl_Tools*) svnt->_ptrToInterface(hpp::Tools::_PD_repoId); | |
| 764 | #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base | ||
| 765 | ✗ | impl->deleteAllServants(); | |
| 766 | #else | ||
| 767 | if (!cd->is_upcall()) | ||
| 768 | impl->deleteAllServants(); | ||
| 769 | else { | ||
| 770 | try { | ||
| 771 | impl->deleteAllServants(); | ||
| 772 | } | ||
| 773 | catch(hpp::Error& ex) { | ||
| 774 | throw omniORB::StubUserException(ex._NP_duplicate()); | ||
| 775 | } | ||
| 776 | |||
| 777 | |||
| 778 | } | ||
| 779 | #endif | ||
| 780 | |||
| 781 | |||
| 782 | } | ||
| 783 | |||
| 784 | ✗ | void hpp::_objref_Tools::deleteAllServants() | |
| 785 | { | ||
| 786 | ✗ | _0RL_cd_2ec4e1586007d839_b0000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_c0000000, "deleteAllServants", 18); | |
| 787 | |||
| 788 | |||
| 789 | ✗ | _invoke(_call_desc); | |
| 790 | |||
| 791 | |||
| 792 | |||
| 793 | } | ||
| 794 | |||
| 795 | |||
| 796 | // | ||
| 797 | // Code for hpp::Tools::getAllServants | ||
| 798 | |||
| 799 | // Local call call-back function. | ||
| 800 | static void | ||
| 801 | 1 | _0RL_lcfn_2ec4e1586007d839_d0000000(omniCallDescriptor* cd, omniServant* svnt) | |
| 802 | { | ||
| 803 | 1 | _0RL_cd_2ec4e1586007d839_40000000* tcd = (_0RL_cd_2ec4e1586007d839_40000000*)cd; | |
| 804 | 1 | hpp::_impl_Tools* impl = (hpp::_impl_Tools*) svnt->_ptrToInterface(hpp::Tools::_PD_repoId); | |
| 805 | #ifdef OMNI_HAS_Cplusplus_catch_exception_by_base | ||
| 806 | 1 | tcd->result = impl->getAllServants(); | |
| 807 | #else | ||
| 808 | if (!cd->is_upcall()) | ||
| 809 | tcd->result = impl->getAllServants(); | ||
| 810 | else { | ||
| 811 | try { | ||
| 812 | tcd->result = impl->getAllServants(); | ||
| 813 | } | ||
| 814 | catch(hpp::Error& ex) { | ||
| 815 | throw omniORB::StubUserException(ex._NP_duplicate()); | ||
| 816 | } | ||
| 817 | |||
| 818 | |||
| 819 | } | ||
| 820 | #endif | ||
| 821 | |||
| 822 | |||
| 823 | 1 | } | |
| 824 | |||
| 825 | ✗ | hpp::Names_t* hpp::_objref_Tools::getAllServants() | |
| 826 | { | ||
| 827 | ✗ | _0RL_cd_2ec4e1586007d839_40000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_d0000000, "getAllServants", 15); | |
| 828 | |||
| 829 | |||
| 830 | ✗ | _invoke(_call_desc); | |
| 831 | ✗ | return _call_desc.result._retn(); | |
| 832 | |||
| 833 | |||
| 834 | } | ||
| 835 | |||
| 836 | |||
| 837 | // | ||
| 838 | // Code for hpp::Tools::shutdown | ||
| 839 | |||
| 840 | // Proxy call descriptor class. Mangled signature: | ||
| 841 | // void | ||
| 842 | class _0RL_cd_2ec4e1586007d839_e0000000 | ||
| 843 | : public omniCallDescriptor | ||
| 844 | { | ||
| 845 | public: | ||
| 846 | 8 | inline _0RL_cd_2ec4e1586007d839_e0000000(LocalCallFn lcfn, const char* op_, size_t oplen, _CORBA_Boolean upcall=0) | |
| 847 | 8 | : omniCallDescriptor(lcfn, op_, oplen, 0, _user_exns, 0, upcall) | |
| 848 | { | ||
| 849 | |||
| 850 | 8 | } | |
| 851 | |||
| 852 | |||
| 853 | |||
| 854 | |||
| 855 | static const char* const _user_exns[]; | ||
| 856 | |||
| 857 | |||
| 858 | }; | ||
| 859 | |||
| 860 | const char* const _0RL_cd_2ec4e1586007d839_e0000000::_user_exns[] = { | ||
| 861 | 0 | ||
| 862 | }; | ||
| 863 | |||
| 864 | // Local call call-back function. | ||
| 865 | static void | ||
| 866 | 8 | _0RL_lcfn_2ec4e1586007d839_f0000000(omniCallDescriptor*, omniServant* svnt) | |
| 867 | { | ||
| 868 | |||
| 869 | 8 | hpp::_impl_Tools* impl = (hpp::_impl_Tools*) svnt->_ptrToInterface(hpp::Tools::_PD_repoId); | |
| 870 | 8 | impl->shutdown(); | |
| 871 | |||
| 872 | |||
| 873 | 8 | } | |
| 874 | |||
| 875 | ✗ | void hpp::_objref_Tools::shutdown() | |
| 876 | { | ||
| 877 | ✗ | _0RL_cd_2ec4e1586007d839_e0000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_f0000000, "shutdown", 9); | |
| 878 | |||
| 879 | |||
| 880 | ✗ | _invoke(_call_desc); | |
| 881 | |||
| 882 | |||
| 883 | |||
| 884 | } | ||
| 885 | |||
| 886 | 16 | hpp::_pof_Tools::~_pof_Tools() {} | |
| 887 | |||
| 888 | |||
| 889 | omniObjRef* | ||
| 890 | 8 | hpp::_pof_Tools::newObjRef(omniIOR* ior, omniIdentity* id) | |
| 891 | { | ||
| 892 |
2/4✓ Branch 2 taken 8 times.
✗ Branch 3 not taken.
✓ Branch 4 taken 8 times.
✗ Branch 5 not taken.
|
8 | return new ::hpp::_objref_Tools(ior, id); |
| 893 | } | ||
| 894 | |||
| 895 | |||
| 896 | ::CORBA::Boolean | ||
| 897 | 8 | hpp::_pof_Tools::is_a(const char* id) const | |
| 898 | { | ||
| 899 |
1/2✓ Branch 1 taken 8 times.
✗ Branch 2 not taken.
|
8 | if (omni::ptrStrMatch(id, ::hpp::Tools::_PD_repoId)) |
| 900 | 8 | return 1; | |
| 901 | |||
| 902 | ✗ | return 0; | |
| 903 | } | ||
| 904 | |||
| 905 | const hpp::_pof_Tools _the_pof_hpp_mTools; | ||
| 906 | |||
| 907 | ✗ | hpp::_impl_Tools::~_impl_Tools() {} | |
| 908 | |||
| 909 | |||
| 910 | ::CORBA::Boolean | ||
| 911 | 54 | hpp::_impl_Tools::_dispatch(omniCallHandle& _handle) | |
| 912 | { | ||
| 913 | 54 | const char* op = _handle.operation_name(); | |
| 914 | |||
| 915 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 54 times.
|
54 | if (omni::strMatch(op, "loadServerPlugin")) { |
| 916 | |||
| 917 | ✗ | _0RL_cd_2ec4e1586007d839_00000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_10000000, "loadServerPlugin", 17, 1); | |
| 918 | |||
| 919 | ✗ | _handle.upcall(this,_call_desc); | |
| 920 | ✗ | return 1; | |
| 921 | } | ||
| 922 | |||
| 923 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 54 times.
|
54 | if (omni::strMatch(op, "createContext")) { |
| 924 | |||
| 925 | ✗ | _0RL_cd_2ec4e1586007d839_20000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_30000000, "createContext", 14, 1); | |
| 926 | |||
| 927 | ✗ | _handle.upcall(this,_call_desc); | |
| 928 | ✗ | return 1; | |
| 929 | } | ||
| 930 | |||
| 931 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 54 times.
|
54 | if (omni::strMatch(op, "getContexts")) { |
| 932 | |||
| 933 | ✗ | _0RL_cd_2ec4e1586007d839_40000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_50000000, "getContexts", 12, 1); | |
| 934 | |||
| 935 | ✗ | _handle.upcall(this,_call_desc); | |
| 936 | ✗ | return 1; | |
| 937 | } | ||
| 938 | |||
| 939 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 54 times.
|
54 | if (omni::strMatch(op, "deleteContext")) { |
| 940 | |||
| 941 | ✗ | _0RL_cd_2ec4e1586007d839_20000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_60000000, "deleteContext", 14, 1); | |
| 942 | |||
| 943 | ✗ | _handle.upcall(this,_call_desc); | |
| 944 | ✗ | return 1; | |
| 945 | } | ||
| 946 | |||
| 947 |
2/2✓ Branch 1 taken 27 times.
✓ Branch 2 taken 27 times.
|
54 | if (omni::strMatch(op, "getServer")) { |
| 948 | |||
| 949 |
1/2✓ Branch 1 taken 27 times.
✗ Branch 2 not taken.
|
27 | _0RL_cd_2ec4e1586007d839_70000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_80000000, "getServer", 10, 1); |
| 950 | |||
| 951 |
1/2✓ Branch 1 taken 27 times.
✗ Branch 2 not taken.
|
27 | _handle.upcall(this,_call_desc); |
| 952 | 27 | return 1; | |
| 953 | 27 | } | |
| 954 | |||
| 955 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 27 times.
|
27 | if (omni::strMatch(op, "deleteServant")) { |
| 956 | |||
| 957 | ✗ | _0RL_cd_2ec4e1586007d839_90000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_a0000000, "deleteServant", 14, 1); | |
| 958 | |||
| 959 | ✗ | _handle.upcall(this,_call_desc); | |
| 960 | ✗ | return 1; | |
| 961 | } | ||
| 962 | |||
| 963 |
1/2✗ Branch 1 not taken.
✓ Branch 2 taken 27 times.
|
27 | if (omni::strMatch(op, "deleteAllServants")) { |
| 964 | |||
| 965 | ✗ | _0RL_cd_2ec4e1586007d839_b0000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_c0000000, "deleteAllServants", 18, 1); | |
| 966 | |||
| 967 | ✗ | _handle.upcall(this,_call_desc); | |
| 968 | ✗ | return 1; | |
| 969 | } | ||
| 970 | |||
| 971 |
2/2✓ Branch 1 taken 1 times.
✓ Branch 2 taken 26 times.
|
27 | if (omni::strMatch(op, "getAllServants")) { |
| 972 | |||
| 973 | 1 | _0RL_cd_2ec4e1586007d839_40000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_d0000000, "getAllServants", 15, 1); | |
| 974 | |||
| 975 |
1/2✓ Branch 1 taken 1 times.
✗ Branch 2 not taken.
|
1 | _handle.upcall(this,_call_desc); |
| 976 | 1 | return 1; | |
| 977 | 1 | } | |
| 978 | |||
| 979 |
2/2✓ Branch 1 taken 8 times.
✓ Branch 2 taken 18 times.
|
26 | if (omni::strMatch(op, "shutdown")) { |
| 980 | |||
| 981 | 8 | _0RL_cd_2ec4e1586007d839_e0000000 _call_desc(_0RL_lcfn_2ec4e1586007d839_f0000000, "shutdown", 9, 1); | |
| 982 | |||
| 983 |
1/2✓ Branch 1 taken 8 times.
✗ Branch 2 not taken.
|
8 | _handle.upcall(this,_call_desc); |
| 984 | 8 | return 1; | |
| 985 | 8 | } | |
| 986 | |||
| 987 | |||
| 988 | 18 | return 0; | |
| 989 | } | ||
| 990 | |||
| 991 | void* | ||
| 992 | 62 | hpp::_impl_Tools::_ptrToInterface(const char* id) | |
| 993 | { | ||
| 994 |
2/2✓ Branch 0 taken 44 times.
✓ Branch 1 taken 18 times.
|
62 | if (id == ::hpp::Tools::_PD_repoId) |
| 995 | 44 | return (::hpp::_impl_Tools*) this; | |
| 996 | |||
| 997 |
1/2✗ Branch 0 not taken.
✓ Branch 1 taken 18 times.
|
18 | if (id == ::CORBA::Object::_PD_repoId) |
| 998 | ✗ | return (void*) 1; | |
| 999 | |||
| 1000 |
1/2✓ Branch 1 taken 18 times.
✗ Branch 2 not taken.
|
18 | if (omni::strMatch(id, ::hpp::Tools::_PD_repoId)) |
| 1001 | 18 | return (::hpp::_impl_Tools*) this; | |
| 1002 | |||
| 1003 | ✗ | if (omni::strMatch(id, ::CORBA::Object::_PD_repoId)) | |
| 1004 | ✗ | return (void*) 1; | |
| 1005 | ✗ | return 0; | |
| 1006 | } | ||
| 1007 | |||
| 1008 | const char* | ||
| 1009 | 8 | hpp::_impl_Tools::_mostDerivedRepoId() | |
| 1010 | { | ||
| 1011 | 8 | return ::hpp::Tools::_PD_repoId; | |
| 1012 | } | ||
| 1013 | |||
| 1014 | ✗ | POA_hpp::Tools::~Tools() {} | |
| 1015 | |||
| 1016 |