00001
00002
00003 #include "SceneRecServerSK.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 SceneRecServer_ptr SceneRecServer_Helper::_nil() {
00018 return ::SceneRecServer::_nil();
00019 }
00020
00021 ::CORBA::Boolean SceneRecServer_Helper::is_nil(::SceneRecServer_ptr p) {
00022 return ::CORBA::is_nil(p);
00023
00024 }
00025
00026 void SceneRecServer_Helper::release(::SceneRecServer_ptr p) {
00027 ::CORBA::release(p);
00028 }
00029
00030 void SceneRecServer_Helper::marshalObjRef(::SceneRecServer_ptr obj, cdrStream& s) {
00031 ::SceneRecServer::_marshalObjRef(obj, s);
00032 }
00033
00034 SceneRecServer_ptr SceneRecServer_Helper::unmarshalObjRef(cdrStream& s) {
00035 return ::SceneRecServer::_unmarshalObjRef(s);
00036 }
00037
00038 void SceneRecServer_Helper::duplicate(::SceneRecServer_ptr obj) {
00039 if( obj && !obj->_NP_is_nil() ) omni::duplicateObjRef(obj);
00040 }
00041
00042 SceneRecServer_ptr
00043 SceneRecServer::_duplicate(::SceneRecServer_ptr obj)
00044 {
00045 if( obj && !obj->_NP_is_nil() ) omni::duplicateObjRef(obj);
00046 return obj;
00047 }
00048
00049 SceneRecServer_ptr
00050 SceneRecServer::_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 SceneRecServer_ptr
00059 SceneRecServer::_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 SceneRecServer_ptr
00067 SceneRecServer::_nil()
00068 {
00069 #ifdef OMNI_UNLOADABLE_STUBS
00070 static _objref_SceneRecServer _the_nil_obj;
00071 return &_the_nil_obj;
00072 #else
00073 static _objref_SceneRecServer* _the_nil_ptr = 0;
00074 if( !_the_nil_ptr ) {
00075 omni::nilRefLock().lock();
00076 if( !_the_nil_ptr ) {
00077 _the_nil_ptr = new _objref_SceneRecServer;
00078 registerNilCorbaObject(_the_nil_ptr);
00079 }
00080 omni::nilRefLock().unlock();
00081 }
00082 return _the_nil_ptr;
00083 #endif
00084 }
00085
00086 const char* SceneRecServer::_PD_repoId = "IDL:SceneRecServer:1.0";
00087
00088
00089 _objref_SceneRecServer::~_objref_SceneRecServer() {
00090
00091 }
00092
00093
00094 _objref_SceneRecServer::_objref_SceneRecServer(omniIOR* ior, omniIdentity* id) :
00095 omniObjRef(::SceneRecServer::_PD_repoId, ior, id, 1)
00096
00097
00098 {
00099 _PR_setobj(this);
00100 }
00101
00102 void*
00103 _objref_SceneRecServer::_ptrToObjRef(const char* id)
00104 {
00105 if( id == ::SceneRecServer::_PD_repoId )
00106 return (::SceneRecServer_ptr) this;
00107
00108 if( id == ::CORBA::Object::_PD_repoId )
00109 return (::CORBA::Object_ptr) this;
00110
00111 if( omni::strMatch(id, ::SceneRecServer::_PD_repoId) )
00112 return (::SceneRecServer_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
00121
00122 class _0RL_cd_c803e3f5fea6e958_00000000
00123 : public omniCallDescriptor
00124 {
00125 public:
00126 inline _0RL_cd_c803e3f5fea6e958_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
00136
00137 ImageOrb_var arg_0_;
00138 const ImageOrb* arg_0;
00139 };
00140
00141 void _0RL_cd_c803e3f5fea6e958_00000000::marshalArguments(cdrStream& _n)
00142 {
00143 (const ImageOrb&) *arg_0 >>= _n;
00144
00145 }
00146
00147 void _0RL_cd_c803e3f5fea6e958_00000000::unmarshalArguments(cdrStream& _n)
00148 {
00149 arg_0_ = new ImageOrb;
00150 (ImageOrb&)arg_0_ <<= _n;
00151 arg_0 = &arg_0_.in();
00152
00153 }
00154
00155
00156 static void
00157 _0RL_lcfn_c803e3f5fea6e958_10000000(omniCallDescriptor* cd, omniServant* svnt)
00158 {
00159 _0RL_cd_c803e3f5fea6e958_00000000* tcd = (_0RL_cd_c803e3f5fea6e958_00000000*)cd;
00160 _impl_SceneRecServer* impl = (_impl_SceneRecServer*) svnt->_ptrToInterface(SceneRecServer::_PD_repoId);
00161 impl->newInput(*tcd->arg_0);
00162
00163
00164 }
00165
00166 void _objref_SceneRecServer::newInput(const ImageOrb& img)
00167 {
00168 _0RL_cd_c803e3f5fea6e958_00000000 _call_desc(_0RL_lcfn_c803e3f5fea6e958_10000000, "newInput", 9);
00169 _call_desc.arg_0 = &(ImageOrb&) img;
00170
00171 _invoke(_call_desc);
00172
00173
00174
00175 }
00176
00177
00178 class _0RL_cd_c803e3f5fea6e958_20000000
00179 : public omniCallDescriptor
00180 {
00181 public:
00182 inline _0RL_cd_c803e3f5fea6e958_20000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
00183 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
00184 {
00185
00186 }
00187
00188
00189 void unmarshalReturnedValues(cdrStream&);
00190 void marshalReturnedValues(cdrStream&);
00191
00192
00193 ::CORBA::Short result;
00194 };
00195
00196 void _0RL_cd_c803e3f5fea6e958_20000000::marshalReturnedValues(cdrStream& _n)
00197 {
00198 result >>= _n;
00199
00200 }
00201
00202 void _0RL_cd_c803e3f5fea6e958_20000000::unmarshalReturnedValues(cdrStream& _n)
00203 {
00204 (::CORBA::Short&)result <<= _n;
00205
00206 }
00207
00208
00209 static void
00210 _0RL_lcfn_c803e3f5fea6e958_30000000(omniCallDescriptor* cd, omniServant* svnt)
00211 {
00212 _0RL_cd_c803e3f5fea6e958_20000000* tcd = (_0RL_cd_c803e3f5fea6e958_20000000*)cd;
00213 _impl_SceneRecServer* impl = (_impl_SceneRecServer*) svnt->_ptrToInterface(SceneRecServer::_PD_repoId);
00214 tcd->result = impl->outputReady();
00215
00216
00217 }
00218
00219 ::CORBA::Short _objref_SceneRecServer::outputReady()
00220 {
00221 _0RL_cd_c803e3f5fea6e958_20000000 _call_desc(_0RL_lcfn_c803e3f5fea6e958_30000000, "outputReady", 12);
00222
00223
00224 _invoke(_call_desc);
00225 return _call_desc.result;
00226
00227
00228 }
00229
00230
00231 class _0RL_cd_c803e3f5fea6e958_40000000
00232 : public omniCallDescriptor
00233 {
00234 public:
00235 inline _0RL_cd_c803e3f5fea6e958_40000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
00236 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
00237 {
00238
00239 }
00240
00241
00242 void unmarshalReturnedValues(cdrStream&);
00243 void marshalReturnedValues(cdrStream&);
00244
00245
00246 Point2DOrb arg_0_;
00247 Point2DOrb* arg_0;
00248 ::CORBA::Short result;
00249 };
00250
00251 void _0RL_cd_c803e3f5fea6e958_40000000::marshalReturnedValues(cdrStream& _n)
00252 {
00253 result >>= _n;
00254 (const Point2DOrb&) *arg_0 >>= _n;
00255
00256 }
00257
00258 void _0RL_cd_c803e3f5fea6e958_40000000::unmarshalReturnedValues(cdrStream& _n)
00259 {
00260 (::CORBA::Short&)result <<= _n;
00261 (Point2DOrb&)*arg_0 <<= _n;
00262
00263 }
00264
00265
00266 static void
00267 _0RL_lcfn_c803e3f5fea6e958_50000000(omniCallDescriptor* cd, omniServant* svnt)
00268 {
00269 _0RL_cd_c803e3f5fea6e958_40000000* tcd = (_0RL_cd_c803e3f5fea6e958_40000000*)cd;
00270 _impl_SceneRecServer* impl = (_impl_SceneRecServer*) svnt->_ptrToInterface(SceneRecServer::_PD_repoId);
00271 tcd->result = impl->getLandmarkLoc(*tcd->arg_0);
00272
00273
00274 }
00275
00276 ::CORBA::Short _objref_SceneRecServer::getLandmarkLoc(Point2DOrb& loc)
00277 {
00278 _0RL_cd_c803e3f5fea6e958_40000000 _call_desc(_0RL_lcfn_c803e3f5fea6e958_50000000, "getLandmarkLoc", 15);
00279 _call_desc.arg_0 = &(Point2DOrb&) loc;
00280
00281 _invoke(_call_desc);
00282 return _call_desc.result;
00283
00284
00285 }
00286
00287
00288 class _0RL_cd_c803e3f5fea6e958_60000000
00289 : public omniCallDescriptor
00290 {
00291 public:
00292 inline _0RL_cd_c803e3f5fea6e958_60000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
00293 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
00294 {
00295
00296 }
00297
00298 void marshalArguments(cdrStream&);
00299 void unmarshalArguments(cdrStream&);
00300
00301
00302
00303 ImageOrb_var arg_0_;
00304 const ImageOrb* arg_0;
00305 Point2DOrb arg_1_;
00306 const Point2DOrb* arg_1;
00307 DimsOrb arg_2_;
00308 const DimsOrb* arg_2;
00309 ::CORBA::Short arg_3;
00310 };
00311
00312 void _0RL_cd_c803e3f5fea6e958_60000000::marshalArguments(cdrStream& _n)
00313 {
00314 (const ImageOrb&) *arg_0 >>= _n;
00315 (const Point2DOrb&) *arg_1 >>= _n;
00316 (const DimsOrb&) *arg_2 >>= _n;
00317 arg_3 >>= _n;
00318
00319 }
00320
00321 void _0RL_cd_c803e3f5fea6e958_60000000::unmarshalArguments(cdrStream& _n)
00322 {
00323 arg_0_ = new ImageOrb;
00324 (ImageOrb&)arg_0_ <<= _n;
00325 arg_0 = &arg_0_.in();
00326 (Point2DOrb&)arg_1_ <<= _n;
00327 arg_1 = &arg_1_;
00328 (DimsOrb&)arg_2_ <<= _n;
00329 arg_2 = &arg_2_;
00330 (::CORBA::Short&)arg_3 <<= _n;
00331
00332 }
00333
00334
00335 static void
00336 _0RL_lcfn_c803e3f5fea6e958_70000000(omniCallDescriptor* cd, omniServant* svnt)
00337 {
00338 _0RL_cd_c803e3f5fea6e958_60000000* tcd = (_0RL_cd_c803e3f5fea6e958_60000000*)cd;
00339 _impl_SceneRecServer* impl = (_impl_SceneRecServer*) svnt->_ptrToInterface(SceneRecServer::_PD_repoId);
00340 impl->trainFeature(*tcd->arg_0, *tcd->arg_1, *tcd->arg_2, tcd->arg_3);
00341
00342
00343 }
00344
00345 void _objref_SceneRecServer::trainFeature(const ImageOrb& img, const Point2DOrb& loc, const DimsOrb& window, ::CORBA::Short leg)
00346 {
00347 _0RL_cd_c803e3f5fea6e958_60000000 _call_desc(_0RL_lcfn_c803e3f5fea6e958_70000000, "trainFeature", 13);
00348 _call_desc.arg_0 = &(ImageOrb&) img;
00349 _call_desc.arg_1 = &(Point2DOrb&) loc;
00350 _call_desc.arg_2 = &(DimsOrb&) window;
00351 _call_desc.arg_3 = leg;
00352
00353 _invoke(_call_desc);
00354
00355
00356
00357 }
00358
00359
00360 class _0RL_cd_c803e3f5fea6e958_80000000
00361 : public omniCallDescriptor
00362 {
00363 public:
00364 inline _0RL_cd_c803e3f5fea6e958_80000000(LocalCallFn lcfn,const char* op_,size_t oplen,_CORBA_Boolean upcall=0):
00365 omniCallDescriptor(lcfn, op_, oplen, 0, 0, 0, upcall)
00366 {
00367
00368 }
00369
00370
00371
00372
00373
00374 };
00375
00376
00377 static void
00378 _0RL_lcfn_c803e3f5fea6e958_90000000(omniCallDescriptor*, omniServant* svnt)
00379 {
00380
00381 _impl_SceneRecServer* impl = (_impl_SceneRecServer*) svnt->_ptrToInterface(SceneRecServer::_PD_repoId);
00382 impl->shutdown();
00383
00384
00385 }
00386
00387 void _objref_SceneRecServer::shutdown()
00388 {
00389 _0RL_cd_c803e3f5fea6e958_80000000 _call_desc(_0RL_lcfn_c803e3f5fea6e958_90000000, "shutdown", 9);
00390
00391
00392 _invoke(_call_desc);
00393
00394
00395
00396 }
00397 _pof_SceneRecServer::~_pof_SceneRecServer() {}
00398
00399
00400 omniObjRef*
00401 _pof_SceneRecServer::newObjRef(omniIOR* ior, omniIdentity* id)
00402 {
00403 return new ::_objref_SceneRecServer(ior, id);
00404 }
00405
00406
00407 ::CORBA::Boolean
00408 _pof_SceneRecServer::is_a(const char* id) const
00409 {
00410 if( omni::ptrStrMatch(id, ::SceneRecServer::_PD_repoId) )
00411 return 1;
00412
00413 return 0;
00414 }
00415
00416 const _pof_SceneRecServer _the_pof_SceneRecServer;
00417
00418 _impl_SceneRecServer::~_impl_SceneRecServer() {}
00419
00420
00421 ::CORBA::Boolean
00422 _impl_SceneRecServer::_dispatch(omniCallHandle& _handle)
00423 {
00424 const char* op = _handle.operation_name();
00425
00426 if( omni::strMatch(op, "newInput") ) {
00427
00428 _0RL_cd_c803e3f5fea6e958_00000000 _call_desc(_0RL_lcfn_c803e3f5fea6e958_10000000, "newInput", 9, 1);
00429
00430 _handle.upcall(this,_call_desc);
00431 return 1;
00432 }
00433
00434 if( omni::strMatch(op, "outputReady") ) {
00435
00436 _0RL_cd_c803e3f5fea6e958_20000000 _call_desc(_0RL_lcfn_c803e3f5fea6e958_30000000, "outputReady", 12, 1);
00437
00438 _handle.upcall(this,_call_desc);
00439 return 1;
00440 }
00441
00442 if( omni::strMatch(op, "getLandmarkLoc") ) {
00443
00444 _0RL_cd_c803e3f5fea6e958_40000000 _call_desc(_0RL_lcfn_c803e3f5fea6e958_50000000, "getLandmarkLoc", 15, 1);
00445 _call_desc.arg_0 = &_call_desc.arg_0_;
00446 _handle.upcall(this,_call_desc);
00447 return 1;
00448 }
00449
00450 if( omni::strMatch(op, "trainFeature") ) {
00451
00452 _0RL_cd_c803e3f5fea6e958_60000000 _call_desc(_0RL_lcfn_c803e3f5fea6e958_70000000, "trainFeature", 13, 1);
00453
00454 _handle.upcall(this,_call_desc);
00455 return 1;
00456 }
00457
00458 if( omni::strMatch(op, "shutdown") ) {
00459
00460 _0RL_cd_c803e3f5fea6e958_80000000 _call_desc(_0RL_lcfn_c803e3f5fea6e958_90000000, "shutdown", 9, 1);
00461
00462 _handle.upcall(this,_call_desc);
00463 return 1;
00464 }
00465
00466
00467 return 0;
00468 }
00469
00470 void*
00471 _impl_SceneRecServer::_ptrToInterface(const char* id)
00472 {
00473 if( id == ::SceneRecServer::_PD_repoId )
00474 return (::_impl_SceneRecServer*) this;
00475
00476 if( id == ::CORBA::Object::_PD_repoId )
00477 return (void*) 1;
00478
00479 if( omni::strMatch(id, ::SceneRecServer::_PD_repoId) )
00480 return (::_impl_SceneRecServer*) this;
00481
00482 if( omni::strMatch(id, ::CORBA::Object::_PD_repoId) )
00483 return (void*) 1;
00484 return 0;
00485 }
00486
00487 const char*
00488 _impl_SceneRecServer::_mostDerivedRepoId()
00489 {
00490 return ::SceneRecServer::_PD_repoId;
00491 }
00492
00493 POA_SceneRecServer::~POA_SceneRecServer() {}
00494