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