blob: 7fd0885555493383e37a95f9993b54a755823605 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// -*- C++ -*-
//
//$Id$
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
ACE_INLINE CORBA::Boolean
TAO_Notify_FilterAdmin::match (const TAO_Notify_Event* event)
ACE_THROW_SPEC ((
CORBA::SystemException,
CosNotifyFilter::UnsupportedFilterableData
))
{
ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, ace_mon, this->lock_,
CORBA::INTERNAL ());
// If no filter is active, match is successfull.
if (this->filter_list_.current_size () == 0)
return 1;
// We want to return true if atleast one constraint matches.
FILTER_LIST::ITERATOR iter (this->filter_list_);
FILTER_LIST::ENTRY *entry;
CORBA::Boolean ret_val = 0;
for (; iter.next (entry); iter.advance ())
{
ret_val = event->do_match (entry->int_id_.in ());
if (ret_val == 1)
return 1;
}
return 0;
}
TAO_END_VERSIONED_NAMESPACE_DECL
|