CMapSK.cc

00001 // This file is generated by omniidl (C++ backend)- omniORB_4_1. Do not edit.
00002 
00003 #include "CMapSK.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 CMap_ptr CMap_Helper::_nil() {
00018   return ::CMap::_nil();
00019 }
00020 
00021 ::CORBA::Boolean CMap_Helper::is_nil(::CMap_ptr p) {
00022   return ::CORBA::is_nil(p);
00023 
00024 }
00025 
00026 void CMap_Helper::release(::CMap_ptr p) {
00027   ::CORBA::release(p);
00028 }
00029 
00030 void CMap_Helper::marshalObjRef(::CMap_ptr obj, cdrStream& s) {
00031   ::CMap::_marshalObjRef(obj, s);
00032 }
00033 
00034 CMap_ptr CMap_Helper::unmarshalObjRef(cdrStream& s) {
00035   return ::CMap::_unmarshalObjRef(s);
00036 }
00037 
00038 void CMap_Helper::duplicate(::CMap_ptr obj) {
00039   if( obj && !obj->_NP_is_nil() )  omni::duplicateObjRef(obj);
00040 }
00041 
00042 CMap_ptr
00043 CMap::_duplicate(::CMap_ptr obj)
00044 {
00045   if( obj && !obj->_NP_is_nil() )  omni::duplicateObjRef(obj);
00046   return obj;
00047 }
00048 
00049 CMap_ptr
00050 CMap::_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 CMap_ptr
00059 CMap::_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 CMap_ptr
00067 CMap::_nil()
00068 {
00069 #ifdef OMNI_UNLOADABLE_STUBS
00070   static _objref_CMap _the_nil_obj;
00071   return &_the_nil_obj;
00072 #else
00073   static _objref_CMap* _the_nil_ptr = 0;
00074   if( !_the_nil_ptr ) {
00075     omni::nilRefLock().lock();
00076     if( !_the_nil_ptr ) {
00077       _the_nil_ptr = new _objref_CMap;
00078       registerNilCorbaObject(_the_nil_ptr);
00079     }
00080     omni::nilRefLock().unlock();
00081   }
00082   return _the_nil_ptr;
00083 #endif
00084 }
00085 
00086 const char* CMap::_PD_repoId = "IDL:CMap:1.0";
00087 
00088 
00089 _objref_CMap::~_objref_CMap() {
00090 
00091 }
00092 
00093 
00094 _objref_CMap::_objref_CMap(omniIOR* ior, omniIdentity* id) :
00095    omniObjRef(::CMap::_PD_repoId, ior, id, 1)
00096 
00097 
00098 {
00099   _PR_setobj(this);
00100 }
00101 
00102 void*
00103 _objref_CMap::_ptrToObjRef(const char* id)
00104 {
00105   if( id == ::CMap::_PD_repoId )
00106     return (::CMap_ptr) this;
00107 
00108   if( id == ::CORBA::Object::_PD_repoId )
00109     return (::CORBA::Object_ptr) this;
00110 
00111   if( omni::strMatch(id, ::CMap::_PD_repoId) )
00112     return (::CMap_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 //  _cImageOrb_i_cImageOrb_i_cshort_i_cfloat_i_cfloat
00122 class _0RL_cd_12c42ade728de8dd_00000000
00123   : public omniCallDescriptor
00124 {
00125 public:
00126   inline _0RL_cd_12c42ade728de8dd_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   void marshalArguments(cdrStream&);
00133   void unmarshalArguments(cdrStream&);
00134 
00135   void unmarshalReturnedValues(cdrStream&);
00136   void marshalReturnedValues(cdrStream&);
00137 
00138 
00139   ImageOrb_var arg_0_;
00140   const ImageOrb* arg_0;
00141   ::CORBA::Short arg_1;
00142   ::CORBA::Float arg_2;
00143   ::CORBA::Float arg_3;
00144   ImageOrb_var result;
00145 };
00146 
00147 void _0RL_cd_12c42ade728de8dd_00000000::marshalArguments(cdrStream& _n)
00148 {
00149   (const ImageOrb&) *arg_0 >>= _n;
00150   arg_1 >>= _n;
00151   arg_2 >>= _n;
00152   arg_3 >>= _n;
00153 
00154 }
00155 
00156 void _0RL_cd_12c42ade728de8dd_00000000::unmarshalArguments(cdrStream& _n)
00157 {
00158   arg_0_ = new ImageOrb;
00159   (ImageOrb&)arg_0_ <<= _n;
00160   arg_0 = &arg_0_.in();
00161   (::CORBA::Short&)arg_1 <<= _n;
00162   (::CORBA::Float&)arg_2 <<= _n;
00163   (::CORBA::Float&)arg_3 <<= _n;
00164 
00165 }
00166 
00167 void _0RL_cd_12c42ade728de8dd_00000000::marshalReturnedValues(cdrStream& _n)
00168 {
00169   (const ImageOrb&) result >>= _n;
00170 
00171 }
00172 
00173 void _0RL_cd_12c42ade728de8dd_00000000::unmarshalReturnedValues(cdrStream& _n)
00174 {
00175   result = new ImageOrb;
00176   (ImageOrb&)result <<= _n;
00177 
00178 }
00179 
00180 // Local call call-back function.
00181 static void
00182 _0RL_lcfn_12c42ade728de8dd_10000000(omniCallDescriptor* cd, omniServant* svnt)
00183 {
00184   _0RL_cd_12c42ade728de8dd_00000000* tcd = (_0RL_cd_12c42ade728de8dd_00000000*)cd;
00185   _impl_CMap* impl = (_impl_CMap*) svnt->_ptrToInterface(CMap::_PD_repoId);
00186   tcd->result = impl->computeCMAP(*tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3);
00187 
00188 
00189 }
00190 
00191 ImageOrb* _objref_CMap::computeCMAP(const ImageOrb& img, ::CORBA::Short ptyp, ::CORBA::Float ori, ::CORBA::Float coeff)
00192 {
00193   _0RL_cd_12c42ade728de8dd_00000000 _call_desc(_0RL_lcfn_12c42ade728de8dd_10000000, "computeCMAP", 12);
00194   _call_desc.arg_0 = &(ImageOrb&) img;
00195   _call_desc.arg_1 = ptyp;
00196   _call_desc.arg_2 = ori;
00197   _call_desc.arg_3 = coeff;
00198 
00199   _invoke(_call_desc);
00200   return _call_desc.result._retn();
00201 
00202 
00203 }
00204 // Proxy call descriptor class. Mangled signature:
00205 //  _cImageOrb_i_cImageOrb_i_cImageOrb_i_cshort_i_cfloat_i_cfloat
00206 class _0RL_cd_12c42ade728de8dd_20000000
00207   : public omniCallDescriptor
00208 {
00209 public:
00210   inline _0RL_cd_12c42ade728de8dd_20000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
00211      omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
00212   {
00213 
00214   }
00215 
00216   void marshalArguments(cdrStream&);
00217   void unmarshalArguments(cdrStream&);
00218 
00219   void unmarshalReturnedValues(cdrStream&);
00220   void marshalReturnedValues(cdrStream&);
00221 
00222 
00223   ImageOrb_var arg_0_;
00224   const ImageOrb* arg_0;
00225   ImageOrb_var arg_1_;
00226   const ImageOrb* arg_1;
00227   ::CORBA::Short arg_2;
00228   ::CORBA::Float arg_3;
00229   ::CORBA::Float arg_4;
00230   ImageOrb_var result;
00231 };
00232 
00233 void _0RL_cd_12c42ade728de8dd_20000000::marshalArguments(cdrStream& _n)
00234 {
00235   (const ImageOrb&) *arg_0 >>= _n;
00236   (const ImageOrb&) *arg_1 >>= _n;
00237   arg_2 >>= _n;
00238   arg_3 >>= _n;
00239   arg_4 >>= _n;
00240 
00241 }
00242 
00243 void _0RL_cd_12c42ade728de8dd_20000000::unmarshalArguments(cdrStream& _n)
00244 {
00245   arg_0_ = new ImageOrb;
00246   (ImageOrb&)arg_0_ <<= _n;
00247   arg_0 = &arg_0_.in();
00248   arg_1_ = new ImageOrb;
00249   (ImageOrb&)arg_1_ <<= _n;
00250   arg_1 = &arg_1_.in();
00251   (::CORBA::Short&)arg_2 <<= _n;
00252   (::CORBA::Float&)arg_3 <<= _n;
00253   (::CORBA::Float&)arg_4 <<= _n;
00254 
00255 }
00256 
00257 void _0RL_cd_12c42ade728de8dd_20000000::marshalReturnedValues(cdrStream& _n)
00258 {
00259   (const ImageOrb&) result >>= _n;
00260 
00261 }
00262 
00263 void _0RL_cd_12c42ade728de8dd_20000000::unmarshalReturnedValues(cdrStream& _n)
00264 {
00265   result = new ImageOrb;
00266   (ImageOrb&)result <<= _n;
00267 
00268 }
00269 
00270 // Local call call-back function.
00271 static void
00272 _0RL_lcfn_12c42ade728de8dd_30000000(omniCallDescriptor* cd, omniServant* svnt)
00273 {
00274   _0RL_cd_12c42ade728de8dd_20000000* tcd = (_0RL_cd_12c42ade728de8dd_20000000*)cd;
00275   _impl_CMap* impl = (_impl_CMap*) svnt->_ptrToInterface(CMap::_PD_repoId);
00276   tcd->result = impl->computeCMAP2(*tcd->arg_0, *tcd->arg_1, tcd->arg_2, tcd->arg_3, tcd->arg_4);
00277 
00278 
00279 }
00280 
00281 ImageOrb* _objref_CMap::computeCMAP2(const ImageOrb& img1, const ImageOrb& img2, ::CORBA::Short ptyp, ::CORBA::Float ori, ::CORBA::Float coeff)
00282 {
00283   _0RL_cd_12c42ade728de8dd_20000000 _call_desc(_0RL_lcfn_12c42ade728de8dd_30000000, "computeCMAP2", 13);
00284   _call_desc.arg_0 = &(ImageOrb&) img1;
00285   _call_desc.arg_1 = &(ImageOrb&) img2;
00286   _call_desc.arg_2 = ptyp;
00287   _call_desc.arg_3 = ori;
00288   _call_desc.arg_4 = coeff;
00289 
00290   _invoke(_call_desc);
00291   return _call_desc.result._retn();
00292 
00293 
00294 }
00295 // Local call call-back function.
00296 static void
00297 _0RL_lcfn_12c42ade728de8dd_40000000(omniCallDescriptor* cd, omniServant* svnt)
00298 {
00299   _0RL_cd_12c42ade728de8dd_00000000* tcd = (_0RL_cd_12c42ade728de8dd_00000000*)cd;
00300   _impl_CMap* impl = (_impl_CMap*) svnt->_ptrToInterface(CMap::_PD_repoId);
00301   tcd->result = impl->computeFlickerCMAP(*tcd->arg_0, tcd->arg_1, tcd->arg_2, tcd->arg_3);
00302 
00303 
00304 }
00305 
00306 ImageOrb* _objref_CMap::computeFlickerCMAP(const ImageOrb& img, ::CORBA::Short ptyp, ::CORBA::Float ori, ::CORBA::Float coeff)
00307 {
00308   _0RL_cd_12c42ade728de8dd_00000000 _call_desc(_0RL_lcfn_12c42ade728de8dd_40000000, "computeFlickerCMAP", 19);
00309   _call_desc.arg_0 = &(ImageOrb&) img;
00310   _call_desc.arg_1 = ptyp;
00311   _call_desc.arg_2 = ori;
00312   _call_desc.arg_3 = coeff;
00313 
00314   _invoke(_call_desc);
00315   return _call_desc.result._retn();
00316 
00317 
00318 }
00319 // Proxy call descriptor class. Mangled signature:
00320 //  void
00321 class _0RL_cd_12c42ade728de8dd_50000000
00322   : public omniCallDescriptor
00323 {
00324 public:
00325   inline _0RL_cd_12c42ade728de8dd_50000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
00326      omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
00327   {
00328 
00329   }
00330 
00331 
00332 
00333 
00334 
00335 };
00336 
00337 // Local call call-back function.
00338 static void
00339 _0RL_lcfn_12c42ade728de8dd_60000000(omniCallDescriptor*, omniServant* svnt)
00340 {
00341 
00342   _impl_CMap* impl = (_impl_CMap*) svnt->_ptrToInterface(CMap::_PD_repoId);
00343   impl->shutdown();
00344 
00345 
00346 }
00347 
00348 void _objref_CMap::shutdown()
00349 {
00350   _0RL_cd_12c42ade728de8dd_50000000 _call_desc(_0RL_lcfn_12c42ade728de8dd_60000000, "shutdown", 9);
00351 
00352 
00353   _invoke(_call_desc);
00354 
00355 
00356 
00357 }
00358 _pof_CMap::~_pof_CMap() {}
00359 
00360 
00361 omniObjRef*
00362 _pof_CMap::newObjRef(omniIOR* ior, omniIdentity* id)
00363 {
00364   return new ::_objref_CMap(ior, id);
00365 }
00366 
00367 
00368 ::CORBA::Boolean
00369 _pof_CMap::is_a(const char* id) const
00370 {
00371   if( omni::ptrStrMatch(id, ::CMap::_PD_repoId) )
00372     return 1;
00373 
00374   return 0;
00375 }
00376 
00377 const _pof_CMap _the_pof_CMap;
00378 
00379 _impl_CMap::~_impl_CMap() {}
00380 
00381 
00382 ::CORBA::Boolean
00383 _impl_CMap::_dispatch(omniCallHandle& _handle)
00384 {
00385   const char* op = _handle.operation_name();
00386 
00387   if( omni::strMatch(op, "computeCMAP") ) {
00388 
00389     _0RL_cd_12c42ade728de8dd_00000000 _call_desc(_0RL_lcfn_12c42ade728de8dd_10000000, "computeCMAP", 12, 1);
00390 
00391     _handle.upcall(this,_call_desc);
00392     return 1;
00393   }
00394 
00395   if( omni::strMatch(op, "computeCMAP2") ) {
00396 
00397     _0RL_cd_12c42ade728de8dd_20000000 _call_desc(_0RL_lcfn_12c42ade728de8dd_30000000, "computeCMAP2", 13, 1);
00398 
00399     _handle.upcall(this,_call_desc);
00400     return 1;
00401   }
00402 
00403   if( omni::strMatch(op, "computeFlickerCMAP") ) {
00404 
00405     _0RL_cd_12c42ade728de8dd_00000000 _call_desc(_0RL_lcfn_12c42ade728de8dd_40000000, "computeFlickerCMAP", 19, 1);
00406 
00407     _handle.upcall(this,_call_desc);
00408     return 1;
00409   }
00410 
00411   if( omni::strMatch(op, "shutdown") ) {
00412 
00413     _0RL_cd_12c42ade728de8dd_50000000 _call_desc(_0RL_lcfn_12c42ade728de8dd_60000000, "shutdown", 9, 1);
00414 
00415     _handle.upcall(this,_call_desc);
00416     return 1;
00417   }
00418 
00419 
00420   return 0;
00421 }
00422 
00423 void*
00424 _impl_CMap::_ptrToInterface(const char* id)
00425 {
00426   if( id == ::CMap::_PD_repoId )
00427     return (::_impl_CMap*) this;
00428 
00429   if( id == ::CORBA::Object::_PD_repoId )
00430     return (void*) 1;
00431 
00432   if( omni::strMatch(id, ::CMap::_PD_repoId) )
00433     return (::_impl_CMap*) this;
00434 
00435   if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) )
00436     return (void*) 1;
00437   return 0;
00438 }
00439 
00440 const char*
00441 _impl_CMap::_mostDerivedRepoId()
00442 {
00443   return ::CMap::_PD_repoId;
00444 }
00445 
00446 POA_CMap::~POA_CMap() {}
00447 
Generated on Sun May 8 08:04:43 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3