2 #ifndef __LogComponent_hh__ 3 #define __LogComponent_hh__ 5 #ifndef __CORBA_H_EXTERNAL_GUARD__ 6 #include <omniORB4/CORBA.h> 9 #ifndef USE_stub_in_nt_dll 10 # define USE_stub_in_nt_dll_NOT_DEFINED_LogComponent 12 #ifndef USE_core_stub_in_nt_dll 13 # define USE_core_stub_in_nt_dll_NOT_DEFINED_LogComponent 15 #ifndef USE_dyn_stub_in_nt_dll 16 # define USE_dyn_stub_in_nt_dll_NOT_DEFINED_LogComponent 21 #ifndef __LogTypes_hh_EXTERNAL_GUARD__ 22 #define __LogTypes_hh_EXTERNAL_GUARD__ 23 #include <LogTypes.hh> 25 #ifndef __commonLogTypes_hh_EXTERNAL_GUARD__ 26 #define __commonLogTypes_hh_EXTERNAL_GUARD__ 27 #include <commonLogTypes.hh> 32 #ifdef USE_stub_in_nt_dll 33 # ifndef USE_core_stub_in_nt_dll 34 # define USE_core_stub_in_nt_dll 36 # ifndef USE_dyn_stub_in_nt_dll 37 # define USE_dyn_stub_in_nt_dll 42 # error "A local CPP macro _core_attr has already been defined." 44 # ifdef USE_core_stub_in_nt_dll 45 # define _core_attr _OMNIORB_NTDLL_IMPORT 52 # error "A local CPP macro _dyn_attr has already been defined." 54 # ifdef USE_dyn_stub_in_nt_dll 55 # define _dyn_attr _OMNIORB_NTDLL_IMPORT 63 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_BADNAME _init_in_decl_( = 1 );
65 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_ALREADYEXISTS _init_in_decl_( = 2 );
67 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_BADCOMPONENTCONFIGURATOR _init_in_decl_( = 3 );
69 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_INTERNALERROR _init_in_decl_( = 4 );
71 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_DISCONNECT_NOTEXISTS _init_in_decl_( = 1 );
73 #ifndef __ComponentConfigurator__ 74 #define __ComponentConfigurator__ 86 static _ptr_type _nil();
87 static _CORBA_Boolean is_nil(_ptr_type);
88 static void release(_ptr_type);
89 static void duplicate(_ptr_type);
90 static void marshalObjRef(_ptr_type, cdrStream&);
91 static _ptr_type unmarshalObjRef(cdrStream&);
94 typedef _CORBA_ObjRef_Var<_objref_ComponentConfigurator, ComponentConfigurator_Helper> ComponentConfigurator_var;
95 typedef _CORBA_ObjRef_OUT_arg<_objref_ComponentConfigurator,ComponentConfigurator_Helper > ComponentConfigurator_out;
104 typedef ComponentConfigurator_var _var_type;
106 static _ptr_type _duplicate(_ptr_type);
107 static _ptr_type _narrow(::CORBA::Object_ptr);
108 static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
110 static _ptr_type _nil();
112 static inline void _marshalObjRef(_ptr_type, cdrStream&);
114 static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
115 omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
117 return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
122 static inline _ptr_type _fromObjRef(omniObjRef* o) {
124 return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
129 static _core_attr
const char* _PD_repoId;
136 public virtual ::CORBA::Object,
137 public virtual omniObjRef
141 void setTagFilter(const ::tag_list_t& tagList);
142 void addTagFilter(const ::tag_list_t& tagList);
143 void removeTagFilter(const ::tag_list_t& tagList);
155 virtual void* _ptrToObjRef(
const char*);
169 virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
170 virtual _CORBA_Boolean is_a(
const char*)
const;
174 public virtual omniServant
179 virtual void setTagFilter(const ::tag_list_t& tagList) = 0;
180 virtual void addTagFilter(const ::tag_list_t& tagList) = 0;
181 virtual void removeTagFilter(const ::tag_list_t& tagList) = 0;
182 virtual void test() = 0;
185 virtual _CORBA_Boolean _dispatch(omniCallHandle&);
188 virtual void* _ptrToInterface(
const char*);
189 virtual const char* _mostDerivedRepoId();
194 _CORBA_GLOBAL_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_ComponentConfigurator;
196 #ifndef __LogCentralComponent__ 197 #define __LogCentralComponent__ 209 static _ptr_type _nil();
210 static _CORBA_Boolean is_nil(_ptr_type);
211 static void release(_ptr_type);
212 static void duplicate(_ptr_type);
213 static void marshalObjRef(_ptr_type, cdrStream&);
214 static _ptr_type unmarshalObjRef(cdrStream&);
217 typedef _CORBA_ObjRef_Var<_objref_LogCentralComponent, LogCentralComponent_Helper> LogCentralComponent_var;
218 typedef _CORBA_ObjRef_OUT_arg<_objref_LogCentralComponent,LogCentralComponent_Helper > LogCentralComponent_out;
227 typedef LogCentralComponent_var _var_type;
229 static _ptr_type _duplicate(_ptr_type);
230 static _ptr_type _narrow(::CORBA::Object_ptr);
231 static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
233 static _ptr_type _nil();
235 static inline void _marshalObjRef(_ptr_type, cdrStream&);
237 static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
238 omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
240 return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
245 static inline _ptr_type _fromObjRef(omniObjRef* o) {
247 return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
252 static _core_attr
const char* _PD_repoId;
259 public virtual ::CORBA::Object,
260 public virtual omniObjRef
265 ::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);
266 ::CORBA::Short disconnectComponent(
const char* componentName,
const char* message);
267 void sendBuffer(const ::log_msg_buf_t& buffer);
268 void ping(
const char* componentName);
269 void synchronize(
const char* componentName, const ::log_time_t& componentTime);
280 virtual void* _ptrToObjRef(
const char*);
294 virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
295 virtual _CORBA_Boolean is_a(
const char*)
const;
299 public virtual omniServant
304 virtual void test() = 0;
305 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;
306 virtual ::CORBA::Short disconnectComponent(
const char* componentName,
const char* message) = 0;
307 virtual void sendBuffer(const ::log_msg_buf_t& buffer) = 0;
308 virtual void ping(
const char* componentName) = 0;
309 virtual void synchronize(
const char* componentName, const ::log_time_t& componentTime) = 0;
312 virtual _CORBA_Boolean _dispatch(omniCallHandle&);
315 virtual void* _ptrToInterface(
const char*);
316 virtual const char* _mostDerivedRepoId();
321 _CORBA_GLOBAL_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_LogCentralComponent;
327 public virtual ::PortableServer::ServantBase
332 inline ::ComponentConfigurator_ptr _this() {
337 template <
class _omniT>
342 : pd_obj(&t), pd_poa(0), pd_rel(0) {}
344 : pd_obj(&t), pd_poa(p), pd_rel(0) {}
346 : pd_obj(t), pd_poa(0), pd_rel(r) {}
348 : pd_obj(t), pd_poa(p), pd_rel(r) {}
350 if (pd_poa) ::CORBA::release(pd_poa);
351 if (pd_rel)
delete pd_obj;
354 _omniT* _tied_object() {
return pd_obj; }
356 void _tied_object(_omniT& t) {
357 if (pd_rel)
delete pd_obj;
362 void _tied_object(_omniT* t, _CORBA_Boolean r=1) {
363 if (pd_rel)
delete pd_obj;
368 _CORBA_Boolean _is_owner() {
return pd_rel; }
369 void _is_owner(_CORBA_Boolean io) { pd_rel = io; }
371 ::PortableServer::POA_ptr _default_POA() {
372 if (!pd_poa) return ::PortableServer::POA::_the_root_poa();
373 else return ::PortableServer::POA::_duplicate(pd_poa);
376 void setTagFilter(
const tag_list_t& tagList) { pd_obj->setTagFilter(tagList); }
377 void addTagFilter(
const tag_list_t& tagList) { pd_obj->addTagFilter(tagList); }
378 void removeTagFilter(
const tag_list_t& tagList) { pd_obj->removeTagFilter(tagList); }
379 void test() { pd_obj->test(); }
384 ::PortableServer::POA_ptr pd_poa;
385 _CORBA_Boolean pd_rel;
390 public virtual ::PortableServer::ServantBase
395 inline ::LogCentralComponent_ptr _this() {
400 template <
class _omniT>
405 : pd_obj(&t), pd_poa(0), pd_rel(0) {}
407 : pd_obj(&t), pd_poa(p), pd_rel(0) {}
409 : pd_obj(t), pd_poa(0), pd_rel(r) {}
411 : pd_obj(t), pd_poa(p), pd_rel(r) {}
413 if (pd_poa) ::CORBA::release(pd_poa);
414 if (pd_rel)
delete pd_obj;
417 _omniT* _tied_object() {
return pd_obj; }
419 void _tied_object(_omniT& t) {
420 if (pd_rel)
delete pd_obj;
425 void _tied_object(_omniT* t, _CORBA_Boolean r=1) {
426 if (pd_rel)
delete pd_obj;
431 _CORBA_Boolean _is_owner() {
return pd_rel; }
432 void _is_owner(_CORBA_Boolean io) { pd_rel = io; }
434 ::PortableServer::POA_ptr _default_POA() {
435 if (!pd_poa) return ::PortableServer::POA::_the_root_poa();
436 else return ::PortableServer::POA::_duplicate(pd_poa);
439 void test() { pd_obj->test(); }
440 ::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); }
441 ::CORBA::Short disconnectComponent(
const char* componentName,
const char* message) {
return pd_obj->disconnectComponent(componentName, message); }
442 void sendBuffer(
const log_msg_buf_t& buffer) { pd_obj->sendBuffer(buffer); }
443 void ping(
const char* componentName) { pd_obj->ping(componentName); }
444 void synchronize(
const char* componentName,
const log_time_t& componentTime) { pd_obj->synchronize(componentName, componentTime); }
449 ::PortableServer::POA_ptr pd_poa;
450 _CORBA_Boolean pd_rel;
474 omniObjRef::_marshal(obj->_PR_getobj(),s);
479 omniObjRef::_marshal(obj->_PR_getobj(),s);
484 #ifdef USE_stub_in_nt_dll_NOT_DEFINED_LogComponent 485 # undef USE_stub_in_nt_dll 486 # undef USE_stub_in_nt_dll_NOT_DEFINED_LogComponent 488 #ifdef USE_core_stub_in_nt_dll_NOT_DEFINED_LogComponent 489 # undef USE_core_stub_in_nt_dll 490 # undef USE_core_stub_in_nt_dll_NOT_DEFINED_LogComponent 492 #ifdef USE_dyn_stub_in_nt_dll_NOT_DEFINED_LogComponent 493 # undef USE_dyn_stub_in_nt_dll 494 # undef USE_dyn_stub_in_nt_dll_NOT_DEFINED_LogComponent 497 #endif // __LogComponent_hh__ Definition: LogComponent.hh:401
Definition: LogComponent.hh:289
Definition: LogComponent.hh:173
Definition: LogComponent.hh:135
Definition: LogComponent.hh:100
Definition: LogComponent.hh:325
Definition: LogTypes.hh:57
Definition: LogTypes.hh:107
Definition: LogComponent.hh:338
Definition: LogComponent.hh:223
Definition: LogTypes.hh:221
Definition: LogComponent.hh:82
Definition: LogComponent.hh:164
Definition: LogComponent.hh:388
Definition: LogComponent.hh:298
Definition: LogComponent.hh:205
Definition: LogComponent.hh:258