diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Notify/Proxy.inl')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Notify/Proxy.inl | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Notify/Proxy.inl b/TAO/orbsvcs/orbsvcs/Notify/Proxy.inl new file mode 100644 index 00000000000..0f92ffdcb35 --- /dev/null +++ b/TAO/orbsvcs/orbsvcs/Notify/Proxy.inl @@ -0,0 +1,36 @@ +// -*- C++ -*- +// +// $Id$ + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +ACE_INLINE CORBA::Boolean +TAO_Notify_Proxy::updates_off (void) +{ + return this->updates_off_; +} + +ACE_INLINE CORBA::Boolean +TAO_Notify_Proxy::check_filters (const TAO_Notify_Event* event + , TAO_Notify_FilterAdmin& parent_filter_admin + , CosNotifyChannelAdmin::InterFilterGroupOperator filter_operator) +{ + // check if it passes the parent filter. + CORBA::Boolean parent_val = + parent_filter_admin.match (event); + + CORBA::Boolean val = 0; + + if (filter_operator == CosNotifyChannelAdmin::AND_OP) + { + val = parent_val && this->filter_admin_.match (event); + } + else + { + val = parent_val || this->filter_admin_.match (event); + } + + return val; +} + +TAO_END_VERSIONED_NAMESPACE_DECL |