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