00001 // -*- C++ -*- 00002 // 00003 // $Id: EC_Filter.inl 73791 2006-07-27 20:54:56Z wotte $ 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 ACE_INLINE 00008 TAO_EC_Filter::TAO_EC_Filter (void) 00009 : parent_ (0) 00010 { 00011 } 00012 00013 ACE_INLINE TAO_EC_Filter* 00014 TAO_EC_Filter::parent (void) const 00015 { 00016 return this->parent_; 00017 } 00018 00019 ACE_INLINE int 00020 TAO_EC_Filter::matches (const RtecEventComm::EventHeader& rhs, 00021 const RtecEventComm::EventHeader& lhs) 00022 { 00023 if ((rhs.source == 0 && rhs.type == 0) 00024 || (lhs.source == 0 && lhs.type == 0)) 00025 return 1; 00026 00027 if (rhs.source == 0 || lhs.source == 0) 00028 return rhs.type == lhs.type; 00029 00030 if (rhs.type == 0 || lhs.type == 0) 00031 return rhs.source == lhs.source; 00032 00033 return (rhs.type == lhs.type && rhs.source == lhs.source); 00034 } 00035 00036 // **************************************************************** 00037 00038 ACE_INLINE 00039 TAO_EC_Null_Filter::TAO_EC_Null_Filter (void) 00040 { 00041 } 00042 00043 // **************************************************************** 00044 00045 TAO_END_VERSIONED_NAMESPACE_DECL