LogService
libdadi: utility tools for distributed applications
LogComponent.hh
1 // This file is generated by omniidl (C++ backend)- omniORB_4_2. 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 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_BADNAME _init_in_decl_( = 1 );
64 
65 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_ALREADYEXISTS _init_in_decl_( = 2 );
66 
67 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_BADCOMPONENTCONFIGURATOR _init_in_decl_( = 3 );
68 
69 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_CONNECT_INTERNALERROR _init_in_decl_( = 4 );
70 
71 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_COMPONENT_DISCONNECT_NOTEXISTS _init_in_decl_( = 1 );
72 
73 #ifndef __ComponentConfigurator__
74 #define __ComponentConfigurator__
78 
81 
83 public:
85 
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&);
92 };
93 
94 typedef _CORBA_ObjRef_Var<_objref_ComponentConfigurator, ComponentConfigurator_Helper> ComponentConfigurator_var;
95 typedef _CORBA_ObjRef_OUT_arg<_objref_ComponentConfigurator,ComponentConfigurator_Helper > ComponentConfigurator_out;
96 
97 #endif
98 
99 // interface ComponentConfigurator
101 public:
102  // Declarations for this interface type.
104  typedef ComponentConfigurator_var _var_type;
105 
106  static _ptr_type _duplicate(_ptr_type);
107  static _ptr_type _narrow(::CORBA::Object_ptr);
108  static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
109 
110  static _ptr_type _nil();
111 
112  static inline void _marshalObjRef(_ptr_type, cdrStream&);
113 
114  static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
115  omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
116  if (o)
117  return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
118  else
119  return _nil();
120  }
121 
122  static inline _ptr_type _fromObjRef(omniObjRef* o) {
123  if (o)
124  return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
125  else
126  return _nil();
127  }
128 
129  static _core_attr const char* _PD_repoId;
130 
131  // Other IDL defined within this scope.
132 
133 };
134 
136  public virtual ::CORBA::Object,
137  public virtual omniObjRef
138 {
139 public:
140  // IDL operations
141  void setTagFilter(const ::tag_list_t& tagList);
142  void addTagFilter(const ::tag_list_t& tagList);
143  void removeTagFilter(const ::tag_list_t& tagList);
144  void test();
145 
146  // Constructors
147  inline _objref_ComponentConfigurator() { _PR_setobj(0); } // nil
148  _objref_ComponentConfigurator(omniIOR*, omniIdentity*);
149 
150 protected:
152 
153 
154 private:
155  virtual void* _ptrToObjRef(const char*);
156 
159  // not implemented
160 
161  friend class ComponentConfigurator;
162 };
163 
164 class _pof_ComponentConfigurator : public _OMNI_NS(proxyObjectFactory) {
165 public:
166  inline _pof_ComponentConfigurator() : _OMNI_NS(proxyObjectFactory)(ComponentConfigurator::_PD_repoId) {}
167  virtual ~_pof_ComponentConfigurator();
168 
169  virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
170  virtual _CORBA_Boolean is_a(const char*) const;
171 };
172 
174  public virtual omniServant
175 {
176 public:
177  virtual ~_impl_ComponentConfigurator();
178 
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;
183 
184 public: // Really protected, workaround for xlC
185  virtual _CORBA_Boolean _dispatch(omniCallHandle&);
186 
187 private:
188  virtual void* _ptrToInterface(const char*);
189  virtual const char* _mostDerivedRepoId();
190 
191 };
192 
193 
194 _CORBA_GLOBAL_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_ComponentConfigurator;
195 
196 #ifndef __LogCentralComponent__
197 #define __LogCentralComponent__
198 class LogCentralComponent;
201 
204 
206 public:
208 
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&);
215 };
216 
217 typedef _CORBA_ObjRef_Var<_objref_LogCentralComponent, LogCentralComponent_Helper> LogCentralComponent_var;
218 typedef _CORBA_ObjRef_OUT_arg<_objref_LogCentralComponent,LogCentralComponent_Helper > LogCentralComponent_out;
219 
220 #endif
221 
222 // interface LogCentralComponent
224 public:
225  // Declarations for this interface type.
227  typedef LogCentralComponent_var _var_type;
228 
229  static _ptr_type _duplicate(_ptr_type);
230  static _ptr_type _narrow(::CORBA::Object_ptr);
231  static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
232 
233  static _ptr_type _nil();
234 
235  static inline void _marshalObjRef(_ptr_type, cdrStream&);
236 
237  static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
238  omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
239  if (o)
240  return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
241  else
242  return _nil();
243  }
244 
245  static inline _ptr_type _fromObjRef(omniObjRef* o) {
246  if (o)
247  return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
248  else
249  return _nil();
250  }
251 
252  static _core_attr const char* _PD_repoId;
253 
254  // Other IDL defined within this scope.
255 
256 };
257 
259  public virtual ::CORBA::Object,
260  public virtual omniObjRef
261 {
262 public:
263  // IDL operations
264  void test();
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);
270 
271  // Constructors
272  inline _objref_LogCentralComponent() { _PR_setobj(0); } // nil
273  _objref_LogCentralComponent(omniIOR*, omniIdentity*);
274 
275 protected:
276  virtual ~_objref_LogCentralComponent();
277 
278 
279 private:
280  virtual void* _ptrToObjRef(const char*);
281 
284  // not implemented
285 
286  friend class LogCentralComponent;
287 };
288 
289 class _pof_LogCentralComponent : public _OMNI_NS(proxyObjectFactory) {
290 public:
291  inline _pof_LogCentralComponent() : _OMNI_NS(proxyObjectFactory)(LogCentralComponent::_PD_repoId) {}
292  virtual ~_pof_LogCentralComponent();
293 
294  virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
295  virtual _CORBA_Boolean is_a(const char*) const;
296 };
297 
299  public virtual omniServant
300 {
301 public:
302  virtual ~_impl_LogCentralComponent();
303 
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;
310 
311 public: // Really protected, workaround for xlC
312  virtual _CORBA_Boolean _dispatch(omniCallHandle&);
313 
314 private:
315  virtual void* _ptrToInterface(const char*);
316  virtual const char* _mostDerivedRepoId();
317 
318 };
319 
320 
321 _CORBA_GLOBAL_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_LogCentralComponent;
322 
323 
324 
326  public virtual _impl_ComponentConfigurator,
327  public virtual ::PortableServer::ServantBase
328 {
329 public:
330  virtual ~POA_ComponentConfigurator();
331 
332  inline ::ComponentConfigurator_ptr _this() {
333  return (::ComponentConfigurator_ptr) _do_this(::ComponentConfigurator::_PD_repoId);
334  }
335 };
336 
337 template <class _omniT>
339 {
340 public:
342  : pd_obj(&t), pd_poa(0), pd_rel(0) {}
343  POA_ComponentConfigurator_tie(_omniT& t, ::PortableServer::POA_ptr p)
344  : pd_obj(&t), pd_poa(p), pd_rel(0) {}
345  POA_ComponentConfigurator_tie(_omniT* t, _CORBA_Boolean r=1)
346  : pd_obj(t), pd_poa(0), pd_rel(r) {}
347  POA_ComponentConfigurator_tie(_omniT* t, ::PortableServer::POA_ptr p,_CORBA_Boolean r=1)
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;
352  }
353 
354  _omniT* _tied_object() { return pd_obj; }
355 
356  void _tied_object(_omniT& t) {
357  if (pd_rel) delete pd_obj;
358  pd_obj = &t;
359  pd_rel = 0;
360  }
361 
362  void _tied_object(_omniT* t, _CORBA_Boolean r=1) {
363  if (pd_rel) delete pd_obj;
364  pd_obj = t;
365  pd_rel = r;
366  }
367 
368  _CORBA_Boolean _is_owner() { return pd_rel; }
369  void _is_owner(_CORBA_Boolean io) { pd_rel = io; }
370 
371  ::PortableServer::POA_ptr _default_POA() {
372  if (!pd_poa) return ::PortableServer::POA::_the_root_poa();
373  else return ::PortableServer::POA::_duplicate(pd_poa);
374  }
375 
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(); }
380 
381 
382 private:
383  _omniT* pd_obj;
384  ::PortableServer::POA_ptr pd_poa;
385  _CORBA_Boolean pd_rel;
386 };
387 
389  public virtual _impl_LogCentralComponent,
390  public virtual ::PortableServer::ServantBase
391 {
392 public:
393  virtual ~POA_LogCentralComponent();
394 
395  inline ::LogCentralComponent_ptr _this() {
396  return (::LogCentralComponent_ptr) _do_this(::LogCentralComponent::_PD_repoId);
397  }
398 };
399 
400 template <class _omniT>
402 {
403 public:
404  POA_LogCentralComponent_tie(_omniT& t)
405  : pd_obj(&t), pd_poa(0), pd_rel(0) {}
406  POA_LogCentralComponent_tie(_omniT& t, ::PortableServer::POA_ptr p)
407  : pd_obj(&t), pd_poa(p), pd_rel(0) {}
408  POA_LogCentralComponent_tie(_omniT* t, _CORBA_Boolean r=1)
409  : pd_obj(t), pd_poa(0), pd_rel(r) {}
410  POA_LogCentralComponent_tie(_omniT* t, ::PortableServer::POA_ptr p,_CORBA_Boolean r=1)
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;
415  }
416 
417  _omniT* _tied_object() { return pd_obj; }
418 
419  void _tied_object(_omniT& t) {
420  if (pd_rel) delete pd_obj;
421  pd_obj = &t;
422  pd_rel = 0;
423  }
424 
425  void _tied_object(_omniT* t, _CORBA_Boolean r=1) {
426  if (pd_rel) delete pd_obj;
427  pd_obj = t;
428  pd_rel = r;
429  }
430 
431  _CORBA_Boolean _is_owner() { return pd_rel; }
432  void _is_owner(_CORBA_Boolean io) { pd_rel = io; }
433 
434  ::PortableServer::POA_ptr _default_POA() {
435  if (!pd_poa) return ::PortableServer::POA::_the_root_poa();
436  else return ::PortableServer::POA::_duplicate(pd_poa);
437  }
438 
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); }
445 
446 
447 private:
448  _omniT* pd_obj;
449  ::PortableServer::POA_ptr pd_poa;
450  _CORBA_Boolean pd_rel;
451 };
452 
453 
454 
455 
456 
457 
458 
459 #undef _core_attr
460 #undef _dyn_attr
461 
462 void operator<<=(::CORBA::Any& _a, ComponentConfigurator_ptr _s);
463 void operator<<=(::CORBA::Any& _a, ComponentConfigurator_ptr* _s);
464 _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, ComponentConfigurator_ptr& _s);
465 
466 void operator<<=(::CORBA::Any& _a, LogCentralComponent_ptr _s);
467 void operator<<=(::CORBA::Any& _a, LogCentralComponent_ptr* _s);
468 _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, LogCentralComponent_ptr& _s);
469 
470 
471 
472 inline void
473 ComponentConfigurator::_marshalObjRef(::ComponentConfigurator_ptr obj, cdrStream& s) {
474  omniObjRef::_marshal(obj->_PR_getobj(),s);
475 }
476 
477 inline void
478 LogCentralComponent::_marshalObjRef(::LogCentralComponent_ptr obj, cdrStream& s) {
479  omniObjRef::_marshal(obj->_PR_getobj(),s);
480 }
481 
482 
483 
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
487 #endif
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
491 #endif
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
495 #endif
496 
497 #endif // __LogComponent_hh__
498 
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