summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp103
1 files changed, 0 insertions, 103 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp b/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp
deleted file mode 100644
index 0f038b70f36..00000000000
--- a/TAO/orbsvcs/orbsvcs/Event/EC_ConsumerAdmin.cpp
+++ /dev/null
@@ -1,103 +0,0 @@
-// $Id$
-
-#include "orbsvcs/RtecEventChannelAdminC.h"
-#include "EC_ConsumerAdmin.h"
-#include "EC_ProxySupplier.h"
-#include "EC_Event_Channel.h"
-
-#if ! defined (__ACE_INLINE__)
-#include "EC_ConsumerAdmin.i"
-#endif /* __ACE_INLINE__ */
-
-ACE_RCSID(Event, EC_ConsumerAdmin, "$Id$")
-
-TAO_EC_ConsumerAdmin::TAO_EC_ConsumerAdmin (TAO_EC_Event_Channel *ec)
- : event_channel_ (ec)
-{
-}
-
-TAO_EC_ConsumerAdmin::~TAO_EC_ConsumerAdmin (void)
-{
-}
-
-void
-TAO_EC_ConsumerAdmin::set_default_POA (PortableServer::POA_ptr poa)
-{
- this->default_POA_ =
- PortableServer::POA::_duplicate (poa);
-}
-
-void
-TAO_EC_ConsumerAdmin::connected (TAO_EC_ProxyPushConsumer *consumer,
- CORBA::Environment &ACE_TRY_ENV)
-{
- SupplierSetIterator end = this->end ();
- for (SupplierSetIterator i = this->begin ();
- i != end;
- ++i)
- {
- (*i)->connected (consumer, ACE_TRY_ENV);
- }
-}
-
-void
-TAO_EC_ConsumerAdmin::disconnected (TAO_EC_ProxyPushConsumer *consumer,
- CORBA::Environment &ACE_TRY_ENV)
-{
- SupplierSetIterator end = this->end ();
- for (SupplierSetIterator i = this->begin ();
- i != end;
- ++i)
- {
- (*i)->disconnected (consumer, ACE_TRY_ENV);
- }
-}
-
-void
-TAO_EC_ConsumerAdmin::connected (TAO_EC_ProxyPushSupplier *supplier,
- CORBA::Environment &ACE_TRY_ENV)
-{
- if (this->all_suppliers_.insert (supplier) != 0)
- ACE_THROW (CORBA::NO_MEMORY (CORBA::COMPLETED_NO));
-}
-
-void
-TAO_EC_ConsumerAdmin::disconnected (TAO_EC_ProxyPushSupplier *supplier,
- CORBA::Environment &ACE_TRY_ENV)
-{
- if (this->all_suppliers_.remove (supplier) != 0)
- ACE_THROW (RtecEventChannelAdmin::EventChannel::SUBSCRIPTION_ERROR ());
-}
-
-RtecEventChannelAdmin::ProxyPushSupplier_ptr
-TAO_EC_ConsumerAdmin::obtain_push_supplier (CORBA::Environment &ACE_TRY_ENV)
-{
- TAO_EC_ProxyPushSupplier* supplier =
- this->event_channel_->create_proxy_push_supplier ();
-
- PortableServer::POA_var poa =
- this->event_channel_->supplier_poa (ACE_TRY_ENV);
- supplier->set_default_POA (poa.in ());
-
- return supplier->_this (ACE_TRY_ENV);
-}
-
-PortableServer::POA_ptr
-TAO_EC_ConsumerAdmin::_default_POA (CORBA::Environment&)
-{
- return PortableServer::POA::_duplicate (this->default_POA_.in ());
-}
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-
-template class ACE_Node<TAO_EC_ProxyPushSupplier*>;
-template class ACE_Unbounded_Set<TAO_EC_ProxyPushSupplier*>;
-template class ACE_Unbounded_Set_Iterator<TAO_EC_ProxyPushSupplier*>;
-
-#elif defined(ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-
-#pragma instantiate ACE_Node<TAO_EC_ProxyPushSupplier*>
-#pragma instantiate ACE_Unbounded_Set<TAO_EC_ProxyPushSupplier*>
-#pragma instantiate ACE_Unbounded_Set_Iterator<TAO_EC_ProxyPushSupplier*>
-
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */