00001 // $Id: Supplier.cpp 76589 2007-01-25 18:04:11Z elliott_c $ 00002 00003 #include "orbsvcs/Notify/Supplier.h" 00004 00005 #if ! defined (__ACE_INLINE__) 00006 #include "orbsvcs/Notify/Supplier.inl" 00007 #endif /* __ACE_INLINE__ */ 00008 00009 ACE_RCSID(Notify, TAO_Notify_Supplier, "$Id: Supplier.cpp 76589 2007-01-25 18:04:11Z elliott_c $") 00010 00011 #include "orbsvcs/Notify/ProxyConsumer.h" 00012 #include "orbsvcs/Notify/Proxy.h" 00013 00014 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00015 00016 TAO_Notify_Supplier::TAO_Notify_Supplier (TAO_Notify_ProxyConsumer* proxy) 00017 : proxy_ (proxy) 00018 { 00019 } 00020 00021 TAO_Notify_Supplier::~TAO_Notify_Supplier () 00022 { 00023 } 00024 00025 TAO_Notify_Proxy* 00026 TAO_Notify_Supplier::proxy (void) 00027 { 00028 return this->proxy_consumer (); 00029 } 00030 00031 void 00032 TAO_Notify_Supplier::dispatch_updates_i ( 00033 const CosNotification::EventTypeSeq& added, 00034 const CosNotification::EventTypeSeq& removed) 00035 { 00036 if (!CORBA::is_nil (this->subscribe_.in ())) 00037 this->subscribe_->subscription_change (added, removed); 00038 } 00039 00040 TAO_END_VERSIONED_NAMESPACE_DECL