LogService
libdadi: utility tools for distributed applications
 All Classes Functions Variables
LogComponent.hh
1 // This file is generated by omniidl (C++ backend)- omniORB_4_1. Do not edit.
2 #ifndef __LogComponent_hh__
3 #define __LogComponent_hh__
4 
5 #ifndef __CORBA_H_EXTERNAL_GUARD__
6 #include <omniORB4/CORBA.h>
7 #endif
8 
9 #ifndef USE_stub_in_nt_dll
10 # define USE_stub_in_nt_dll_NOT_DEFINED_LogComponent
11 #endif
12 #ifndef USE_core_stub_in_nt_dll
13 # define USE_core_stub_in_nt_dll_NOT_DEFINED_LogComponent
14 #endif
15 #ifndef USE_dyn_stub_in_nt_dll
16 # define USE_dyn_stub_in_nt_dll_NOT_DEFINED_LogComponent
17 #endif
18 
19 
20 
21 #ifndef __LogTypes_hh_EXTERNAL_GUARD__
22 #define __LogTypes_hh_EXTERNAL_GUARD__
23 #include <LogTypes.hh>
24 #endif
25 #ifndef __commonLogTypes_hh_EXTERNAL_GUARD__
26 #define __commonLogTypes_hh_EXTERNAL_GUARD__
27 #include <commonLogTypes.hh>
28 #endif
29 
30 
31 
32 #ifdef USE_stub_in_nt_dll
33 # ifndef USE_core_stub_in_nt_dll
34 # define USE_core_stub_in_nt_dll
35 # endif
36 # ifndef USE_dyn_stub_in_nt_dll
37 # define USE_dyn_stub_in_nt_dll
38 # endif
39 #endif
40 
41 #ifdef _core_attr
42 # error "A local CPP macro _core_attr has already been defined."
43 #else
44 # ifdef USE_core_stub_in_nt_dll
45 # define _core_attr _OMNIORB_NTDLL_IMPORT
46 # else
47 # define _core_attr
48 # endif
49 #endif
50 
51 #ifdef _dyn_attr
52 # error "A local CPP macro _dyn_attr has already been defined."
53 #else
54 # ifdef USE_dyn_stub_in_nt_dll
55 # define _dyn_attr _OMNIORB_NTDLL_IMPORT
56 # else
57 # define _dyn_attr
58 # endif
59 #endif
60 
61 
62 
63 
64 
65 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_BADNAME _init_in_decl_( = 1 );
66 
67 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_ALREADYEXISTS _init_in_decl_( = 2 );
68 
69 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_BADCOMPONENTCONFIGURATOR _init_in_decl_( = 3 );
70 
71 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_INTERNALERROR _init_in_decl_( = 4 );
72 
73 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_DISCONNECT_NOTEXISTS _init_in_decl_( = 1 );
74 
75 #ifndef __ComponentConfigurator__
76 #define __ComponentConfigurator__
77 
81 
84 
86 public:
88 
89  static _ptr_type _nil();
90  static _CORBA_Boolean is_nil(_ptr_type);
91  static void release(_ptr_type);
92  static void duplicate(_ptr_type);
93  static void marshalObjRef(_ptr_type, cdrStream&);
94  static _ptr_type unmarshalObjRef(cdrStream&);
95 };
96 
97 typedef _CORBA_ObjRef_Var<_objref_ComponentConfigurator, ComponentConfigurator_Helper> ComponentConfigurator_var;
98 typedef _CORBA_ObjRef_OUT_arg<_objref_ComponentConfigurator,ComponentConfigurator_Helper > ComponentConfigurator_out;
99 
100 #endif
101 
102 // interface ComponentConfigurator
104 public:
105  // Declarations for this interface type.
107  typedef ComponentConfigurator_var _var_type;
108 
109  static _ptr_type _duplicate(_ptr_type);
110  static _ptr_type _narrow(::CORBA::Object_ptr);
111  static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
112 
113  static _ptr_type _nil();
114 
115  static inline void _marshalObjRef(_ptr_type, cdrStream&);
116 
117  static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
118  omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
119  if (o)
120  return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
121  else
122  return _nil();
123  }
124 
125  static _core_attr const char* _PD_repoId;
126 
127  // Other IDL defined within this scope.
128 
129 };
130 
132  public virtual ::CORBA::Object,
133  public virtual omniObjRef
134 {
135 public:
136  void setTagFilter(const ::tag_list_t& tagList);
137  void addTagFilter(const ::tag_list_t& tagList);
138  void removeTagFilter(const ::tag_list_t& tagList);
139  void test();
140 
141  inline _objref_ComponentConfigurator() { _PR_setobj(0); } // nil
142  _objref_ComponentConfigurator(omniIOR*, omniIdentity*);
143 
144 protected:
146 
147 
148 private:
149  virtual void* _ptrToObjRef(const char*);
150 
153  // not implemented
154 
155  friend class ComponentConfigurator;
156 };
157 
158 class _pof_ComponentConfigurator : public _OMNI_NS(proxyObjectFactory) {
159 public:
160  inline _pof_ComponentConfigurator() : _OMNI_NS(proxyObjectFactory)(ComponentConfigurator::_PD_repoId) {}
161  virtual ~_pof_ComponentConfigurator();
162 
163  virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
164  virtual _CORBA_Boolean is_a(const char*) const;
165 };
166 
168  public virtual omniServant
169 {
170 public:
171  virtual ~_impl_ComponentConfigurator();
172 
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;
177 
178 public: // Really protected, workaround for xlC
179  virtual _CORBA_Boolean _dispatch(omniCallHandle&);
180 
181 private:
182  virtual void* _ptrToInterface(const char*);
183  virtual const char* _mostDerivedRepoId();
184 
185 };
186 
187 
188 _CORBA_GLOBAL_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_ComponentConfigurator;
189 
190 #ifndef __LogCentralComponent__
191 #define __LogCentralComponent__
192 
193 class LogCentralComponent;
196 
199 
201 public:
203 
204  static _ptr_type _nil();
205  static _CORBA_Boolean is_nil(_ptr_type);
206  static void release(_ptr_type);
207  static void duplicate(_ptr_type);
208  static void marshalObjRef(_ptr_type, cdrStream&);
209  static _ptr_type unmarshalObjRef(cdrStream&);
210 };
211 
212 typedef _CORBA_ObjRef_Var<_objref_LogCentralComponent, LogCentralComponent_Helper> LogCentralComponent_var;
213 typedef _CORBA_ObjRef_OUT_arg<_objref_LogCentralComponent,LogCentralComponent_Helper > LogCentralComponent_out;
214 
215 #endif
216 
217 // interface LogCentralComponent
219 public:
220  // Declarations for this interface type.
222  typedef LogCentralComponent_var _var_type;
223 
224  static _ptr_type _duplicate(_ptr_type);
225  static _ptr_type _narrow(::CORBA::Object_ptr);
226  static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
227 
228  static _ptr_type _nil();
229 
230  static inline void _marshalObjRef(_ptr_type, cdrStream&);
231 
232  static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
233  omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
234  if (o)
235  return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
236  else
237  return _nil();
238  }
239 
240  static _core_attr const char* _PD_repoId;
241 
242  // Other IDL defined within this scope.
243 
244 };
245 
247  public virtual ::CORBA::Object,
248  public virtual omniObjRef
249 {
250 public:
251  void test();
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);
257 
258  inline _objref_LogCentralComponent() { _PR_setobj(0); } // nil
259  _objref_LogCentralComponent(omniIOR*, omniIdentity*);
260 
261 protected:
262  virtual ~_objref_LogCentralComponent();
263 
264 
265 private:
266  virtual void* _ptrToObjRef(const char*);
267 
270  // not implemented
271 
272  friend class LogCentralComponent;
273 };
274 
275 class _pof_LogCentralComponent : public _OMNI_NS(proxyObjectFactory) {
276 public:
277  inline _pof_LogCentralComponent() : _OMNI_NS(proxyObjectFactory)(LogCentralComponent::_PD_repoId) {}
278  virtual ~_pof_LogCentralComponent();
279 
280  virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
281  virtual _CORBA_Boolean is_a(const char*) const;
282 };
283 
285  public virtual omniServant
286 {
287 public:
288  virtual ~_impl_LogCentralComponent();
289 
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;
296 
297 public: // Really protected, workaround for xlC
298  virtual _CORBA_Boolean _dispatch(omniCallHandle&);
299 
300 private:
301  virtual void* _ptrToInterface(const char*);
302  virtual const char* _mostDerivedRepoId();
303 
304 };
305 
306 
307 _CORBA_GLOBAL_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_LogCentralComponent;
308 
309 
310 
312  public virtual _impl_ComponentConfigurator,
313  public virtual ::PortableServer::ServantBase
314 {
315 public:
316  virtual ~POA_ComponentConfigurator();
317 
318  inline ::ComponentConfigurator_ptr _this() {
319  return (::ComponentConfigurator_ptr) _do_this(::ComponentConfigurator::_PD_repoId);
320  }
321 };
322 
323 template <class _omniT>
325 {
326 public:
328  : pd_obj(&t), pd_poa(0), pd_rel(0) {}
329  POA_ComponentConfigurator_tie(_omniT& t, ::PortableServer::POA_ptr p)
330  : pd_obj(&t), pd_poa(p), pd_rel(0) {}
331  POA_ComponentConfigurator_tie(_omniT* t, _CORBA_Boolean r=1)
332  : pd_obj(t), pd_poa(0), pd_rel(r) {}
333  POA_ComponentConfigurator_tie(_omniT* t, ::PortableServer::POA_ptr p,_CORBA_Boolean r=1)
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;
338  }
339 
340  _omniT* _tied_object() { return pd_obj; }
341 
342  void _tied_object(_omniT& t) {
343  if( pd_rel ) delete pd_obj;
344  pd_obj = &t;
345  pd_rel = 0;
346  }
347 
348  void _tied_object(_omniT* t, _CORBA_Boolean r=1) {
349  if( pd_rel ) delete pd_obj;
350  pd_obj = t;
351  pd_rel = r;
352  }
353 
354  _CORBA_Boolean _is_owner() { return pd_rel; }
355  void _is_owner(_CORBA_Boolean io) { pd_rel = io; }
356 
357  ::PortableServer::POA_ptr _default_POA() {
358  if( !pd_poa ) return ::PortableServer::POA::_the_root_poa();
359  else return ::PortableServer::POA::_duplicate(pd_poa);
360  }
361 
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(); }
366 
367 
368 private:
369  _omniT* pd_obj;
370  ::PortableServer::POA_ptr pd_poa;
371  _CORBA_Boolean pd_rel;
372 };
373 
375  public virtual _impl_LogCentralComponent,
376  public virtual ::PortableServer::ServantBase
377 {
378 public:
379  virtual ~POA_LogCentralComponent();
380 
381  inline ::LogCentralComponent_ptr _this() {
382  return (::LogCentralComponent_ptr) _do_this(::LogCentralComponent::_PD_repoId);
383  }
384 };
385 
386 template <class _omniT>
388 {
389 public:
390  POA_LogCentralComponent_tie(_omniT& t)
391  : pd_obj(&t), pd_poa(0), pd_rel(0) {}
392  POA_LogCentralComponent_tie(_omniT& t, ::PortableServer::POA_ptr p)
393  : pd_obj(&t), pd_poa(p), pd_rel(0) {}
394  POA_LogCentralComponent_tie(_omniT* t, _CORBA_Boolean r=1)
395  : pd_obj(t), pd_poa(0), pd_rel(r) {}
396  POA_LogCentralComponent_tie(_omniT* t, ::PortableServer::POA_ptr p,_CORBA_Boolean r=1)
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;
401  }
402 
403  _omniT* _tied_object() { return pd_obj; }
404 
405  void _tied_object(_omniT& t) {
406  if( pd_rel ) delete pd_obj;
407  pd_obj = &t;
408  pd_rel = 0;
409  }
410 
411  void _tied_object(_omniT* t, _CORBA_Boolean r=1) {
412  if( pd_rel ) delete pd_obj;
413  pd_obj = t;
414  pd_rel = r;
415  }
416 
417  _CORBA_Boolean _is_owner() { return pd_rel; }
418  void _is_owner(_CORBA_Boolean io) { pd_rel = io; }
419 
420  ::PortableServer::POA_ptr _default_POA() {
421  if( !pd_poa ) return ::PortableServer::POA::_the_root_poa();
422  else return ::PortableServer::POA::_duplicate(pd_poa);
423  }
424 
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); }
431 
432 
433 private:
434  _omniT* pd_obj;
435  ::PortableServer::POA_ptr pd_poa;
436  _CORBA_Boolean pd_rel;
437 };
438 
439 
440 
441 
442 
443 
444 
445 #undef _core_attr
446 #undef _dyn_attr
447 
448 void operator<<=(::CORBA::Any& _a, ComponentConfigurator_ptr _s);
449 void operator<<=(::CORBA::Any& _a, ComponentConfigurator_ptr* _s);
450 _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, ComponentConfigurator_ptr& _s);
451 
452 void operator<<=(::CORBA::Any& _a, LogCentralComponent_ptr _s);
453 void operator<<=(::CORBA::Any& _a, LogCentralComponent_ptr* _s);
454 _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, LogCentralComponent_ptr& _s);
455 
456 
457 
458 inline void
459 ComponentConfigurator::_marshalObjRef(::ComponentConfigurator_ptr obj, cdrStream& s) {
460  omniObjRef::_marshal(obj->_PR_getobj(),s);
461 }
462 
463 
464 inline void
465 LogCentralComponent::_marshalObjRef(::LogCentralComponent_ptr obj, cdrStream& s) {
466  omniObjRef::_marshal(obj->_PR_getobj(),s);
467 }
468 
469 
470 
471 
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
475 #endif
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
479 #endif
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
483 #endif
484 
485 #endif // __LogComponent_hh__
486