LogService
libdadi: utility tools for distributed applications
|
00001 // This file is generated by omniidl (C++ backend)- omniORB_4_1. Do not edit. 00002 #ifndef __LogComponent_hh__ 00003 #define __LogComponent_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_LogComponent 00011 #endif 00012 #ifndef USE_core_stub_in_nt_dll 00013 # define USE_core_stub_in_nt_dll_NOT_DEFINED_LogComponent 00014 #endif 00015 #ifndef USE_dyn_stub_in_nt_dll 00016 # define USE_dyn_stub_in_nt_dll_NOT_DEFINED_LogComponent 00017 #endif 00018 00019 00020 00021 #ifndef __LogTypes_hh_EXTERNAL_GUARD__ 00022 #define __LogTypes_hh_EXTERNAL_GUARD__ 00023 #include <LogTypes.hh> 00024 #endif 00025 #ifndef __commonLogTypes_hh_EXTERNAL_GUARD__ 00026 #define __commonLogTypes_hh_EXTERNAL_GUARD__ 00027 #include <commonLogTypes.hh> 00028 #endif 00029 00030 00031 00032 #ifdef USE_stub_in_nt_dll 00033 # ifndef USE_core_stub_in_nt_dll 00034 # define USE_core_stub_in_nt_dll 00035 # endif 00036 # ifndef USE_dyn_stub_in_nt_dll 00037 # define USE_dyn_stub_in_nt_dll 00038 # endif 00039 #endif 00040 00041 #ifdef _core_attr 00042 # error "A local CPP macro _core_attr has already been defined." 00043 #else 00044 # ifdef USE_core_stub_in_nt_dll 00045 # define _core_attr _OMNIORB_NTDLL_IMPORT 00046 # else 00047 # define _core_attr 00048 # endif 00049 #endif 00050 00051 #ifdef _dyn_attr 00052 # error "A local CPP macro _dyn_attr has already been defined." 00053 #else 00054 # ifdef USE_dyn_stub_in_nt_dll 00055 # define _dyn_attr _OMNIORB_NTDLL_IMPORT 00056 # else 00057 # define _dyn_attr 00058 # endif 00059 #endif 00060 00061 00062 00063 00064 00065 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_BADNAME _init_in_decl_( = 1 ); 00066 00067 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_ALREADYEXISTS _init_in_decl_( = 2 ); 00068 00069 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_BADCOMPONENTCONFIGURATOR _init_in_decl_( = 3 ); 00070 00071 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_INTERNALERROR _init_in_decl_( = 4 ); 00072 00073 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_DISCONNECT_NOTEXISTS _init_in_decl_( = 1 ); 00074 00075 #ifndef __ComponentConfigurator__ 00076 #define __ComponentConfigurator__ 00077 00078 class ComponentConfigurator; 00079 class _objref_ComponentConfigurator; 00080 class _impl_ComponentConfigurator; 00081 00082 typedef _objref_ComponentConfigurator* ComponentConfigurator_ptr; 00083 typedef ComponentConfigurator_ptr ComponentConfiguratorRef; 00084 00085 class ComponentConfigurator_Helper { 00086 public: 00087 typedef ComponentConfigurator_ptr _ptr_type; 00088 00089 static _ptr_type _nil(); 00090 static _CORBA_Boolean is_nil(_ptr_type); 00091 static void release(_ptr_type); 00092 static void duplicate(_ptr_type); 00093 static void marshalObjRef(_ptr_type, cdrStream&); 00094 static _ptr_type unmarshalObjRef(cdrStream&); 00095 }; 00096 00097 typedef _CORBA_ObjRef_Var<_objref_ComponentConfigurator, ComponentConfigurator_Helper> ComponentConfigurator_var; 00098 typedef _CORBA_ObjRef_OUT_arg<_objref_ComponentConfigurator,ComponentConfigurator_Helper > ComponentConfigurator_out; 00099 00100 #endif 00101 00102 // interface ComponentConfigurator 00103 class ComponentConfigurator { 00104 public: 00105 // Declarations for this interface type. 00106 typedef ComponentConfigurator_ptr _ptr_type; 00107 typedef ComponentConfigurator_var _var_type; 00108 00109 static _ptr_type _duplicate(_ptr_type); 00110 static _ptr_type _narrow(::CORBA::Object_ptr); 00111 static _ptr_type _unchecked_narrow(::CORBA::Object_ptr); 00112 00113 static _ptr_type _nil(); 00114 00115 static inline void _marshalObjRef(_ptr_type, cdrStream&); 00116 00117 static inline _ptr_type _unmarshalObjRef(cdrStream& s) { 00118 omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s); 00119 if (o) 00120 return (_ptr_type) o->_ptrToObjRef(_PD_repoId); 00121 else 00122 return _nil(); 00123 } 00124 00125 static _core_attr const char* _PD_repoId; 00126 00127 // Other IDL defined within this scope. 00128 00129 }; 00130 00131 class _objref_ComponentConfigurator : 00132 public virtual ::CORBA::Object, 00133 public virtual omniObjRef 00134 { 00135 public: 00136 void setTagFilter(const ::tag_list_t& tagList); 00137 void addTagFilter(const ::tag_list_t& tagList); 00138 void removeTagFilter(const ::tag_list_t& tagList); 00139 void test(); 00140 00141 inline _objref_ComponentConfigurator() { _PR_setobj(0); } // nil 00142 _objref_ComponentConfigurator(omniIOR*, omniIdentity*); 00143 00144 protected: 00145 virtual ~_objref_ComponentConfigurator(); 00146 00147 00148 private: 00149 virtual void* _ptrToObjRef(const char*); 00150 00151 _objref_ComponentConfigurator(const _objref_ComponentConfigurator&); 00152 _objref_ComponentConfigurator& operator = (const _objref_ComponentConfigurator&); 00153 // not implemented 00154 00155 friend class ComponentConfigurator; 00156 }; 00157 00158 class _pof_ComponentConfigurator : public _OMNI_NS(proxyObjectFactory) { 00159 public: 00160 inline _pof_ComponentConfigurator() : _OMNI_NS(proxyObjectFactory)(ComponentConfigurator::_PD_repoId) {} 00161 virtual ~_pof_ComponentConfigurator(); 00162 00163 virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*); 00164 virtual _CORBA_Boolean is_a(const char*) const; 00165 }; 00166 00167 class _impl_ComponentConfigurator : 00168 public virtual omniServant 00169 { 00170 public: 00171 virtual ~_impl_ComponentConfigurator(); 00172 00173 virtual void setTagFilter(const ::tag_list_t& tagList) = 0; 00174 virtual void addTagFilter(const ::tag_list_t& tagList) = 0; 00175 virtual void removeTagFilter(const ::tag_list_t& tagList) = 0; 00176 virtual void test() = 0; 00177 00178 public: // Really protected, workaround for xlC 00179 virtual _CORBA_Boolean _dispatch(omniCallHandle&); 00180 00181 private: 00182 virtual void* _ptrToInterface(const char*); 00183 virtual const char* _mostDerivedRepoId(); 00184 00185 }; 00186 00187 00188 _CORBA_GLOBAL_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_ComponentConfigurator; 00189 00190 #ifndef __LogCentralComponent__ 00191 #define __LogCentralComponent__ 00192 00193 class LogCentralComponent; 00194 class _objref_LogCentralComponent; 00195 class _impl_LogCentralComponent; 00196 00197 typedef _objref_LogCentralComponent* LogCentralComponent_ptr; 00198 typedef LogCentralComponent_ptr LogCentralComponentRef; 00199 00200 class LogCentralComponent_Helper { 00201 public: 00202 typedef LogCentralComponent_ptr _ptr_type; 00203 00204 static _ptr_type _nil(); 00205 static _CORBA_Boolean is_nil(_ptr_type); 00206 static void release(_ptr_type); 00207 static void duplicate(_ptr_type); 00208 static void marshalObjRef(_ptr_type, cdrStream&); 00209 static _ptr_type unmarshalObjRef(cdrStream&); 00210 }; 00211 00212 typedef _CORBA_ObjRef_Var<_objref_LogCentralComponent, LogCentralComponent_Helper> LogCentralComponent_var; 00213 typedef _CORBA_ObjRef_OUT_arg<_objref_LogCentralComponent,LogCentralComponent_Helper > LogCentralComponent_out; 00214 00215 #endif 00216 00217 // interface LogCentralComponent 00218 class LogCentralComponent { 00219 public: 00220 // Declarations for this interface type. 00221 typedef LogCentralComponent_ptr _ptr_type; 00222 typedef LogCentralComponent_var _var_type; 00223 00224 static _ptr_type _duplicate(_ptr_type); 00225 static _ptr_type _narrow(::CORBA::Object_ptr); 00226 static _ptr_type _unchecked_narrow(::CORBA::Object_ptr); 00227 00228 static _ptr_type _nil(); 00229 00230 static inline void _marshalObjRef(_ptr_type, cdrStream&); 00231 00232 static inline _ptr_type _unmarshalObjRef(cdrStream& s) { 00233 omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s); 00234 if (o) 00235 return (_ptr_type) o->_ptrToObjRef(_PD_repoId); 00236 else 00237 return _nil(); 00238 } 00239 00240 static _core_attr const char* _PD_repoId; 00241 00242 // Other IDL defined within this scope. 00243 00244 }; 00245 00246 class _objref_LogCentralComponent : 00247 public virtual ::CORBA::Object, 00248 public virtual omniObjRef 00249 { 00250 public: 00251 void test(); 00252 ::CORBA::Short connectComponent(::CORBA::String_INOUT_arg componentName, const char* componentHostname, const char* message, const char* compConfigurator, const ::log_time_t& componentTime, ::tag_list_t& initialConfig); 00253 ::CORBA::Short disconnectComponent(const char* componentName, const char* message); 00254 void sendBuffer(const ::log_msg_buf_t& buffer); 00255 void ping(const char* componentName); 00256 void synchronize(const char* componentName, const ::log_time_t& componentTime); 00257 00258 inline _objref_LogCentralComponent() { _PR_setobj(0); } // nil 00259 _objref_LogCentralComponent(omniIOR*, omniIdentity*); 00260 00261 protected: 00262 virtual ~_objref_LogCentralComponent(); 00263 00264 00265 private: 00266 virtual void* _ptrToObjRef(const char*); 00267 00268 _objref_LogCentralComponent(const _objref_LogCentralComponent&); 00269 _objref_LogCentralComponent& operator = (const _objref_LogCentralComponent&); 00270 // not implemented 00271 00272 friend class LogCentralComponent; 00273 }; 00274 00275 class _pof_LogCentralComponent : public _OMNI_NS(proxyObjectFactory) { 00276 public: 00277 inline _pof_LogCentralComponent() : _OMNI_NS(proxyObjectFactory)(LogCentralComponent::_PD_repoId) {} 00278 virtual ~_pof_LogCentralComponent(); 00279 00280 virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*); 00281 virtual _CORBA_Boolean is_a(const char*) const; 00282 }; 00283 00284 class _impl_LogCentralComponent : 00285 public virtual omniServant 00286 { 00287 public: 00288 virtual ~_impl_LogCentralComponent(); 00289 00290 virtual void test() = 0; 00291 virtual ::CORBA::Short connectComponent(char*& componentName, const char* componentHostname, const char* message, const char* compConfigurator, const ::log_time_t& componentTime, ::tag_list_t& initialConfig) = 0; 00292 virtual ::CORBA::Short disconnectComponent(const char* componentName, const char* message) = 0; 00293 virtual void sendBuffer(const ::log_msg_buf_t& buffer) = 0; 00294 virtual void ping(const char* componentName) = 0; 00295 virtual void synchronize(const char* componentName, const ::log_time_t& componentTime) = 0; 00296 00297 public: // Really protected, workaround for xlC 00298 virtual _CORBA_Boolean _dispatch(omniCallHandle&); 00299 00300 private: 00301 virtual void* _ptrToInterface(const char*); 00302 virtual const char* _mostDerivedRepoId(); 00303 00304 }; 00305 00306 00307 _CORBA_GLOBAL_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_LogCentralComponent; 00308 00309 00310 00311 class POA_ComponentConfigurator : 00312 public virtual _impl_ComponentConfigurator, 00313 public virtual ::PortableServer::ServantBase 00314 { 00315 public: 00316 virtual ~POA_ComponentConfigurator(); 00317 00318 inline ::ComponentConfigurator_ptr _this() { 00319 return (::ComponentConfigurator_ptr) _do_this(::ComponentConfigurator::_PD_repoId); 00320 } 00321 }; 00322 00323 template <class _omniT> 00324 class POA_ComponentConfigurator_tie : public virtual POA_ComponentConfigurator 00325 { 00326 public: 00327 POA_ComponentConfigurator_tie(_omniT& t) 00328 : pd_obj(&t), pd_poa(0), pd_rel(0) {} 00329 POA_ComponentConfigurator_tie(_omniT& t, ::PortableServer::POA_ptr p) 00330 : pd_obj(&t), pd_poa(p), pd_rel(0) {} 00331 POA_ComponentConfigurator_tie(_omniT* t, _CORBA_Boolean r=1) 00332 : pd_obj(t), pd_poa(0), pd_rel(r) {} 00333 POA_ComponentConfigurator_tie(_omniT* t, ::PortableServer::POA_ptr p,_CORBA_Boolean r=1) 00334 : pd_obj(t), pd_poa(p), pd_rel(r) {} 00335 ~POA_ComponentConfigurator_tie() { 00336 if( pd_poa ) ::CORBA::release(pd_poa); 00337 if( pd_rel ) delete pd_obj; 00338 } 00339 00340 _omniT* _tied_object() { return pd_obj; } 00341 00342 void _tied_object(_omniT& t) { 00343 if( pd_rel ) delete pd_obj; 00344 pd_obj = &t; 00345 pd_rel = 0; 00346 } 00347 00348 void _tied_object(_omniT* t, _CORBA_Boolean r=1) { 00349 if( pd_rel ) delete pd_obj; 00350 pd_obj = t; 00351 pd_rel = r; 00352 } 00353 00354 _CORBA_Boolean _is_owner() { return pd_rel; } 00355 void _is_owner(_CORBA_Boolean io) { pd_rel = io; } 00356 00357 ::PortableServer::POA_ptr _default_POA() { 00358 if( !pd_poa ) return ::PortableServer::POA::_the_root_poa(); 00359 else return ::PortableServer::POA::_duplicate(pd_poa); 00360 } 00361 00362 void setTagFilter(const tag_list_t& tagList) { pd_obj->setTagFilter(tagList); } 00363 void addTagFilter(const tag_list_t& tagList) { pd_obj->addTagFilter(tagList); } 00364 void removeTagFilter(const tag_list_t& tagList) { pd_obj->removeTagFilter(tagList); } 00365 void test() { pd_obj->test(); } 00366 00367 00368 private: 00369 _omniT* pd_obj; 00370 ::PortableServer::POA_ptr pd_poa; 00371 _CORBA_Boolean pd_rel; 00372 }; 00373 00374 class POA_LogCentralComponent : 00375 public virtual _impl_LogCentralComponent, 00376 public virtual ::PortableServer::ServantBase 00377 { 00378 public: 00379 virtual ~POA_LogCentralComponent(); 00380 00381 inline ::LogCentralComponent_ptr _this() { 00382 return (::LogCentralComponent_ptr) _do_this(::LogCentralComponent::_PD_repoId); 00383 } 00384 }; 00385 00386 template <class _omniT> 00387 class POA_LogCentralComponent_tie : public virtual POA_LogCentralComponent 00388 { 00389 public: 00390 POA_LogCentralComponent_tie(_omniT& t) 00391 : pd_obj(&t), pd_poa(0), pd_rel(0) {} 00392 POA_LogCentralComponent_tie(_omniT& t, ::PortableServer::POA_ptr p) 00393 : pd_obj(&t), pd_poa(p), pd_rel(0) {} 00394 POA_LogCentralComponent_tie(_omniT* t, _CORBA_Boolean r=1) 00395 : pd_obj(t), pd_poa(0), pd_rel(r) {} 00396 POA_LogCentralComponent_tie(_omniT* t, ::PortableServer::POA_ptr p,_CORBA_Boolean r=1) 00397 : pd_obj(t), pd_poa(p), pd_rel(r) {} 00398 ~POA_LogCentralComponent_tie() { 00399 if( pd_poa ) ::CORBA::release(pd_poa); 00400 if( pd_rel ) delete pd_obj; 00401 } 00402 00403 _omniT* _tied_object() { return pd_obj; } 00404 00405 void _tied_object(_omniT& t) { 00406 if( pd_rel ) delete pd_obj; 00407 pd_obj = &t; 00408 pd_rel = 0; 00409 } 00410 00411 void _tied_object(_omniT* t, _CORBA_Boolean r=1) { 00412 if( pd_rel ) delete pd_obj; 00413 pd_obj = t; 00414 pd_rel = r; 00415 } 00416 00417 _CORBA_Boolean _is_owner() { return pd_rel; } 00418 void _is_owner(_CORBA_Boolean io) { pd_rel = io; } 00419 00420 ::PortableServer::POA_ptr _default_POA() { 00421 if( !pd_poa ) return ::PortableServer::POA::_the_root_poa(); 00422 else return ::PortableServer::POA::_duplicate(pd_poa); 00423 } 00424 00425 void test() { pd_obj->test(); } 00426 ::CORBA::Short connectComponent(char*& componentName, const char* componentHostname, const char* message, const char* compConfigurator, const log_time_t& componentTime, tag_list_t& initialConfig) { return pd_obj->connectComponent(componentName, componentHostname, message, compConfigurator, componentTime, initialConfig); } 00427 ::CORBA::Short disconnectComponent(const char* componentName, const char* message) { return pd_obj->disconnectComponent(componentName, message); } 00428 void sendBuffer(const log_msg_buf_t& buffer) { pd_obj->sendBuffer(buffer); } 00429 void ping(const char* componentName) { pd_obj->ping(componentName); } 00430 void synchronize(const char* componentName, const log_time_t& componentTime) { pd_obj->synchronize(componentName, componentTime); } 00431 00432 00433 private: 00434 _omniT* pd_obj; 00435 ::PortableServer::POA_ptr pd_poa; 00436 _CORBA_Boolean pd_rel; 00437 }; 00438 00439 00440 00441 00442 00443 00444 00445 #undef _core_attr 00446 #undef _dyn_attr 00447 00448 void operator<<=(::CORBA::Any& _a, ComponentConfigurator_ptr _s); 00449 void operator<<=(::CORBA::Any& _a, ComponentConfigurator_ptr* _s); 00450 _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, ComponentConfigurator_ptr& _s); 00451 00452 void operator<<=(::CORBA::Any& _a, LogCentralComponent_ptr _s); 00453 void operator<<=(::CORBA::Any& _a, LogCentralComponent_ptr* _s); 00454 _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, LogCentralComponent_ptr& _s); 00455 00456 00457 00458 inline void 00459 ComponentConfigurator::_marshalObjRef(::ComponentConfigurator_ptr obj, cdrStream& s) { 00460 omniObjRef::_marshal(obj->_PR_getobj(),s); 00461 } 00462 00463 00464 inline void 00465 LogCentralComponent::_marshalObjRef(::LogCentralComponent_ptr obj, cdrStream& s) { 00466 omniObjRef::_marshal(obj->_PR_getobj(),s); 00467 } 00468 00469 00470 00471 00472 #ifdef USE_stub_in_nt_dll_NOT_DEFINED_LogComponent 00473 # undef USE_stub_in_nt_dll 00474 # undef USE_stub_in_nt_dll_NOT_DEFINED_LogComponent 00475 #endif 00476 #ifdef USE_core_stub_in_nt_dll_NOT_DEFINED_LogComponent 00477 # undef USE_core_stub_in_nt_dll 00478 # undef USE_core_stub_in_nt_dll_NOT_DEFINED_LogComponent 00479 #endif 00480 #ifdef USE_dyn_stub_in_nt_dll_NOT_DEFINED_LogComponent 00481 # undef USE_dyn_stub_in_nt_dll 00482 # undef USE_dyn_stub_in_nt_dll_NOT_DEFINED_LogComponent 00483 #endif 00484 00485 #endif // __LogComponent_hh__ 00486