diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.cpp')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.cpp | 209 |
1 files changed, 0 insertions, 209 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.cpp deleted file mode 100644 index 08722d3288c..00000000000 --- a/TAO/orbsvcs/orbsvcs/Event/EC_Null_Factory.cpp +++ /dev/null @@ -1,209 +0,0 @@ -// $Id$ - -#include "EC_Null_Factory.h" -#include "EC_Dispatching.h" -#include "EC_Filter_Builder.h" -#include "EC_ConsumerAdmin.h" -#include "EC_SupplierAdmin.h" -#include "EC_ProxyConsumer.h" -#include "EC_ProxySupplier.h" -#include "EC_SupplierFiltering.h" -#include "EC_ObserverStrategy.h" -#include "EC_ProxyPushSupplier_Set_T.h" -#include "EC_Reactive_Timeout_Generator.h" - -#if ! defined (__ACE_INLINE__) -#include "EC_Null_Factory.i" -#endif /* __ACE_INLINE__ */ - -ACE_RCSID(Event, EC_Null_Factory, "$Id$") - -TAO_EC_Null_Factory::~TAO_EC_Null_Factory (void) -{ - delete this->supplier_filtering_; - this->supplier_filtering_ = 0; -} - -TAO_EC_Dispatching* -TAO_EC_Null_Factory::create_dispatching (TAO_EC_Event_Channel *) -{ - return new TAO_EC_Reactive_Dispatching (); -} - -void -TAO_EC_Null_Factory::destroy_dispatching (TAO_EC_Dispatching *x) -{ - delete x; -} - -TAO_EC_Filter_Builder* -TAO_EC_Null_Factory::create_filter_builder (TAO_EC_Event_Channel *) -{ - return new TAO_EC_Null_Filter_Builder; -} - -void -TAO_EC_Null_Factory::destroy_filter_builder (TAO_EC_Filter_Builder *x) -{ - delete x; -} - -TAO_EC_ConsumerAdmin* -TAO_EC_Null_Factory::create_consumer_admin (TAO_EC_Event_Channel *ec) -{ - return new TAO_EC_ConsumerAdmin (ec); -} - -void -TAO_EC_Null_Factory::destroy_consumer_admin (TAO_EC_ConsumerAdmin *x) -{ - delete x; -} - -TAO_EC_SupplierAdmin* -TAO_EC_Null_Factory::create_supplier_admin (TAO_EC_Event_Channel *ec) -{ - return new TAO_EC_SupplierAdmin (ec); -} - -void -TAO_EC_Null_Factory::destroy_supplier_admin (TAO_EC_SupplierAdmin *x) -{ - delete x; -} - -TAO_EC_ProxyPushSupplier* -TAO_EC_Null_Factory::create_proxy_push_supplier (TAO_EC_Event_Channel *ec) -{ - return new TAO_EC_ProxyPushSupplier (ec); -} - -void -TAO_EC_Null_Factory::destroy_proxy_push_supplier (TAO_EC_ProxyPushSupplier *x) -{ - delete x; -} - -TAO_EC_ProxyPushConsumer* -TAO_EC_Null_Factory::create_proxy_push_consumer (TAO_EC_Event_Channel *ec) -{ - if (this->supplier_filtering_ == 0) - ACE_NEW_RETURN (this->supplier_filtering_, - TAO_EC_Null_SupplierFiltering (ec), - 0); - return new TAO_EC_ProxyPushConsumer (ec, this->supplier_filtering_); -} - -void -TAO_EC_Null_Factory::destroy_proxy_push_consumer (TAO_EC_ProxyPushConsumer *x) -{ - delete x; -} - -TAO_EC_Timeout_Generator* -TAO_EC_Null_Factory::create_timeout_generator (TAO_EC_Event_Channel *ec) -{ - // @@ TODO fixme - TAO_ORB_Core* orb_core = TAO_ORB_Core_instance (); - return new TAO_EC_Reactive_Timeout_Generator (orb_core->reactor ()); -} - -void -TAO_EC_Null_Factory::destroy_timeout_generator (TAO_EC_Timeout_Generator *x) -{ - delete x; -} - -TAO_EC_ObserverStrategy* -TAO_EC_Null_Factory::create_observer_strategy (TAO_EC_Event_Channel *) -{ - return new TAO_EC_Null_ObserverStrategy; -} - -void -TAO_EC_Null_Factory::destroy_observer_strategy (TAO_EC_ObserverStrategy *x) -{ - delete x; -} - -TAO_EC_ProxyPushSupplier_Set* -TAO_EC_Null_Factory::create_proxy_push_supplier_set (TAO_EC_Event_Channel *) -{ - return new TAO_EC_ProxyPushSupplier_Set_Immediate<ACE_Null_Mutex> (); -} - -void -TAO_EC_Null_Factory::destroy_proxy_push_supplier_set (TAO_EC_ProxyPushSupplier_Set *x) -{ - delete x; -} - -PortableServer::POA_ptr -TAO_EC_Null_Factory::consumer_poa (CORBA::Environment&) -{ - return PortableServer::POA::_duplicate (this->poa_.in ()); -} - -PortableServer::POA_ptr -TAO_EC_Null_Factory::supplier_poa (CORBA::Environment&) -{ - return PortableServer::POA::_duplicate (this->poa_.in ()); -} - -ACE_Lock* -TAO_EC_Null_Factory::create_consumer_lock (void) -{ - return new ACE_Lock_Adapter<ACE_Null_Mutex> (); -} - -void -TAO_EC_Null_Factory::destroy_consumer_lock (ACE_Lock* x) -{ - delete x; -} - -ACE_Lock* -TAO_EC_Null_Factory::create_supplier_lock (void) -{ - return new ACE_Lock_Adapter<ACE_Null_Mutex> (); -} - -void -TAO_EC_Null_Factory::destroy_supplier_lock (ACE_Lock* x) -{ - delete x; -} - -ACE_Lock* -TAO_EC_Null_Factory::create_consumer_admin_lock (void) -{ - return new ACE_Lock_Adapter<ACE_Null_Mutex> (); -} - -void -TAO_EC_Null_Factory::destroy_consumer_admin_lock (ACE_Lock* x) -{ - delete x; -} - -ACE_Lock* -TAO_EC_Null_Factory::create_supplier_admin_lock (void) -{ - return new ACE_Lock_Adapter<ACE_Null_Mutex> (); -} - -void -TAO_EC_Null_Factory::destroy_supplier_admin_lock (ACE_Lock* x) -{ - delete x; -} - -#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) - -template class TAO_EC_ProxyPushSupplier_Set_Immediate<ACE_Null_Mutex>; - -#elif defined(ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) - -#pragma instantiate TAO_EC_ProxyPushSupplier_Set_Immediate<ACE_Null_Mutex> - -#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ |