LogService
libdadi: utility tools for distributed applications
 All Classes Functions Variables
LogTool.hh
1 // This file is generated by omniidl (C++ backend)- omniORB_4_1. Do not edit.
2 #ifndef __LogTool_hh__
3 #define __LogTool_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_LogTool
11 #endif
12 #ifndef USE_core_stub_in_nt_dll
13 # define USE_core_stub_in_nt_dll_NOT_DEFINED_LogTool
14 #endif
15 #ifndef USE_dyn_stub_in_nt_dll
16 # define USE_dyn_stub_in_nt_dll_NOT_DEFINED_LogTool
17 #endif
18 
19 
20 
21 #ifndef __LogTypes_hh_EXTERNAL_GUARD__
22 #define __LogTypes_hh_EXTERNAL_GUARD__
23 #include <LogTypes.hh>
24 #endif
25 
26 
27 
28 #ifdef USE_stub_in_nt_dll
29 # ifndef USE_core_stub_in_nt_dll
30 # define USE_core_stub_in_nt_dll
31 # endif
32 # ifndef USE_dyn_stub_in_nt_dll
33 # define USE_dyn_stub_in_nt_dll
34 # endif
35 #endif
36 
37 #ifdef _core_attr
38 # error "A local CPP macro _core_attr has already been defined."
39 #else
40 # ifdef USE_core_stub_in_nt_dll
41 # define _core_attr _OMNIORB_NTDLL_IMPORT
42 # else
43 # define _core_attr
44 # endif
45 #endif
46 
47 #ifdef _dyn_attr
48 # error "A local CPP macro _dyn_attr has already been defined."
49 #else
50 # ifdef USE_dyn_stub_in_nt_dll
51 # define _dyn_attr _OMNIORB_NTDLL_IMPORT
52 # else
53 # define _dyn_attr
54 # endif
55 #endif
56 
57 
58 
59 
60 
61 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_TOOL_CONNECT_ALREADYEXISTS _init_in_decl_( = 1 );
62 
63 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_TOOL_DISCONNECT_NOTEXISTS _init_in_decl_( = 1 );
64 
65 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_TOOL_ADDFILTER_TOOLNOTEXISTS _init_in_decl_( = 1 );
66 
67 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_TOOL_ADDFILTER_ALREADYEXISTS _init_in_decl_( = 2 );
68 
69 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_TOOL_REMOVEFILTER_TOOLNOTEXISTS _init_in_decl_( = 1 );
70 
71 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_TOOL_REMOVEFILTER_NOTEXISTS _init_in_decl_( = 2 );
72 
73 _CORBA_GLOBAL_VARINT const ::CORBA::Short LS_TOOL_FLUSHFILTERS_TOOLNOTEXISTS _init_in_decl_( = 1 );
74 
75 struct filter_t {
76  typedef _CORBA_ConstrType_Variable_Var<filter_t> _var_type;
77 
78 
79  ::CORBA::String_member filterName;
80 
81  tag_list_t tagList;
82 
83  component_list_t componentList;
84 
85 
86 
87  void operator>>= (cdrStream &) const;
88  void operator<<= (cdrStream &);
89 };
90 
91 typedef filter_t::_var_type filter_t_var;
92 
93 typedef _CORBA_ConstrType_Variable_OUT_arg< filter_t,filter_t_var > filter_t_out;
94 
95 _CORBA_GLOBAL_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_filter_t;
96 
97 #ifndef __ToolMsgReceiver__
98 #define __ToolMsgReceiver__
99 
100 class ToolMsgReceiver;
103 
106 
108 public:
110 
111  static _ptr_type _nil();
112  static _CORBA_Boolean is_nil(_ptr_type);
113  static void release(_ptr_type);
114  static void duplicate(_ptr_type);
115  static void marshalObjRef(_ptr_type, cdrStream&);
116  static _ptr_type unmarshalObjRef(cdrStream&);
117 };
118 
119 typedef _CORBA_ObjRef_Var<_objref_ToolMsgReceiver, ToolMsgReceiver_Helper> ToolMsgReceiver_var;
120 typedef _CORBA_ObjRef_OUT_arg<_objref_ToolMsgReceiver,ToolMsgReceiver_Helper > ToolMsgReceiver_out;
121 
122 #endif
123 
124 // interface ToolMsgReceiver
126 public:
127  // Declarations for this interface type.
129  typedef ToolMsgReceiver_var _var_type;
130 
131  static _ptr_type _duplicate(_ptr_type);
132  static _ptr_type _narrow(::CORBA::Object_ptr);
133  static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
134 
135  static _ptr_type _nil();
136 
137  static inline void _marshalObjRef(_ptr_type, cdrStream&);
138 
139  static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
140  omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
141  if (o)
142  return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
143  else
144  return _nil();
145  }
146 
147  static _core_attr const char* _PD_repoId;
148 
149  // Other IDL defined within this scope.
150 
151 };
152 
154  public virtual ::CORBA::Object,
155  public virtual omniObjRef
156 {
157 public:
158  void sendMsg(const ::log_msg_buf_t& msgBuf);
159 
160  inline _objref_ToolMsgReceiver() { _PR_setobj(0); } // nil
161  _objref_ToolMsgReceiver(omniIOR*, omniIdentity*);
162 
163 protected:
164  virtual ~_objref_ToolMsgReceiver();
165 
166 
167 private:
168  virtual void* _ptrToObjRef(const char*);
169 
172  // not implemented
173 
174  friend class ToolMsgReceiver;
175 };
176 
177 class _pof_ToolMsgReceiver : public _OMNI_NS(proxyObjectFactory) {
178 public:
179  inline _pof_ToolMsgReceiver() : _OMNI_NS(proxyObjectFactory)(ToolMsgReceiver::_PD_repoId) {}
180  virtual ~_pof_ToolMsgReceiver();
181 
182  virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
183  virtual _CORBA_Boolean is_a(const char*) const;
184 };
185 
187  public virtual omniServant
188 {
189 public:
190  virtual ~_impl_ToolMsgReceiver();
191 
192  virtual void sendMsg(const ::log_msg_buf_t& msgBuf) = 0;
193 
194 public: // Really protected, workaround for xlC
195  virtual _CORBA_Boolean _dispatch(omniCallHandle&);
196 
197 private:
198  virtual void* _ptrToInterface(const char*);
199  virtual const char* _mostDerivedRepoId();
200 
201 };
202 
203 
204 _CORBA_GLOBAL_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_ToolMsgReceiver;
205 
206 #ifndef __LogCentralTool__
207 #define __LogCentralTool__
208 
209 class LogCentralTool;
212 
215 
217 public:
219 
220  static _ptr_type _nil();
221  static _CORBA_Boolean is_nil(_ptr_type);
222  static void release(_ptr_type);
223  static void duplicate(_ptr_type);
224  static void marshalObjRef(_ptr_type, cdrStream&);
225  static _ptr_type unmarshalObjRef(cdrStream&);
226 };
227 
228 typedef _CORBA_ObjRef_Var<_objref_LogCentralTool, LogCentralTool_Helper> LogCentralTool_var;
229 typedef _CORBA_ObjRef_OUT_arg<_objref_LogCentralTool,LogCentralTool_Helper > LogCentralTool_out;
230 
231 #endif
232 
233 // interface LogCentralTool
235 public:
236  // Declarations for this interface type.
238  typedef LogCentralTool_var _var_type;
239 
240  static _ptr_type _duplicate(_ptr_type);
241  static _ptr_type _narrow(::CORBA::Object_ptr);
242  static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
243 
244  static _ptr_type _nil();
245 
246  static inline void _marshalObjRef(_ptr_type, cdrStream&);
247 
248  static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
249  omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
250  if (o)
251  return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
252  else
253  return _nil();
254  }
255 
256  static _core_attr const char* _PD_repoId;
257 
258  // Other IDL defined within this scope.
259 
260 };
261 
263  public virtual ::CORBA::Object,
264  public virtual omniObjRef
265 {
266 public:
267  void test();
268  ::CORBA::Short connectTool(::CORBA::String_INOUT_arg toolName, const char* msgReceiver);
269  ::CORBA::Short disconnectTool(const char* toolName);
270  tag_list_t* getDefinedTags();
271  component_list_t* getDefinedComponents();
272  ::CORBA::Short addFilter(const char* toolName, const ::filter_t& filter);
273  ::CORBA::Short removeFilter(const char* toolName, const char* filterName);
274  ::CORBA::Short flushAllFilters(const char* toolName);
275 
276  inline _objref_LogCentralTool() { _PR_setobj(0); } // nil
277  _objref_LogCentralTool(omniIOR*, omniIdentity*);
278 
279 protected:
280  virtual ~_objref_LogCentralTool();
281 
282 
283 private:
284  virtual void* _ptrToObjRef(const char*);
285 
287  _objref_LogCentralTool& operator = (const _objref_LogCentralTool&);
288  // not implemented
289 
290  friend class LogCentralTool;
291 };
292 
293 class _pof_LogCentralTool : public _OMNI_NS(proxyObjectFactory) {
294 public:
295  inline _pof_LogCentralTool() : _OMNI_NS(proxyObjectFactory)(LogCentralTool::_PD_repoId) {}
296  virtual ~_pof_LogCentralTool();
297 
298  virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
299  virtual _CORBA_Boolean is_a(const char*) const;
300 };
301 
303  public virtual omniServant
304 {
305 public:
306  virtual ~_impl_LogCentralTool();
307 
308  virtual void test() = 0;
309  virtual ::CORBA::Short connectTool(char*& toolName, const char* msgReceiver) = 0;
310  virtual ::CORBA::Short disconnectTool(const char* toolName) = 0;
311  virtual tag_list_t* getDefinedTags() = 0;
312  virtual component_list_t* getDefinedComponents() = 0;
313  virtual ::CORBA::Short addFilter(const char* toolName, const ::filter_t& filter) = 0;
314  virtual ::CORBA::Short removeFilter(const char* toolName, const char* filterName) = 0;
315  virtual ::CORBA::Short flushAllFilters(const char* toolName) = 0;
316 
317 public: // Really protected, workaround for xlC
318  virtual _CORBA_Boolean _dispatch(omniCallHandle&);
319 
320 private:
321  virtual void* _ptrToInterface(const char*);
322  virtual const char* _mostDerivedRepoId();
323 
324 };
325 
326 
327 _CORBA_GLOBAL_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_LogCentralTool;
328 
329 
330 
332  public virtual _impl_ToolMsgReceiver,
333  public virtual ::PortableServer::ServantBase
334 {
335 public:
336  virtual ~POA_ToolMsgReceiver();
337 
338  inline ::ToolMsgReceiver_ptr _this() {
339  return (::ToolMsgReceiver_ptr) _do_this(::ToolMsgReceiver::_PD_repoId);
340  }
341 };
342 
343 template <class _omniT>
345 {
346 public:
347  POA_ToolMsgReceiver_tie(_omniT& t)
348  : pd_obj(&t), pd_poa(0), pd_rel(0) {}
349  POA_ToolMsgReceiver_tie(_omniT& t, ::PortableServer::POA_ptr p)
350  : pd_obj(&t), pd_poa(p), pd_rel(0) {}
351  POA_ToolMsgReceiver_tie(_omniT* t, _CORBA_Boolean r=1)
352  : pd_obj(t), pd_poa(0), pd_rel(r) {}
353  POA_ToolMsgReceiver_tie(_omniT* t, ::PortableServer::POA_ptr p,_CORBA_Boolean r=1)
354  : pd_obj(t), pd_poa(p), pd_rel(r) {}
356  if( pd_poa ) ::CORBA::release(pd_poa);
357  if( pd_rel ) delete pd_obj;
358  }
359 
360  _omniT* _tied_object() { return pd_obj; }
361 
362  void _tied_object(_omniT& t) {
363  if( pd_rel ) delete pd_obj;
364  pd_obj = &t;
365  pd_rel = 0;
366  }
367 
368  void _tied_object(_omniT* t, _CORBA_Boolean r=1) {
369  if( pd_rel ) delete pd_obj;
370  pd_obj = t;
371  pd_rel = r;
372  }
373 
374  _CORBA_Boolean _is_owner() { return pd_rel; }
375  void _is_owner(_CORBA_Boolean io) { pd_rel = io; }
376 
377  ::PortableServer::POA_ptr _default_POA() {
378  if( !pd_poa ) return ::PortableServer::POA::_the_root_poa();
379  else return ::PortableServer::POA::_duplicate(pd_poa);
380  }
381 
382  void sendMsg(const log_msg_buf_t& msgBuf) { pd_obj->sendMsg(msgBuf); }
383 
384 
385 private:
386  _omniT* pd_obj;
387  ::PortableServer::POA_ptr pd_poa;
388  _CORBA_Boolean pd_rel;
389 };
390 
392  public virtual _impl_LogCentralTool,
393  public virtual ::PortableServer::ServantBase
394 {
395 public:
396  virtual ~POA_LogCentralTool();
397 
398  inline ::LogCentralTool_ptr _this() {
399  return (::LogCentralTool_ptr) _do_this(::LogCentralTool::_PD_repoId);
400  }
401 };
402 
403 template <class _omniT>
405 {
406 public:
407  POA_LogCentralTool_tie(_omniT& t)
408  : pd_obj(&t), pd_poa(0), pd_rel(0) {}
409  POA_LogCentralTool_tie(_omniT& t, ::PortableServer::POA_ptr p)
410  : pd_obj(&t), pd_poa(p), pd_rel(0) {}
411  POA_LogCentralTool_tie(_omniT* t, _CORBA_Boolean r=1)
412  : pd_obj(t), pd_poa(0), pd_rel(r) {}
413  POA_LogCentralTool_tie(_omniT* t, ::PortableServer::POA_ptr p,_CORBA_Boolean r=1)
414  : pd_obj(t), pd_poa(p), pd_rel(r) {}
416  if( pd_poa ) ::CORBA::release(pd_poa);
417  if( pd_rel ) delete pd_obj;
418  }
419 
420  _omniT* _tied_object() { return pd_obj; }
421 
422  void _tied_object(_omniT& t) {
423  if( pd_rel ) delete pd_obj;
424  pd_obj = &t;
425  pd_rel = 0;
426  }
427 
428  void _tied_object(_omniT* t, _CORBA_Boolean r=1) {
429  if( pd_rel ) delete pd_obj;
430  pd_obj = t;
431  pd_rel = r;
432  }
433 
434  _CORBA_Boolean _is_owner() { return pd_rel; }
435  void _is_owner(_CORBA_Boolean io) { pd_rel = io; }
436 
437  ::PortableServer::POA_ptr _default_POA() {
438  if( !pd_poa ) return ::PortableServer::POA::_the_root_poa();
439  else return ::PortableServer::POA::_duplicate(pd_poa);
440  }
441 
442  void test() { pd_obj->test(); }
443  ::CORBA::Short connectTool(char*& toolName, const char* msgReceiver) { return pd_obj->connectTool(toolName, msgReceiver); }
444  ::CORBA::Short disconnectTool(const char* toolName) { return pd_obj->disconnectTool(toolName); }
445  tag_list_t* getDefinedTags() { return pd_obj->getDefinedTags(); }
446  component_list_t* getDefinedComponents() { return pd_obj->getDefinedComponents(); }
447  ::CORBA::Short addFilter(const char* toolName, const filter_t& filter) { return pd_obj->addFilter(toolName, filter); }
448  ::CORBA::Short removeFilter(const char* toolName, const char* filterName) { return pd_obj->removeFilter(toolName, filterName); }
449  ::CORBA::Short flushAllFilters(const char* toolName) { return pd_obj->flushAllFilters(toolName); }
450 
451 
452 private:
453  _omniT* pd_obj;
454  ::PortableServer::POA_ptr pd_poa;
455  _CORBA_Boolean pd_rel;
456 };
457 
458 
459 
460 
461 
462 
463 
464 #undef _core_attr
465 #undef _dyn_attr
466 
467 extern void operator<<=(::CORBA::Any& _a, const filter_t& _s);
468 extern void operator<<=(::CORBA::Any& _a, filter_t* _sp);
469 extern _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, filter_t*& _sp);
470 extern _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, const filter_t*& _sp);
471 
472 void operator<<=(::CORBA::Any& _a, ToolMsgReceiver_ptr _s);
473 void operator<<=(::CORBA::Any& _a, ToolMsgReceiver_ptr* _s);
474 _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, ToolMsgReceiver_ptr& _s);
475 
476 void operator<<=(::CORBA::Any& _a, LogCentralTool_ptr _s);
477 void operator<<=(::CORBA::Any& _a, LogCentralTool_ptr* _s);
478 _CORBA_Boolean operator>>=(const ::CORBA::Any& _a, LogCentralTool_ptr& _s);
479 
480 
481 
482 inline void
483 ToolMsgReceiver::_marshalObjRef(::ToolMsgReceiver_ptr obj, cdrStream& s) {
484  omniObjRef::_marshal(obj->_PR_getobj(),s);
485 }
486 
487 
488 inline void
489 LogCentralTool::_marshalObjRef(::LogCentralTool_ptr obj, cdrStream& s) {
490  omniObjRef::_marshal(obj->_PR_getobj(),s);
491 }
492 
493 
494 
495 
496 #ifdef USE_stub_in_nt_dll_NOT_DEFINED_LogTool
497 # undef USE_stub_in_nt_dll
498 # undef USE_stub_in_nt_dll_NOT_DEFINED_LogTool
499 #endif
500 #ifdef USE_core_stub_in_nt_dll_NOT_DEFINED_LogTool
501 # undef USE_core_stub_in_nt_dll
502 # undef USE_core_stub_in_nt_dll_NOT_DEFINED_LogTool
503 #endif
504 #ifdef USE_dyn_stub_in_nt_dll_NOT_DEFINED_LogTool
505 # undef USE_dyn_stub_in_nt_dll
506 # undef USE_dyn_stub_in_nt_dll_NOT_DEFINED_LogTool
507 #endif
508 
509 #endif // __LogTool_hh__
510