00001
00002 #ifndef __ServiceRequester_hh__
00003 #define __ServiceRequester_hh__
00004
00005 #ifndef __CORBA_H_EXTERNAL_GUARD__
00006 #include <omniORB4/CORBA.h>
00007 #endif
00008
00009 #ifndef USE_stub_in_nt_dll
00010 # define USE_stub_in_nt_dll_NOT_DEFINED_ServiceRequester
00011 #endif
00012 #ifndef USE_core_stub_in_nt_dll
00013 # define USE_core_stub_in_nt_dll_NOT_DEFINED_ServiceRequester
00014 #endif
00015 #ifndef USE_dyn_stub_in_nt_dll
00016 # define USE_dyn_stub_in_nt_dll_NOT_DEFINED_ServiceRequester
00017 #endif
00018
00019
00020
00021 #ifndef __ConfigurationInterface_hh_EXTERNAL_GUARD__
00022 #define __ConfigurationInterface_hh_EXTERNAL_GUARD__
00023 #include "ConfigurationInterfaceC.h"
00024 #endif
00025 #ifndef __OperationInterface_hh_EXTERNAL_GUARD__
00026 #define __OperationInterface_hh_EXTERNAL_GUARD__
00027 #include "OperationInterfaceC.h"
00028 #endif
00029 #ifndef __DataFlow_hh_EXTERNAL_GUARD__
00030 #define __DataFlow_hh_EXTERNAL_GUARD__
00031 #include "DataFlowC.h"
00032 #endif
00033 #ifndef __Service_hh_EXTERNAL_GUARD__
00034 #define __Service_hh_EXTERNAL_GUARD__
00035 #include "ServiceC.h"
00036 #endif
00037
00038
00039
00040 #ifdef USE_stub_in_nt_dll
00041 # ifndef USE_core_stub_in_nt_dll
00042 # define USE_core_stub_in_nt_dll
00043 # endif
00044 # ifndef USE_dyn_stub_in_nt_dll
00045 # define USE_dyn_stub_in_nt_dll
00046 # endif
00047 #endif
00048
00049 #ifdef _core_attr
00050 # error "A local CPP macro _core_attr has already been defined."
00051 #else
00052 # ifdef USE_core_stub_in_nt_dll
00053 # define _core_attr _OMNIORB_NTDLL_IMPORT
00054 # else
00055 # define _core_attr
00056 # endif
00057 #endif
00058
00059 #ifdef _dyn_attr
00060 # error "A local CPP macro _dyn_attr has already been defined."
00061 #else
00062 # ifdef USE_dyn_stub_in_nt_dll
00063 # define _dyn_attr _OMNIORB_NTDLL_IMPORT
00064 # else
00065 # define _dyn_attr
00066 # endif
00067 #endif
00068
00069
00070
00071
00072
00073 _CORBA_MODULE RTT
00074
00075 _CORBA_MODULE_BEG
00076
00077 _CORBA_MODULE corba
00078
00079 _CORBA_MODULE_BEG
00080
00081 _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_CRequestNames;
00082
00083 class CRequestNames_var;
00084
00085 class CRequestNames : public _CORBA_Unbounded_Sequence_String {
00086 public:
00087 typedef CRequestNames_var _var_type;
00088 inline CRequestNames() {}
00089 inline CRequestNames(const CRequestNames& _s)
00090 : _CORBA_Unbounded_Sequence_String(_s) {}
00091
00092 inline CRequestNames(_CORBA_ULong _max)
00093 : _CORBA_Unbounded_Sequence_String(_max) {}
00094 inline CRequestNames(_CORBA_ULong _max, _CORBA_ULong _len, char** _val, _CORBA_Boolean _rel=0)
00095 : _CORBA_Unbounded_Sequence_String(_max, _len, _val, _rel) {}
00096
00097
00098
00099 inline CRequestNames& operator = (const CRequestNames& _s) {
00100 _CORBA_Unbounded_Sequence_String::operator=(_s);
00101 return *this;
00102 }
00103 };
00104
00105 class CRequestNames_out;
00106
00107 class CRequestNames_var {
00108 public:
00109 inline CRequestNames_var() : _pd_seq(0) {}
00110 inline CRequestNames_var(CRequestNames* _s) : _pd_seq(_s) {}
00111 inline CRequestNames_var(const CRequestNames_var& _s) {
00112 if( _s._pd_seq ) _pd_seq = new CRequestNames(*_s._pd_seq);
00113 else _pd_seq = 0;
00114 }
00115 inline ~CRequestNames_var() { if( _pd_seq ) delete _pd_seq; }
00116
00117 inline CRequestNames_var& operator = (CRequestNames* _s) {
00118 if( _pd_seq ) delete _pd_seq;
00119 _pd_seq = _s;
00120 return *this;
00121 }
00122 inline CRequestNames_var& operator = (const CRequestNames_var& _s) {
00123 if( _s._pd_seq ) {
00124 if( !_pd_seq ) _pd_seq = new CRequestNames;
00125 *_pd_seq = *_s._pd_seq;
00126 } else if( _pd_seq ) {
00127 delete _pd_seq;
00128 _pd_seq = 0;
00129 }
00130 return *this;
00131 }
00132 inline _CORBA_String_element operator [] (_CORBA_ULong _s) {
00133 return (*_pd_seq)[_s];
00134 }
00135
00136
00137
00138 inline CRequestNames* operator -> () { return _pd_seq; }
00139 inline const CRequestNames* operator -> () const { return _pd_seq; }
00140 #if defined(__GNUG__)
00141 inline operator CRequestNames& () const { return *_pd_seq; }
00142 #else
00143 inline operator const CRequestNames& () const { return *_pd_seq; }
00144 inline operator CRequestNames& () { return *_pd_seq; }
00145 #endif
00146
00147 inline const CRequestNames& in() const { return *_pd_seq; }
00148 inline CRequestNames& inout() { return *_pd_seq; }
00149 inline CRequestNames*& out() {
00150 if( _pd_seq ) { delete _pd_seq; _pd_seq = 0; }
00151 return _pd_seq;
00152 }
00153 inline CRequestNames* _retn() { CRequestNames* tmp = _pd_seq; _pd_seq = 0; return tmp; }
00154
00155 friend class CRequestNames_out;
00156
00157 private:
00158 CRequestNames* _pd_seq;
00159 };
00160
00161 class CRequestNames_out {
00162 public:
00163 inline CRequestNames_out(CRequestNames*& _s) : _data(_s) { _data = 0; }
00164 inline CRequestNames_out(CRequestNames_var& _s)
00165 : _data(_s._pd_seq) { _s = (CRequestNames*) 0; }
00166 inline CRequestNames_out(const CRequestNames_out& _s) : _data(_s._data) {}
00167 inline CRequestNames_out& operator = (const CRequestNames_out& _s) {
00168 _data = _s._data;
00169 return *this;
00170 }
00171 inline CRequestNames_out& operator = (CRequestNames* _s) {
00172 _data = _s;
00173 return *this;
00174 }
00175 inline operator CRequestNames*&() { return _data; }
00176 inline CRequestNames*& ptr() { return _data; }
00177 inline CRequestNames* operator->() { return _data; }
00178
00179 inline _CORBA_String_element operator [] (_CORBA_ULong _i) {
00180 return (*_data)[_i];
00181 }
00182
00183
00184
00185 CRequestNames*& _data;
00186
00187 private:
00188 CRequestNames_out();
00189 CRequestNames_out& operator=(const CRequestNames_var&);
00190 };
00191
00192 _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_COperationCallerNames;
00193
00194 class COperationCallerNames_var;
00195
00196 class COperationCallerNames : public _CORBA_Unbounded_Sequence_String {
00197 public:
00198 typedef COperationCallerNames_var _var_type;
00199 inline COperationCallerNames() {}
00200 inline COperationCallerNames(const COperationCallerNames& _s)
00201 : _CORBA_Unbounded_Sequence_String(_s) {}
00202
00203 inline COperationCallerNames(_CORBA_ULong _max)
00204 : _CORBA_Unbounded_Sequence_String(_max) {}
00205 inline COperationCallerNames(_CORBA_ULong _max, _CORBA_ULong _len, char** _val, _CORBA_Boolean _rel=0)
00206 : _CORBA_Unbounded_Sequence_String(_max, _len, _val, _rel) {}
00207
00208
00209
00210 inline COperationCallerNames& operator = (const COperationCallerNames& _s) {
00211 _CORBA_Unbounded_Sequence_String::operator=(_s);
00212 return *this;
00213 }
00214 };
00215
00216 class COperationCallerNames_out;
00217
00218 class COperationCallerNames_var {
00219 public:
00220 inline COperationCallerNames_var() : _pd_seq(0) {}
00221 inline COperationCallerNames_var(COperationCallerNames* _s) : _pd_seq(_s) {}
00222 inline COperationCallerNames_var(const COperationCallerNames_var& _s) {
00223 if( _s._pd_seq ) _pd_seq = new COperationCallerNames(*_s._pd_seq);
00224 else _pd_seq = 0;
00225 }
00226 inline ~COperationCallerNames_var() { if( _pd_seq ) delete _pd_seq; }
00227
00228 inline COperationCallerNames_var& operator = (COperationCallerNames* _s) {
00229 if( _pd_seq ) delete _pd_seq;
00230 _pd_seq = _s;
00231 return *this;
00232 }
00233 inline COperationCallerNames_var& operator = (const COperationCallerNames_var& _s) {
00234 if( _s._pd_seq ) {
00235 if( !_pd_seq ) _pd_seq = new COperationCallerNames;
00236 *_pd_seq = *_s._pd_seq;
00237 } else if( _pd_seq ) {
00238 delete _pd_seq;
00239 _pd_seq = 0;
00240 }
00241 return *this;
00242 }
00243 inline _CORBA_String_element operator [] (_CORBA_ULong _s) {
00244 return (*_pd_seq)[_s];
00245 }
00246
00247
00248
00249 inline COperationCallerNames* operator -> () { return _pd_seq; }
00250 inline const COperationCallerNames* operator -> () const { return _pd_seq; }
00251 #if defined(__GNUG__)
00252 inline operator COperationCallerNames& () const { return *_pd_seq; }
00253 #else
00254 inline operator const COperationCallerNames& () const { return *_pd_seq; }
00255 inline operator COperationCallerNames& () { return *_pd_seq; }
00256 #endif
00257
00258 inline const COperationCallerNames& in() const { return *_pd_seq; }
00259 inline COperationCallerNames& inout() { return *_pd_seq; }
00260 inline COperationCallerNames*& out() {
00261 if( _pd_seq ) { delete _pd_seq; _pd_seq = 0; }
00262 return _pd_seq;
00263 }
00264 inline COperationCallerNames* _retn() { COperationCallerNames* tmp = _pd_seq; _pd_seq = 0; return tmp; }
00265
00266 friend class COperationCallerNames_out;
00267
00268 private:
00269 COperationCallerNames* _pd_seq;
00270 };
00271
00272 class COperationCallerNames_out {
00273 public:
00274 inline COperationCallerNames_out(COperationCallerNames*& _s) : _data(_s) { _data = 0; }
00275 inline COperationCallerNames_out(COperationCallerNames_var& _s)
00276 : _data(_s._pd_seq) { _s = (COperationCallerNames*) 0; }
00277 inline COperationCallerNames_out(const COperationCallerNames_out& _s) : _data(_s._data) {}
00278 inline COperationCallerNames_out& operator = (const COperationCallerNames_out& _s) {
00279 _data = _s._data;
00280 return *this;
00281 }
00282 inline COperationCallerNames_out& operator = (COperationCallerNames* _s) {
00283 _data = _s;
00284 return *this;
00285 }
00286 inline operator COperationCallerNames*&() { return _data; }
00287 inline COperationCallerNames*& ptr() { return _data; }
00288 inline COperationCallerNames* operator->() { return _data; }
00289
00290 inline _CORBA_String_element operator [] (_CORBA_ULong _i) {
00291 return (*_data)[_i];
00292 }
00293
00294
00295
00296 COperationCallerNames*& _data;
00297
00298 private:
00299 COperationCallerNames_out();
00300 COperationCallerNames_out& operator=(const COperationCallerNames_var&);
00301 };
00302
00303 #ifndef __RTT_mcorba_mCServiceRequester__
00304 #define __RTT_mcorba_mCServiceRequester__
00305
00306 class CServiceRequester;
00307 class _objref_CServiceRequester;
00308 class _impl_CServiceRequester;
00309
00310 typedef _objref_CServiceRequester* CServiceRequester_ptr;
00311 typedef CServiceRequester_ptr CServiceRequesterRef;
00312
00313 class CServiceRequester_Helper {
00314 public:
00315 typedef CServiceRequester_ptr _ptr_type;
00316
00317 static _ptr_type _nil();
00318 static _CORBA_Boolean is_nil(_ptr_type);
00319 static void release(_ptr_type);
00320 static void duplicate(_ptr_type);
00321 static void marshalObjRef(_ptr_type, cdrStream&);
00322 static _ptr_type unmarshalObjRef(cdrStream&);
00323 };
00324
00325 typedef _CORBA_ObjRef_Var<_objref_CServiceRequester, CServiceRequester_Helper> CServiceRequester_var;
00326 typedef _CORBA_ObjRef_OUT_arg<_objref_CServiceRequester,CServiceRequester_Helper > CServiceRequester_out;
00327
00328 #endif
00329
00330
00331 class CServiceRequester {
00332 public:
00333
00334 typedef CServiceRequester_ptr _ptr_type;
00335 typedef CServiceRequester_var _var_type;
00336
00337 static _ptr_type _duplicate(_ptr_type);
00338 static _ptr_type _narrow(::CORBA::Object_ptr);
00339 static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
00340
00341 static _ptr_type _nil();
00342
00343 static inline void _marshalObjRef(_ptr_type, cdrStream&);
00344
00345 static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
00346 omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
00347 if (o)
00348 return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
00349 else
00350 return _nil();
00351 }
00352
00353 static _core_attr const char* _PD_repoId;
00354
00355
00356
00357 };
00358
00359 class _objref_CServiceRequester :
00360 public virtual ::CORBA::Object,
00361 public virtual omniObjRef
00362 {
00363 public:
00364 char* getRequestName();
00365 CRequestNames* getRequestNames();
00366 COperationCallerNames* getOperationCallerNames();
00367 CServiceRequester_ptr getRequest(const char* name);
00368 ::CORBA::Boolean hasRequest(const char* name);
00369 ::CORBA::Boolean connectTo(CService_ptr svc);
00370 ::CORBA::Boolean connectCallerTo(const char* name, CService_ptr svc);
00371 ::CORBA::Boolean ready();
00372 ::CORBA::Boolean disconnectCaller(const char* name);
00373 ::CORBA::Boolean callerReady(const char* name);
00374 void disconnect();
00375
00376 inline _objref_CServiceRequester() { _PR_setobj(0); }
00377 _objref_CServiceRequester(omniIOR*, omniIdentity*);
00378
00379 protected:
00380 virtual ~_objref_CServiceRequester();
00381
00382
00383 private:
00384 virtual void* _ptrToObjRef(const char*);
00385
00386 _objref_CServiceRequester(const _objref_CServiceRequester&);
00387 _objref_CServiceRequester& operator = (const _objref_CServiceRequester&);
00388
00389
00390 friend class CServiceRequester;
00391 };
00392
00393 class _pof_CServiceRequester : public _OMNI_NS(proxyObjectFactory) {
00394 public:
00395 inline _pof_CServiceRequester() : _OMNI_NS(proxyObjectFactory)(CServiceRequester::_PD_repoId) {}
00396 virtual ~_pof_CServiceRequester();
00397
00398 virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
00399 virtual _CORBA_Boolean is_a(const char*) const;
00400 };
00401
00402 class _impl_CServiceRequester :
00403 public virtual omniServant
00404 {
00405 public:
00406 virtual ~_impl_CServiceRequester();
00407
00408 virtual char* getRequestName() = 0;
00409 virtual CRequestNames* getRequestNames() = 0;
00410 virtual COperationCallerNames* getOperationCallerNames() = 0;
00411 virtual CServiceRequester_ptr getRequest(const char* name) = 0;
00412 virtual ::CORBA::Boolean hasRequest(const char* name) = 0;
00413 virtual ::CORBA::Boolean connectTo(CService_ptr svc) = 0;
00414 virtual ::CORBA::Boolean connectCallerTo(const char* name, CService_ptr svc) = 0;
00415 virtual ::CORBA::Boolean ready() = 0;
00416 virtual ::CORBA::Boolean disconnectCaller(const char* name) = 0;
00417 virtual ::CORBA::Boolean callerReady(const char* name) = 0;
00418 virtual void disconnect() = 0;
00419
00420 public:
00421 virtual _CORBA_Boolean _dispatch(omniCallHandle&);
00422
00423 private:
00424 virtual void* _ptrToInterface(const char*);
00425 virtual const char* _mostDerivedRepoId();
00426
00427 };
00428
00429
00430 _CORBA_MODULE_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_CServiceRequester;
00431
00432 _CORBA_MODULE_END
00433
00434 _CORBA_MODULE_END
00435
00436
00437
00438 _CORBA_MODULE POA_RTT
00439 _CORBA_MODULE_BEG
00440
00441 _CORBA_MODULE corba
00442 _CORBA_MODULE_BEG
00443
00444 class CServiceRequester :
00445 public virtual RTT::corba::_impl_CServiceRequester,
00446 public virtual ::PortableServer::ServantBase
00447 {
00448 public:
00449 virtual ~CServiceRequester();
00450
00451 inline ::RTT::corba::CServiceRequester_ptr _this() {
00452 return (::RTT::corba::CServiceRequester_ptr) _do_this(::RTT::corba::CServiceRequester::_PD_repoId);
00453 }
00454 };
00455
00456 _CORBA_MODULE_END
00457
00458 _CORBA_MODULE_END
00459
00460
00461
00462 _CORBA_MODULE OBV_RTT
00463 _CORBA_MODULE_BEG
00464
00465 _CORBA_MODULE corba
00466 _CORBA_MODULE_BEG
00467
00468 _CORBA_MODULE_END
00469
00470 _CORBA_MODULE_END
00471
00472
00473
00474
00475
00476 #undef _core_attr
00477 #undef _dyn_attr
00478
00479 void operator<<=(::CORBA::Any& _a, const RTT::corba::CRequestNames& _s);
00480 void operator<<=(::CORBA::Any& _a, RTT::corba::CRequestNames* _sp);
00481 _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, RTT::corba::CRequestNames*& _sp);
00482 _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const RTT::corba::CRequestNames*& _sp);
00483
00484 void operator<<=(::CORBA::Any& _a, const RTT::corba::COperationCallerNames& _s);
00485 void operator<<=(::CORBA::Any& _a, RTT::corba::COperationCallerNames* _sp);
00486 _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, RTT::corba::COperationCallerNames*& _sp);
00487 _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const RTT::corba::COperationCallerNames*& _sp);
00488
00489 void operator<<=(::CORBA::Any& _a, RTT::corba::CServiceRequester_ptr _s);
00490 void operator<<=(::CORBA::Any& _a, RTT::corba::CServiceRequester_ptr* _s);
00491 _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, RTT::corba::CServiceRequester_ptr& _s);
00492
00493
00494
00495 inline void
00496 RTT::corba::CServiceRequester::_marshalObjRef(::RTT::corba::CServiceRequester_ptr obj, cdrStream& s) {
00497 omniObjRef::_marshal(obj->_PR_getobj(),s);
00498 }
00499
00500
00501
00502
00503 #ifdef USE_stub_in_nt_dll_NOT_DEFINED_ServiceRequester
00504 # undef USE_stub_in_nt_dll
00505 # undef USE_stub_in_nt_dll_NOT_DEFINED_ServiceRequester
00506 #endif
00507 #ifdef USE_core_stub_in_nt_dll_NOT_DEFINED_ServiceRequester
00508 # undef USE_core_stub_in_nt_dll
00509 # undef USE_core_stub_in_nt_dll_NOT_DEFINED_ServiceRequester
00510 #endif
00511 #ifdef USE_dyn_stub_in_nt_dll_NOT_DEFINED_ServiceRequester
00512 # undef USE_dyn_stub_in_nt_dll
00513 # undef USE_dyn_stub_in_nt_dll_NOT_DEFINED_ServiceRequester
00514 #endif
00515
00516 #endif // __ServiceRequester_hh__
00517