diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
commit | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (patch) | |
tree | 197c810e5f5bce17b1233a7cb8d7b50c0bcd25e2 /TAO/orbsvcs/orbsvcs/Event/EC_Filter.i | |
parent | 6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (diff) | |
download | ATCD-3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Event/EC_Filter.i')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Event/EC_Filter.i | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Filter.i b/TAO/orbsvcs/orbsvcs/Event/EC_Filter.i new file mode 100644 index 00000000000..a5b9e121522 --- /dev/null +++ b/TAO/orbsvcs/orbsvcs/Event/EC_Filter.i @@ -0,0 +1,45 @@ +// -*- C++ -*- +// +// $Id$ + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +ACE_INLINE +TAO_EC_Filter::TAO_EC_Filter (void) + : parent_ (0) +{ +} + +ACE_INLINE TAO_EC_Filter* +TAO_EC_Filter::parent (void) const +{ + return this->parent_; +} + +ACE_INLINE int +TAO_EC_Filter::matches (const RtecEventComm::EventHeader& rhs, + const RtecEventComm::EventHeader& lhs) +{ + if ((rhs.source == 0 && rhs.type == 0) + || (lhs.source == 0 && lhs.type == 0)) + return 1; + + if (rhs.source == 0 || lhs.source == 0) + return rhs.type == lhs.type; + + if (rhs.type == 0 || lhs.type == 0) + return rhs.source == lhs.source; + + return (rhs.type == lhs.type && rhs.source == lhs.source); +} + +// **************************************************************** + +ACE_INLINE +TAO_EC_Null_Filter::TAO_EC_Null_Filter (void) +{ +} + +// **************************************************************** + +TAO_END_VERSIONED_NAMESPACE_DECL |