diff options
Diffstat (limited to 'ACE/TAO/orbsvcs/orbsvcs/Notify/EventType.inl')
-rw-r--r-- | ACE/TAO/orbsvcs/orbsvcs/Notify/EventType.inl | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ACE/TAO/orbsvcs/orbsvcs/Notify/EventType.inl b/ACE/TAO/orbsvcs/orbsvcs/Notify/EventType.inl new file mode 100644 index 00000000000..d0a5fded1a5 --- /dev/null +++ b/ACE/TAO/orbsvcs/orbsvcs/Notify/EventType.inl @@ -0,0 +1,34 @@ +// -*- C++ -*- +// +// $Id$ + +TAO_BEGIN_VERSIONED_NAMESPACE_DECL + +ACE_INLINE u_long +TAO_Notify_EventType::hash (void) const +{ + return this->hash_value_; +} + +ACE_INLINE const CosNotification::EventType& +TAO_Notify_EventType::native (void) const +{ + return event_type_; +} + +ACE_INLINE bool +TAO_Notify_EventType::domain_is_wildcard (const char* domain) const +{ + return (domain == 0 || ACE_OS::strcmp (domain, "") == 0 || + ACE_OS::strcmp (domain, "*") == 0); +} + +ACE_INLINE bool +TAO_Notify_EventType::type_is_wildcard (const char* type) const +{ + return (type == 0 || ACE_OS::strcmp (type, "") == 0 || + ACE_OS::strcmp (type, "*") == 0 || + ACE_OS::strcmp (type, "%ALL") == 0); +} + +TAO_END_VERSIONED_NAMESPACE_DECL |