2 #ifndef __CorbaLogForwarder_hh__ 3 #define __CorbaLogForwarder_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_CorbaLogForwarder 12 #ifndef USE_core_stub_in_nt_dll 13 # define USE_core_stub_in_nt_dll_NOT_DEFINED_CorbaLogForwarder 15 #ifndef USE_dyn_stub_in_nt_dll 16 # define USE_dyn_stub_in_nt_dll_NOT_DEFINED_CorbaLogForwarder 21 #ifndef __commonLogTypes_hh_EXTERNAL_GUARD__ 22 #define __commonLogTypes_hh_EXTERNAL_GUARD__ 23 #include <commonLogTypes.hh> 25 #ifndef __LogTypes_hh_EXTERNAL_GUARD__ 26 #define __LogTypes_hh_EXTERNAL_GUARD__ 27 #include <LogTypes.hh> 29 #ifndef __LogComponent_hh_EXTERNAL_GUARD__ 30 #define __LogComponent_hh_EXTERNAL_GUARD__ 31 #include <LogComponent.hh> 33 #ifndef __LogComponentFwdr_hh_EXTERNAL_GUARD__ 34 #define __LogComponentFwdr_hh_EXTERNAL_GUARD__ 35 #include <LogComponentFwdr.hh> 37 #ifndef __LogTool_hh_EXTERNAL_GUARD__ 38 #define __LogTool_hh_EXTERNAL_GUARD__ 41 #ifndef __LogToolFwdr_hh_EXTERNAL_GUARD__ 42 #define __LogToolFwdr_hh_EXTERNAL_GUARD__ 43 #include <LogToolFwdr.hh> 48 #ifdef USE_stub_in_nt_dll 49 # ifndef USE_core_stub_in_nt_dll 50 # define USE_core_stub_in_nt_dll 52 # ifndef USE_dyn_stub_in_nt_dll 53 # define USE_dyn_stub_in_nt_dll 58 # error "A local CPP macro _core_attr has already been defined." 60 # ifdef USE_core_stub_in_nt_dll 61 # define _core_attr _OMNIORB_NTDLL_IMPORT 68 # error "A local CPP macro _dyn_attr has already been defined." 70 # ifdef USE_dyn_stub_in_nt_dll 71 # define _dyn_attr _OMNIORB_NTDLL_IMPORT 79 #ifndef __CorbaLogForwarder__ 80 #define __CorbaLogForwarder__ 92 static _ptr_type _nil();
93 static _CORBA_Boolean is_nil(_ptr_type);
94 static void release(_ptr_type);
95 static void duplicate(_ptr_type);
96 static void marshalObjRef(_ptr_type, cdrStream&);
97 static _ptr_type unmarshalObjRef(cdrStream&);
100 typedef _CORBA_ObjRef_Var<_objref_CorbaLogForwarder, CorbaLogForwarder_Helper> CorbaLogForwarder_var;
101 typedef _CORBA_ObjRef_OUT_arg<_objref_CorbaLogForwarder,CorbaLogForwarder_Helper > CorbaLogForwarder_out;
110 typedef CorbaLogForwarder_var _var_type;
112 static _ptr_type _duplicate(_ptr_type);
113 static _ptr_type _narrow(::CORBA::Object_ptr);
114 static _ptr_type _unchecked_narrow(::CORBA::Object_ptr);
116 static _ptr_type _nil();
118 static inline void _marshalObjRef(_ptr_type, cdrStream&);
120 static inline _ptr_type _unmarshalObjRef(cdrStream& s) {
121 omniObjRef* o = omniObjRef::_unMarshal(_PD_repoId,s);
123 return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
128 static inline _ptr_type _fromObjRef(omniObjRef* o) {
130 return (_ptr_type) o->_ptrToObjRef(_PD_repoId);
135 static _core_attr
const char* _PD_repoId;
153 void bind(
const char* objName,
const char* ior);
154 void unbind(
const char* objName);
156 void connectPeer(
const char* ior,
const char* host, ::CORBA::Long port);
173 virtual void* _ptrToObjRef(
const char*);
187 virtual omniObjRef* newObjRef(omniIOR*,omniIdentity*);
188 virtual _CORBA_Boolean is_a(
const char*)
const;
204 virtual void bind(
const char* objName,
const char* ior) = 0;
205 virtual void unbind(
const char* objName) = 0;
206 virtual LogSeqString* getBindings(
const char* ctxt) = 0;
207 virtual void connectPeer(
const char* ior,
const char* host, ::CORBA::Long port) = 0;
208 virtual char* getIOR() = 0;
209 virtual char* getName() = 0;
210 virtual char* getPeerName() = 0;
211 virtual char* getHost() = 0;
212 virtual char* getPeerHost() = 0;
216 virtual _CORBA_Boolean _dispatch(omniCallHandle&);
219 virtual void* _ptrToInterface(
const char*);
220 virtual const char* _mostDerivedRepoId();
225 _CORBA_GLOBAL_VAR _dyn_attr const ::CORBA::TypeCode_ptr _tc_CorbaLogForwarder;
239 inline ::CorbaLogForwarder_ptr _this() {
244 template <
class _omniT>
249 : pd_obj(&t), pd_poa(0), pd_rel(0) {}
251 : pd_obj(&t), pd_poa(p), pd_rel(0) {}
253 : pd_obj(t), pd_poa(0), pd_rel(r) {}
255 : pd_obj(t), pd_poa(p), pd_rel(r) {}
257 if (pd_poa) ::CORBA::release(pd_poa);
258 if (pd_rel)
delete pd_obj;
261 _omniT* _tied_object() {
return pd_obj; }
263 void _tied_object(_omniT& t) {
264 if (pd_rel)
delete pd_obj;
269 void _tied_object(_omniT* t, _CORBA_Boolean r=1) {
270 if (pd_rel)
delete pd_obj;
275 _CORBA_Boolean _is_owner() {
return pd_rel; }
276 void _is_owner(_CORBA_Boolean io) { pd_rel = io; }
278 ::PortableServer::POA_ptr _default_POA() {
279 if (!pd_poa) return ::PortableServer::POA::_the_root_poa();
280 else return ::PortableServer::POA::_duplicate(pd_poa);
283 LogCentralComponent_ptr getLogCentralComponent(
const char* name) {
return pd_obj->getLogCentralComponent(name); }
284 LogCentralTool_ptr getLogCentralTool(
const char* name) {
return pd_obj->getLogCentralTool(name); }
286 ToolMsgReceiver_ptr getToolMsgReceiver(
const char* name) {
return pd_obj->getToolMsgReceiver(name); }
287 void bind(
const char* objName,
const char* ior) { pd_obj->bind(objName, ior); }
288 void unbind(
const char* objName) { pd_obj->unbind(objName); }
289 LogSeqString* getBindings(
const char* ctxt) {
return pd_obj->getBindings(ctxt); }
290 void connectPeer(
const char* ior,
const char* host, ::CORBA::Long port) { pd_obj->connectPeer(ior, host, port); }
291 char* getIOR() {
return pd_obj->getIOR(); }
292 char* getName() {
return pd_obj->getName(); }
293 char* getPeerName() {
return pd_obj->getPeerName(); }
294 char* getHost() {
return pd_obj->getHost(); }
295 char* getPeerHost() {
return pd_obj->getPeerHost(); }
296 LogSeqString* routeTree() {
return pd_obj->routeTree(); }
297 void setTagFilter(
const tag_list_t& tagList,
const char* objName) { pd_obj->setTagFilter(tagList, objName); }
298 void addTagFilter(
const tag_list_t& tagList,
const char* objName) { pd_obj->addTagFilter(tagList, objName); }
299 void removeTagFilter(
const tag_list_t& tagList,
const char* objName) { pd_obj->removeTagFilter(tagList, objName); }
300 ::CORBA::Short connectComponent(
char*& componentName,
const char* componentHostname,
const char* message,
const char* compConfigurator,
const log_time_t& componentTime,
tag_list_t& initialConfig,
const char* objName) {
return pd_obj->connectComponent(componentName, componentHostname, message, compConfigurator, componentTime, initialConfig, objName); }
301 ::CORBA::Short disconnectComponent(
const char* componentName,
const char* message,
const char* objName) {
return pd_obj->disconnectComponent(componentName, message, objName); }
302 void sendBuffer(
const log_msg_buf_t& buffer,
const char* objName) { pd_obj->sendBuffer(buffer, objName); }
303 void ping(
const char* componentName,
const char* objName) { pd_obj->ping(componentName, objName); }
304 void synchronize(
const char* componentName,
const log_time_t& componentTime,
const char* objName) { pd_obj->synchronize(componentName, componentTime, objName); }
305 void test(
const char* objName) { pd_obj->test(objName); }
306 void sendMsg(
const log_msg_buf_t& msgBuf,
const char* objName) { pd_obj->sendMsg(msgBuf, objName); }
307 ::CORBA::Short connectTool(
char*& toolName,
const char* msgReceiver,
const char* objName) {
return pd_obj->connectTool(toolName, msgReceiver, objName); }
308 ::CORBA::Short disconnectTool(
const char* toolName,
const char* objName) {
return pd_obj->disconnectTool(toolName, objName); }
309 tag_list_t* getDefinedTags(
const char* objName) {
return pd_obj->getDefinedTags(objName); }
310 component_list_t* getDefinedComponents(
const char* objName) {
return pd_obj->getDefinedComponents(objName); }
311 ::CORBA::Short addFilter(
const char* toolName,
const filter_t& filter,
const char* objName) {
return pd_obj->addFilter(toolName, filter, objName); }
312 ::CORBA::Short removeFilter(
const char* toolName,
const char* filterName,
const char* objName) {
return pd_obj->removeFilter(toolName, filterName, objName); }
313 ::CORBA::Short flushAllFilters(
const char* toolName,
const char* objName) {
return pd_obj->flushAllFilters(toolName, objName); }
318 ::PortableServer::POA_ptr pd_poa;
319 _CORBA_Boolean pd_rel;
339 omniObjRef::_marshal(obj->_PR_getobj(),s);
344 #ifdef USE_stub_in_nt_dll_NOT_DEFINED_CorbaLogForwarder 345 # undef USE_stub_in_nt_dll 346 # undef USE_stub_in_nt_dll_NOT_DEFINED_CorbaLogForwarder 348 #ifdef USE_core_stub_in_nt_dll_NOT_DEFINED_CorbaLogForwarder 349 # undef USE_core_stub_in_nt_dll 350 # undef USE_core_stub_in_nt_dll_NOT_DEFINED_CorbaLogForwarder 352 #ifdef USE_dyn_stub_in_nt_dll_NOT_DEFINED_CorbaLogForwarder 353 # undef USE_dyn_stub_in_nt_dll 354 # undef USE_dyn_stub_in_nt_dll_NOT_DEFINED_CorbaLogForwarder 357 #endif // __CorbaLogForwarder_hh__
Definition: LogComponentFwdr.hh:612
Definition: LogComponent.hh:135
Definition: CorbaLogForwarder.hh:182
Definition: LogComponentFwdr.hh:739
Definition: CorbaLogForwarder.hh:106
Definition: LogTypes.hh:57
Definition: LogComponentFwdr.hh:522
Definition: LogComponentFwdr.hh:245
Definition: LogTypes.hh:107
Definition: CorbaLogForwarder.hh:141
Definition: CorbaLogForwarder.hh:88
Definition: CorbaLogForwarder.hh:229
Definition: LogTypes.hh:221
Definition: LogTool.hh:73
Definition: commonLogTypes.hh:515
Definition: CorbaLogForwarder.hh:191
Definition: LogComponentFwdr.hh:482
Definition: CorbaLogForwarder.hh:245
Definition: LogTypes.hh:335
Definition: LogComponentFwdr.hh:282
Definition: LogComponent.hh:258