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
65 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_BADNAME _init_in_decl_( = 1 );
67 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_ALREADYEXISTS _init_in_decl_( = 2 );
69 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_BADCOMPONENTCONFIGURATOR _init_in_decl_( = 3 );
71 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_INTERNALERROR _init_in_decl_( = 4 );
73 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_DISCONNECT_NOTEXISTS _init_in_decl_( = 1 );
75 #ifndef __ComponentConfigurator__
76 #define __ComponentConfigurator__
93 static void marshalObjRef(
_ptr_type, cdrStream&);
94 static _ptr_type unmarshalObjRef(cdrStream&);
97 typedef _CORBA_ObjRef_Var<_objref_ComponentConfigurator, ComponentConfigurator_Helper> ComponentConfigurator_var;
98 typedef _CORBA_ObjRef_OUT_arg<_objref_ComponentConfigurator,ComponentConfigurator_Helper > ComponentConfigurator_out;
107 typedef ComponentConfigurator_var _var_type;
110 static _ptr_type _narrow(::CORBA::Object_ptr);
111 static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
115 static inline void _marshalObjRef(
_ptr_type, cdrStream&);
117 static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
118 omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
120 return (
_ptr_type) o->_ptrToObjRef(_PD_repoId);
125 static _core_attr
const char* _PD_repoId;
132 public virtual ::CORBA::Object,
133 public virtual omniObjRef
136 void setTagFilter(const ::tag_list_t& tagList);
137 void addTagFilter(const ::tag_list_t& tagList);
138 void removeTagFilter(const ::tag_list_t& tagList);
149 virtual void* _ptrToObjRef(
const char*);
163 virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
164 virtual _CORBA_Boolean is_a(
const char*)
const;
168 public virtual omniServant
173 virtual void setTagFilter(const ::tag_list_t& tagList) = 0;
174 virtual void addTagFilter(const ::tag_list_t& tagList) = 0;
175 virtual void removeTagFilter(const ::tag_list_t& tagList) = 0;
176 virtual void test() = 0;
179 virtual _CORBA_Boolean _dispatch(omniCallHandle&);
182 virtual void* _ptrToInterface(
const char*);
183 virtual const char* _mostDerivedRepoId();
188 _CORBA_GLOBAL_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_ComponentConfigurator;
190 #ifndef __LogCentralComponent__
191 #define __LogCentralComponent__
208 static void marshalObjRef(
_ptr_type, cdrStream&);
209 static _ptr_type unmarshalObjRef(cdrStream&);
212 typedef _CORBA_ObjRef_Var<_objref_LogCentralComponent, LogCentralComponent_Helper> LogCentralComponent_var;
213 typedef _CORBA_ObjRef_OUT_arg<_objref_LogCentralComponent,LogCentralComponent_Helper > LogCentralComponent_out;
222 typedef LogCentralComponent_var _var_type;
225 static _ptr_type _narrow(::CORBA::Object_ptr);
226 static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
230 static inline void _marshalObjRef(
_ptr_type, cdrStream&);
232 static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
233 omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
235 return (
_ptr_type) o->_ptrToObjRef(_PD_repoId);
240 static _core_attr
const char* _PD_repoId;
247 public virtual ::CORBA::Object,
248 public virtual omniObjRef
252 ::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);
253 ::CORBA::Short disconnectComponent(
const char* componentName,
const char* message);
254 void sendBuffer(const ::log_msg_buf_t& buffer);
255 void ping(
const char* componentName);
256 void synchronize(
const char* componentName, const ::log_time_t& componentTime);
266 virtual void* _ptrToObjRef(
const char*);
280 virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
281 virtual _CORBA_Boolean is_a(
const char*)
const;
285 public virtual omniServant
290 virtual void test() = 0;
291 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;
292 virtual ::CORBA::Short disconnectComponent(
const char* componentName,
const char* message) = 0;
293 virtual void sendBuffer(const ::log_msg_buf_t& buffer) = 0;
294 virtual void ping(
const char* componentName) = 0;
295 virtual void synchronize(
const char* componentName, const ::log_time_t& componentTime) = 0;
298 virtual _CORBA_Boolean _dispatch(omniCallHandle&);
301 virtual void* _ptrToInterface(
const char*);
302 virtual const char* _mostDerivedRepoId();
307 _CORBA_GLOBAL_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_LogCentralComponent;
313 public virtual ::PortableServer::ServantBase
318 inline ::ComponentConfigurator_ptr _this() {
323 template <
class _omniT>
328 : pd_obj(&t), pd_poa(0), pd_rel(0) {}
330 : pd_obj(&t), pd_poa(p), pd_rel(0) {}
332 : pd_obj(t), pd_poa(0), pd_rel(r) {}
334 : pd_obj(t), pd_poa(p), pd_rel(r) {}
336 if( pd_poa ) ::CORBA::release(pd_poa);
337 if( pd_rel )
delete pd_obj;
340 _omniT* _tied_object() {
return pd_obj; }
342 void _tied_object(_omniT& t) {
343 if( pd_rel )
delete pd_obj;
348 void _tied_object(_omniT* t, _CORBA_Boolean r=1) {
349 if( pd_rel )
delete pd_obj;
354 _CORBA_Boolean _is_owner() {
return pd_rel; }
355 void _is_owner(_CORBA_Boolean io) { pd_rel = io; }
357 ::PortableServer::POA_ptr _default_POA() {
358 if( !pd_poa ) return ::PortableServer::POA::_the_root_poa();
359 else return ::PortableServer::POA::_duplicate(pd_poa);
362 void setTagFilter(
const tag_list_t& tagList) { pd_obj->setTagFilter(tagList); }
363 void addTagFilter(
const tag_list_t& tagList) { pd_obj->addTagFilter(tagList); }
364 void removeTagFilter(
const tag_list_t& tagList) { pd_obj->removeTagFilter(tagList); }
365 void test() { pd_obj->test(); }
370 ::PortableServer::POA_ptr pd_poa;
371 _CORBA_Boolean pd_rel;
376 public virtual ::PortableServer::ServantBase
381 inline ::LogCentralComponent_ptr _this() {
386 template <
class _omniT>
391 : pd_obj(&t), pd_poa(0), pd_rel(0) {}
393 : pd_obj(&t), pd_poa(p), pd_rel(0) {}
395 : pd_obj(t), pd_poa(0), pd_rel(r) {}
397 : pd_obj(t), pd_poa(p), pd_rel(r) {}
399 if( pd_poa ) ::CORBA::release(pd_poa);
400 if( pd_rel )
delete pd_obj;
403 _omniT* _tied_object() {
return pd_obj; }
405 void _tied_object(_omniT& t) {
406 if( pd_rel )
delete pd_obj;
411 void _tied_object(_omniT* t, _CORBA_Boolean r=1) {
412 if( pd_rel )
delete pd_obj;
417 _CORBA_Boolean _is_owner() {
return pd_rel; }
418 void _is_owner(_CORBA_Boolean io) { pd_rel = io; }
420 ::PortableServer::POA_ptr _default_POA() {
421 if( !pd_poa ) return ::PortableServer::POA::_the_root_poa();
422 else return ::PortableServer::POA::_duplicate(pd_poa);
425 void test() { pd_obj->test(); }
426 ::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); }
427 ::CORBA::Short disconnectComponent(
const char* componentName,
const char* message) {
return pd_obj->disconnectComponent(componentName, message); }
428 void sendBuffer(
const log_msg_buf_t& buffer) { pd_obj->sendBuffer(buffer); }
429 void ping(
const char* componentName) { pd_obj->ping(componentName); }
430 void synchronize(
const char* componentName,
const log_time_t& componentTime) { pd_obj->synchronize(componentName, componentTime); }
435 ::PortableServer::POA_ptr pd_poa;
436 _CORBA_Boolean pd_rel;
460 omniObjRef::_marshal(obj->_PR_getobj(),s);
466 omniObjRef::_marshal(obj->_PR_getobj(),s);
472 #ifdef USE_stub_in_nt_dll_NOT_DEFINED_LogComponent
473 # undef USE_stub_in_nt_dll
474 # undef USE_stub_in_nt_dll_NOT_DEFINED_LogComponent
476 #ifdef USE_core_stub_in_nt_dll_NOT_DEFINED_LogComponent
477 # undef USE_core_stub_in_nt_dll
478 # undef USE_core_stub_in_nt_dll_NOT_DEFINED_LogComponent
480 #ifdef USE_dyn_stub_in_nt_dll_NOT_DEFINED_LogComponent
481 # undef USE_dyn_stub_in_nt_dll
482 # undef USE_dyn_stub_in_nt_dll_NOT_DEFINED_LogComponent
485 #endif // __LogComponent_hh__