00001 // -*- C++ -*- 00002 // 00003 // $Id: EventType.inl 78005 2007-04-12 19:14:05Z elliott_c $ 00004 00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00006 00007 ACE_INLINE u_long 00008 TAO_Notify_EventType::hash (void) const 00009 { 00010 return this->hash_value_; 00011 } 00012 00013 ACE_INLINE const CosNotification::EventType& 00014 TAO_Notify_EventType::native (void) const 00015 { 00016 return event_type_; 00017 } 00018 00019 ACE_INLINE bool 00020 TAO_Notify_EventType::domain_is_wildcard (const char* domain) const 00021 { 00022 return (domain == 0 || ACE_OS::strcmp (domain, "") == 0 || 00023 ACE_OS::strcmp (domain, "*") == 0); 00024 } 00025 00026 ACE_INLINE bool 00027 TAO_Notify_EventType::type_is_wildcard (const char* type) const 00028 { 00029 return (type == 0 || ACE_OS::strcmp (type, "") == 0 || 00030 ACE_OS::strcmp (type, "*") == 0 || 00031 ACE_OS::strcmp (type, "%ALL") == 0); 00032 } 00033 00034 TAO_END_VERSIONED_NAMESPACE_DECL