00001 // This file is generated by omniidl (C++ backend)- omniORB_4_1. Do not edit. 00002 00003 #include "SalGlassesSK.hh" 00004 #include <omniORB4/IOP_S.h> 00005 #include <omniORB4/IOP_C.h> 00006 #include <omniORB4/callDescriptor.h> 00007 #include <omniORB4/callHandle.h> 00008 #include <omniORB4/objTracker.h> 00009 00010 00011 OMNI_USING_NAMESPACE(omni) 00012 00013 static const char* _0RL_library_version = omniORB_4_1; 00014 00015 00016 00017 SalGlasses_ptr SalGlasses_Helper::_nil() { 00018 return ::SalGlasses::_nil(); 00019 } 00020 00021 ::CORBA::Boolean SalGlasses_Helper::is_nil(::SalGlasses_ptr p) { 00022 return ::CORBA::is_nil(p); 00023 00024 } 00025 00026 void SalGlasses_Helper::release(::SalGlasses_ptr p) { 00027 ::CORBA::release(p); 00028 } 00029 00030 void SalGlasses_Helper::marshalObjRef(::SalGlasses_ptr obj, cdrStream& s) { 00031 ::SalGlasses::_marshalObjRef(obj, s); 00032 } 00033 00034 SalGlasses_ptr SalGlasses_Helper::unmarshalObjRef(cdrStream& s) { 00035 return ::SalGlasses::_unmarshalObjRef(s); 00036 } 00037 00038 void SalGlasses_Helper::duplicate(::SalGlasses_ptr obj) { 00039 if( obj && !obj->_NP_is_nil() ) omni::duplicateObjRef(obj); 00040 } 00041 00042 SalGlasses_ptr 00043 SalGlasses::_duplicate(::SalGlasses_ptr obj) 00044 { 00045 if( obj && !obj->_NP_is_nil() ) omni::duplicateObjRef(obj); 00046 return obj; 00047 } 00048 00049 SalGlasses_ptr 00050 SalGlasses::_narrow(::CORBA::Object_ptr obj) 00051 { 00052 if( !obj || obj->_NP_is_nil() || obj->_NP_is_pseudo() ) return _nil(); 00053 _ptr_type e = (_ptr_type) obj->_PR_getobj()->_realNarrow(_PD_repoId); 00054 return e ? e : _nil(); 00055 } 00056 00057 00058 SalGlasses_ptr 00059 SalGlasses::_unchecked_narrow(::CORBA::Object_ptr obj) 00060 { 00061 if( !obj || obj->_NP_is_nil() || obj->_NP_is_pseudo() ) return _nil(); 00062 _ptr_type e = (_ptr_type) obj->_PR_getobj()->_uncheckedNarrow(_PD_repoId); 00063 return e ? e : _nil(); 00064 } 00065 00066 SalGlasses_ptr 00067 SalGlasses::_nil() 00068 { 00069 #ifdef OMNI_UNLOADABLE_STUBS 00070 static _objref_SalGlasses _the_nil_obj; 00071 return &_the_nil_obj; 00072 #else 00073 static _objref_SalGlasses* _the_nil_ptr = 0; 00074 if( !_the_nil_ptr ) { 00075 omni::nilRefLock().lock(); 00076 if( !_the_nil_ptr ) { 00077 _the_nil_ptr = new _objref_SalGlasses; 00078 registerNilCorbaObject(_the_nil_ptr); 00079 } 00080 omni::nilRefLock().unlock(); 00081 } 00082 return _the_nil_ptr; 00083 #endif 00084 } 00085 00086 const char* SalGlasses::_PD_repoId = "IDL:SalGlasses:1.0"; 00087 00088 00089 _objref_SalGlasses::~_objref_SalGlasses() { 00090 00091 } 00092 00093 00094 _objref_SalGlasses::_objref_SalGlasses(omniIOR* ior, omniIdentity* id) : 00095 omniObjRef(::SalGlasses::_PD_repoId, ior, id, 1) 00096 00097 00098 { 00099 _PR_setobj(this); 00100 } 00101 00102 void* 00103 _objref_SalGlasses::_ptrToObjRef(const char* id) 00104 { 00105 if( id == ::SalGlasses::_PD_repoId ) 00106 return (::SalGlasses_ptr) this; 00107 00108 if( id == ::CORBA::Object::_PD_repoId ) 00109 return (::CORBA::Object_ptr) this; 00110 00111 if( omni::strMatch(id, ::SalGlasses::_PD_repoId) ) 00112 return (::SalGlasses_ptr) this; 00113 00114 if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) ) 00115 return (::CORBA::Object_ptr) this; 00116 00117 return 0; 00118 } 00119 00120 // Proxy call descriptor class. Mangled signature: 00121 // void 00122 class _0RL_cd_9796bc3fd8c2649b_00000000 00123 : public omniCallDescriptor 00124 { 00125 public: 00126 inline _0RL_cd_9796bc3fd8c2649b_00000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0): 00127 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall) 00128 { 00129 00130 } 00131 00132 00133 00134 00135 00136 }; 00137 00138 // Local call call-back function. 00139 static void 00140 _0RL_lcfn_9796bc3fd8c2649b_10000000(omniCallDescriptor*, omniServant* svnt) 00141 { 00142 00143 _impl_SalGlasses* impl = (_impl_SalGlasses*) svnt->_ptrToInterface(SalGlasses::_PD_repoId); 00144 impl->init(); 00145 00146 00147 } 00148 00149 void _objref_SalGlasses::init() 00150 { 00151 _0RL_cd_9796bc3fd8c2649b_00000000 _call_desc(_0RL_lcfn_9796bc3fd8c2649b_10000000, "init", 5); 00152 00153 00154 _invoke(_call_desc); 00155 00156 00157 00158 } 00159 // Proxy call descriptor class. Mangled signature: 00160 // _cImageOrb_i_cshort 00161 class _0RL_cd_9796bc3fd8c2649b_20000000 00162 : public omniCallDescriptor 00163 { 00164 public: 00165 inline _0RL_cd_9796bc3fd8c2649b_20000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0): 00166 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall) 00167 { 00168 00169 } 00170 00171 void marshalArguments(cdrStream&); 00172 void unmarshalArguments(cdrStream&); 00173 00174 void unmarshalReturnedValues(cdrStream&); 00175 void marshalReturnedValues(cdrStream&); 00176 00177 00178 ::CORBA::Short arg_0; 00179 ImageOrb_var result; 00180 }; 00181 00182 void _0RL_cd_9796bc3fd8c2649b_20000000::marshalArguments(cdrStream& _n) 00183 { 00184 arg_0 >>= _n; 00185 00186 } 00187 00188 void _0RL_cd_9796bc3fd8c2649b_20000000::unmarshalArguments(cdrStream& _n) 00189 { 00190 (::CORBA::Short&)arg_0 <<= _n; 00191 00192 } 00193 00194 void _0RL_cd_9796bc3fd8c2649b_20000000::marshalReturnedValues(cdrStream& _n) 00195 { 00196 (const ImageOrb&) result >>= _n; 00197 00198 } 00199 00200 void _0RL_cd_9796bc3fd8c2649b_20000000::unmarshalReturnedValues(cdrStream& _n) 00201 { 00202 result = new ImageOrb; 00203 (ImageOrb&)result <<= _n; 00204 00205 } 00206 00207 // Local call call-back function. 00208 static void 00209 _0RL_lcfn_9796bc3fd8c2649b_30000000(omniCallDescriptor* cd, omniServant* svnt) 00210 { 00211 _0RL_cd_9796bc3fd8c2649b_20000000* tcd = (_0RL_cd_9796bc3fd8c2649b_20000000*)cd; 00212 _impl_SalGlasses* impl = (_impl_SalGlasses*) svnt->_ptrToInterface(SalGlasses::_PD_repoId); 00213 tcd->result = impl->getImageSensor(tcd->arg_0); 00214 00215 00216 } 00217 00218 ImageOrb* _objref_SalGlasses::getImageSensor(::CORBA::Short i) 00219 { 00220 _0RL_cd_9796bc3fd8c2649b_20000000 _call_desc(_0RL_lcfn_9796bc3fd8c2649b_30000000, "getImageSensor", 15); 00221 _call_desc.arg_0 = i; 00222 00223 _invoke(_call_desc); 00224 return _call_desc.result._retn(); 00225 00226 00227 } 00228 // Proxy call descriptor class. Mangled signature: 00229 // void_o_cshort_o_cshort_i_cshort 00230 class _0RL_cd_9796bc3fd8c2649b_40000000 00231 : public omniCallDescriptor 00232 { 00233 public: 00234 inline _0RL_cd_9796bc3fd8c2649b_40000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0): 00235 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall) 00236 { 00237 00238 } 00239 00240 void marshalArguments(cdrStream&); 00241 void unmarshalArguments(cdrStream&); 00242 00243 void unmarshalReturnedValues(cdrStream&); 00244 void marshalReturnedValues(cdrStream&); 00245 00246 00247 ::CORBA::Short arg_0; 00248 ::CORBA::Short arg_1; 00249 ::CORBA::Short arg_2; 00250 }; 00251 00252 void _0RL_cd_9796bc3fd8c2649b_40000000::marshalArguments(cdrStream& _n) 00253 { 00254 arg_2 >>= _n; 00255 00256 } 00257 00258 void _0RL_cd_9796bc3fd8c2649b_40000000::unmarshalArguments(cdrStream& _n) 00259 { 00260 (::CORBA::Short&)arg_2 <<= _n; 00261 00262 } 00263 00264 void _0RL_cd_9796bc3fd8c2649b_40000000::marshalReturnedValues(cdrStream& _n) 00265 { 00266 arg_0 >>= _n; 00267 arg_1 >>= _n; 00268 00269 } 00270 00271 void _0RL_cd_9796bc3fd8c2649b_40000000::unmarshalReturnedValues(cdrStream& _n) 00272 { 00273 (::CORBA::Short&)arg_0 <<= _n; 00274 (::CORBA::Short&)arg_1 <<= _n; 00275 00276 } 00277 00278 // Local call call-back function. 00279 static void 00280 _0RL_lcfn_9796bc3fd8c2649b_50000000(omniCallDescriptor* cd, omniServant* svnt) 00281 { 00282 _0RL_cd_9796bc3fd8c2649b_40000000* tcd = (_0RL_cd_9796bc3fd8c2649b_40000000*)cd; 00283 _impl_SalGlasses* impl = (_impl_SalGlasses*) svnt->_ptrToInterface(SalGlasses::_PD_repoId); 00284 impl->getImageSensorDims(tcd->arg_0, tcd->arg_1, tcd->arg_2); 00285 00286 00287 } 00288 00289 void _objref_SalGlasses::getImageSensorDims(::CORBA::Short& w, ::CORBA::Short& h, ::CORBA::Short i) 00290 { 00291 _0RL_cd_9796bc3fd8c2649b_40000000 _call_desc(_0RL_lcfn_9796bc3fd8c2649b_50000000, "getImageSensorDims", 19); 00292 _call_desc.arg_2 = i; 00293 00294 _invoke(_call_desc); 00295 w = _call_desc.arg_0; 00296 h = _call_desc.arg_1; 00297 00298 00299 } 00300 // Local call call-back function. 00301 static void 00302 _0RL_lcfn_9796bc3fd8c2649b_60000000(omniCallDescriptor* cd, omniServant* svnt) 00303 { 00304 _0RL_cd_9796bc3fd8c2649b_20000000* tcd = (_0RL_cd_9796bc3fd8c2649b_20000000*)cd; 00305 _impl_SalGlasses* impl = (_impl_SalGlasses*) svnt->_ptrToInterface(SalGlasses::_PD_repoId); 00306 tcd->result = impl->getSaliencyMap(tcd->arg_0); 00307 00308 00309 } 00310 00311 ImageOrb* _objref_SalGlasses::getSaliencyMap(::CORBA::Short i) 00312 { 00313 _0RL_cd_9796bc3fd8c2649b_20000000 _call_desc(_0RL_lcfn_9796bc3fd8c2649b_60000000, "getSaliencyMap", 15); 00314 _call_desc.arg_0 = i; 00315 00316 _invoke(_call_desc); 00317 return _call_desc.result._retn(); 00318 00319 00320 } 00321 // Proxy call descriptor class. Mangled signature: 00322 // void_o_cshort_o_cshort 00323 class _0RL_cd_9796bc3fd8c2649b_70000000 00324 : public omniCallDescriptor 00325 { 00326 public: 00327 inline _0RL_cd_9796bc3fd8c2649b_70000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0): 00328 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall) 00329 { 00330 00331 } 00332 00333 00334 void unmarshalReturnedValues(cdrStream&); 00335 void marshalReturnedValues(cdrStream&); 00336 00337 00338 ::CORBA::Short arg_0; 00339 ::CORBA::Short arg_1; 00340 }; 00341 00342 void _0RL_cd_9796bc3fd8c2649b_70000000::marshalReturnedValues(cdrStream& _n) 00343 { 00344 arg_0 >>= _n; 00345 arg_1 >>= _n; 00346 00347 } 00348 00349 void _0RL_cd_9796bc3fd8c2649b_70000000::unmarshalReturnedValues(cdrStream& _n) 00350 { 00351 (::CORBA::Short&)arg_0 <<= _n; 00352 (::CORBA::Short&)arg_1 <<= _n; 00353 00354 } 00355 00356 // Local call call-back function. 00357 static void 00358 _0RL_lcfn_9796bc3fd8c2649b_80000000(omniCallDescriptor* cd, omniServant* svnt) 00359 { 00360 _0RL_cd_9796bc3fd8c2649b_70000000* tcd = (_0RL_cd_9796bc3fd8c2649b_70000000*)cd; 00361 _impl_SalGlasses* impl = (_impl_SalGlasses*) svnt->_ptrToInterface(SalGlasses::_PD_repoId); 00362 impl->getWinner(tcd->arg_0, tcd->arg_1); 00363 00364 00365 } 00366 00367 void _objref_SalGlasses::getWinner(::CORBA::Short& x, ::CORBA::Short& y) 00368 { 00369 _0RL_cd_9796bc3fd8c2649b_70000000 _call_desc(_0RL_lcfn_9796bc3fd8c2649b_80000000, "getWinner", 10); 00370 00371 00372 _invoke(_call_desc); 00373 x = _call_desc.arg_0; 00374 y = _call_desc.arg_1; 00375 00376 00377 } 00378 // Proxy call descriptor class. Mangled signature: 00379 // _cshort_i_cshort 00380 class _0RL_cd_9796bc3fd8c2649b_90000000 00381 : public omniCallDescriptor 00382 { 00383 public: 00384 inline _0RL_cd_9796bc3fd8c2649b_90000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0): 00385 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall) 00386 { 00387 00388 } 00389 00390 void marshalArguments(cdrStream&); 00391 void unmarshalArguments(cdrStream&); 00392 00393 void unmarshalReturnedValues(cdrStream&); 00394 void marshalReturnedValues(cdrStream&); 00395 00396 00397 ::CORBA::Short arg_0; 00398 ::CORBA::Short result; 00399 }; 00400 00401 void _0RL_cd_9796bc3fd8c2649b_90000000::marshalArguments(cdrStream& _n) 00402 { 00403 arg_0 >>= _n; 00404 00405 } 00406 00407 void _0RL_cd_9796bc3fd8c2649b_90000000::unmarshalArguments(cdrStream& _n) 00408 { 00409 (::CORBA::Short&)arg_0 <<= _n; 00410 00411 } 00412 00413 void _0RL_cd_9796bc3fd8c2649b_90000000::marshalReturnedValues(cdrStream& _n) 00414 { 00415 result >>= _n; 00416 00417 } 00418 00419 void _0RL_cd_9796bc3fd8c2649b_90000000::unmarshalReturnedValues(cdrStream& _n) 00420 { 00421 (::CORBA::Short&)result <<= _n; 00422 00423 } 00424 00425 // Local call call-back function. 00426 static void 00427 _0RL_lcfn_9796bc3fd8c2649b_a0000000(omniCallDescriptor* cd, omniServant* svnt) 00428 { 00429 _0RL_cd_9796bc3fd8c2649b_90000000* tcd = (_0RL_cd_9796bc3fd8c2649b_90000000*)cd; 00430 _impl_SalGlasses* impl = (_impl_SalGlasses*) svnt->_ptrToInterface(SalGlasses::_PD_repoId); 00431 tcd->result = impl->getSensorValue(tcd->arg_0); 00432 00433 00434 } 00435 00436 ::CORBA::Short _objref_SalGlasses::getSensorValue(::CORBA::Short i) 00437 { 00438 _0RL_cd_9796bc3fd8c2649b_90000000 _call_desc(_0RL_lcfn_9796bc3fd8c2649b_a0000000, "getSensorValue", 15); 00439 _call_desc.arg_0 = i; 00440 00441 _invoke(_call_desc); 00442 return _call_desc.result; 00443 00444 00445 } 00446 // Local call call-back function. 00447 static void 00448 _0RL_lcfn_9796bc3fd8c2649b_b0000000(omniCallDescriptor*, omniServant* svnt) 00449 { 00450 00451 _impl_SalGlasses* impl = (_impl_SalGlasses*) svnt->_ptrToInterface(SalGlasses::_PD_repoId); 00452 impl->shutdown(); 00453 00454 00455 } 00456 00457 void _objref_SalGlasses::shutdown() 00458 { 00459 _0RL_cd_9796bc3fd8c2649b_00000000 _call_desc(_0RL_lcfn_9796bc3fd8c2649b_b0000000, "shutdown", 9); 00460 00461 00462 _invoke(_call_desc); 00463 00464 00465 00466 } 00467 _pof_SalGlasses::~_pof_SalGlasses() {} 00468 00469 00470 omniObjRef* 00471 _pof_SalGlasses::newObjRef(omniIOR* ior, omniIdentity* id) 00472 { 00473 return new ::_objref_SalGlasses(ior, id); 00474 } 00475 00476 00477 ::CORBA::Boolean 00478 _pof_SalGlasses::is_a(const char* id) const 00479 { 00480 if( omni::ptrStrMatch(id, ::SalGlasses::_PD_repoId) ) 00481 return 1; 00482 00483 return 0; 00484 } 00485 00486 const _pof_SalGlasses _the_pof_SalGlasses; 00487 00488 _impl_SalGlasses::~_impl_SalGlasses() {} 00489 00490 00491 ::CORBA::Boolean 00492 _impl_SalGlasses::_dispatch(omniCallHandle& _handle) 00493 { 00494 const char* op = _handle.operation_name(); 00495 00496 if( omni::strMatch(op, "init") ) { 00497 00498 _0RL_cd_9796bc3fd8c2649b_00000000 _call_desc(_0RL_lcfn_9796bc3fd8c2649b_10000000, "init", 5, 1); 00499 00500 _handle.upcall(this,_call_desc); 00501 return 1; 00502 } 00503 00504 if( omni::strMatch(op, "getImageSensor") ) { 00505 00506 _0RL_cd_9796bc3fd8c2649b_20000000 _call_desc(_0RL_lcfn_9796bc3fd8c2649b_30000000, "getImageSensor", 15, 1); 00507 00508 _handle.upcall(this,_call_desc); 00509 return 1; 00510 } 00511 00512 if( omni::strMatch(op, "getImageSensorDims") ) { 00513 00514 _0RL_cd_9796bc3fd8c2649b_40000000 _call_desc(_0RL_lcfn_9796bc3fd8c2649b_50000000, "getImageSensorDims", 19, 1); 00515 00516 _handle.upcall(this,_call_desc); 00517 return 1; 00518 } 00519 00520 if( omni::strMatch(op, "getSaliencyMap") ) { 00521 00522 _0RL_cd_9796bc3fd8c2649b_20000000 _call_desc(_0RL_lcfn_9796bc3fd8c2649b_60000000, "getSaliencyMap", 15, 1); 00523 00524 _handle.upcall(this,_call_desc); 00525 return 1; 00526 } 00527 00528 if( omni::strMatch(op, "getWinner") ) { 00529 00530 _0RL_cd_9796bc3fd8c2649b_70000000 _call_desc(_0RL_lcfn_9796bc3fd8c2649b_80000000, "getWinner", 10, 1); 00531 00532 _handle.upcall(this,_call_desc); 00533 return 1; 00534 } 00535 00536 if( omni::strMatch(op, "getSensorValue") ) { 00537 00538 _0RL_cd_9796bc3fd8c2649b_90000000 _call_desc(_0RL_lcfn_9796bc3fd8c2649b_a0000000, "getSensorValue", 15, 1); 00539 00540 _handle.upcall(this,_call_desc); 00541 return 1; 00542 } 00543 00544 if( omni::strMatch(op, "shutdown") ) { 00545 00546 _0RL_cd_9796bc3fd8c2649b_00000000 _call_desc(_0RL_lcfn_9796bc3fd8c2649b_b0000000, "shutdown", 9, 1); 00547 00548 _handle.upcall(this,_call_desc); 00549 return 1; 00550 } 00551 00552 00553 return 0; 00554 } 00555 00556 void* 00557 _impl_SalGlasses::_ptrToInterface(const char* id) 00558 { 00559 if( id == ::SalGlasses::_PD_repoId ) 00560 return (::_impl_SalGlasses*) this; 00561 00562 if( id == ::CORBA::Object::_PD_repoId ) 00563 return (void*) 1; 00564 00565 if( omni::strMatch(id, ::SalGlasses::_PD_repoId) ) 00566 return (::_impl_SalGlasses*) this; 00567 00568 if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) ) 00569 return (void*) 1; 00570 return 0; 00571 } 00572 00573 const char* 00574 _impl_SalGlasses::_mostDerivedRepoId() 00575 { 00576 return ::SalGlasses::_PD_repoId; 00577 } 00578 00579 POA_SalGlasses::~POA_SalGlasses() {} 00580