diff options
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp')
-rw-r--r-- | TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp b/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp index f00ff387b37..debe138d960 100644 --- a/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp +++ b/TAO/orbsvcs/orbsvcs/Notify/EventChannelFactory.cpp @@ -6,7 +6,7 @@ #include "EventChannelFactory.inl" #endif /* __ACE_INLINE__ */ -ACE_RCSID(Notify, TAO_NS_EventChannelFactory, "$Id$") +ACE_RCSID(Notify, TAO_Notify_EventChannelFactory, "$Id$") #include "ace/Dynamic_Service.h" #include "Properties.h" @@ -17,25 +17,25 @@ ACE_RCSID(Notify, TAO_NS_EventChannelFactory, "$Id$") #include "Find_Worker_T.h" #include "Seq_Worker_T.h" -typedef TAO_NS_Find_Worker_T<TAO_NS_EventChannel +typedef TAO_Notify_Find_Worker_T<TAO_Notify_EventChannel , CosNotifyChannelAdmin::EventChannel , CosNotifyChannelAdmin::EventChannel_ptr , CosNotifyChannelAdmin::ChannelNotFound> -TAO_NS_EventChannel_Find_Worker; +TAO_Notify_EventChannel_Find_Worker; -typedef TAO_NS_Seq_Worker_T<TAO_NS_EventChannel> TAO_NS_EventChannel_Seq_Worker; +typedef TAO_Notify_Seq_Worker_T<TAO_Notify_EventChannel> TAO_Notify_EventChannel_Seq_Worker; -TAO_NS_EventChannelFactory::TAO_NS_EventChannelFactory (void) +TAO_Notify_EventChannelFactory::TAO_Notify_EventChannelFactory (void) :ec_container_ (0) { } -TAO_NS_EventChannelFactory::~TAO_NS_EventChannelFactory () +TAO_Notify_EventChannelFactory::~TAO_Notify_EventChannelFactory () { } void -TAO_NS_EventChannelFactory::destroy (ACE_ENV_SINGLE_ARG_DECL) +TAO_Notify_EventChannelFactory::destroy (ACE_ENV_SINGLE_ARG_DECL) ACE_THROW_SPEC (( CORBA::SystemException )) @@ -43,7 +43,7 @@ TAO_NS_EventChannelFactory::destroy (ACE_ENV_SINGLE_ARG_DECL) if (this->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER) == 1) return; - TAO_NS_Properties* properties = TAO_NS_PROPERTIES::instance(); + TAO_Notify_Properties* properties = TAO_Notify_PROPERTIES::instance(); delete this->ec_container_; @@ -57,30 +57,30 @@ TAO_NS_EventChannelFactory::destroy (ACE_ENV_SINGLE_ARG_DECL) } void -TAO_NS_EventChannelFactory::init (PortableServer::POA_ptr poa ACE_ENV_ARG_DECL) +TAO_Notify_EventChannelFactory::init (PortableServer::POA_ptr poa ACE_ENV_ARG_DECL) { this->default_filter_factory_ = - TAO_NS_PROPERTIES::instance()->builder()->build_filter_factory (ACE_ENV_SINGLE_ARG_PARAMETER); + TAO_Notify_PROPERTIES::instance()->builder()->build_filter_factory (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; // Init ec_container_ ACE_NEW_THROW_EX (this->ec_container_, - TAO_NS_EventChannel_Container (), + TAO_Notify_EventChannel_Container (), CORBA::INTERNAL ()); ACE_CHECK; this->ec_container_->init (ACE_ENV_SINGLE_ARG_PARAMETER); ACE_CHECK; - TAO_NS_POA_Helper* object_poa = 0; + TAO_Notify_POA_Helper* object_poa = 0; // Bootstrap initial Object POA ACE_NEW_THROW_EX (object_poa, - TAO_NS_POA_Helper (), + TAO_Notify_POA_Helper (), CORBA::NO_MEMORY ()); ACE_CHECK; - auto_ptr<TAO_NS_POA_Helper> auto_object_poa (object_poa); + auto_ptr<TAO_Notify_POA_Helper> auto_object_poa (object_poa); object_poa->init (poa ACE_ENV_ARG_PARAMETER); ACE_CHECK; @@ -98,35 +98,35 @@ TAO_NS_EventChannelFactory::init (PortableServer::POA_ptr poa ACE_ENV_ARG_DECL) } void -TAO_NS_EventChannelFactory::_add_ref (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) +TAO_Notify_EventChannelFactory::_add_ref (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) { this->_incr_refcnt (); } void -TAO_NS_EventChannelFactory::_remove_ref (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) +TAO_Notify_EventChannelFactory::_remove_ref (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) { this->_decr_refcnt (); } void -TAO_NS_EventChannelFactory::release (void) +TAO_Notify_EventChannelFactory::release (void) { delete this; //@@ inform factory } void -TAO_NS_EventChannelFactory::remove (TAO_NS_EventChannel* event_channel ACE_ENV_ARG_DECL) +TAO_Notify_EventChannelFactory::remove (TAO_Notify_EventChannel* event_channel ACE_ENV_ARG_DECL) { this->ec_container_->remove (event_channel ACE_ENV_ARG_PARAMETER); ACE_CHECK; } int -TAO_NS_EventChannelFactory::shutdown (ACE_ENV_SINGLE_ARG_DECL) +TAO_Notify_EventChannelFactory::shutdown (ACE_ENV_SINGLE_ARG_DECL) { - if (TAO_NS_Object::shutdown (ACE_ENV_SINGLE_ARG_PARAMETER) == 1) + if (TAO_Notify_Object::shutdown (ACE_ENV_SINGLE_ARG_PARAMETER) == 1) return 1; this->ec_container_->shutdown (ACE_ENV_SINGLE_ARG_PARAMETER); @@ -136,12 +136,12 @@ TAO_NS_EventChannelFactory::shutdown (ACE_ENV_SINGLE_ARG_DECL) } CosNotifyFilter::FilterFactory_ptr -TAO_NS_EventChannelFactory::get_default_filter_factory (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) +TAO_Notify_EventChannelFactory::get_default_filter_factory (ACE_ENV_SINGLE_ARG_DECL_NOT_USED) { return CosNotifyFilter::FilterFactory::_duplicate (this->default_filter_factory_.in ()); } -::CosNotifyChannelAdmin::EventChannel_ptr TAO_NS_EventChannelFactory::create_channel ( +::CosNotifyChannelAdmin::EventChannel_ptr TAO_Notify_EventChannelFactory::create_channel ( const CosNotification::QoSProperties & initial_qos, const CosNotification::AdminProperties & initial_admin, CosNotifyChannelAdmin::ChannelID_out id ACE_ENV_ARG_DECL @@ -152,7 +152,7 @@ TAO_NS_EventChannelFactory::get_default_filter_factory (ACE_ENV_SINGLE_ARG_DECL_ , CosNotification::UnsupportedAdmin )) { - return TAO_NS_PROPERTIES::instance()->builder()->build_event_channel (this + return TAO_Notify_PROPERTIES::instance()->builder()->build_event_channel (this , initial_qos , initial_admin , id @@ -160,50 +160,50 @@ TAO_NS_EventChannelFactory::get_default_filter_factory (ACE_ENV_SINGLE_ARG_DECL_ } CosNotifyChannelAdmin::ChannelIDSeq* -TAO_NS_EventChannelFactory::get_all_channels (ACE_ENV_SINGLE_ARG_DECL) +TAO_Notify_EventChannelFactory::get_all_channels (ACE_ENV_SINGLE_ARG_DECL) ACE_THROW_SPEC (( CORBA::SystemException )) { - TAO_NS_EventChannel_Seq_Worker seq_worker; + TAO_Notify_EventChannel_Seq_Worker seq_worker; return seq_worker.create (*this->ec_container_ ACE_ENV_ARG_PARAMETER); } CosNotifyChannelAdmin::EventChannel_ptr -TAO_NS_EventChannelFactory::get_event_channel (CosNotifyChannelAdmin::ChannelID id ACE_ENV_ARG_DECL) +TAO_Notify_EventChannelFactory::get_event_channel (CosNotifyChannelAdmin::ChannelID id ACE_ENV_ARG_DECL) ACE_THROW_SPEC (( CORBA::SystemException , CosNotifyChannelAdmin::ChannelNotFound )) { - TAO_NS_EventChannel_Find_Worker find_worker; + TAO_Notify_EventChannel_Find_Worker find_worker; return find_worker.resolve (id, *this->ec_container_ ACE_ENV_ARG_PARAMETER); } #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION) -template class TAO_NS_Find_Worker_T<TAO_NS_EventChannel +template class TAO_Notify_Find_Worker_T<TAO_Notify_EventChannel , CosNotifyChannelAdmin::EventChannel , CosNotifyChannelAdmin::EventChannel_ptr , CosNotifyChannelAdmin::ChannelNotFound>; -template class TAO_NS_Seq_Worker_T<TAO_NS_EventChannel>; +template class TAO_Notify_Seq_Worker_T<TAO_Notify_EventChannel>; -template class TAO_NS_Container_T <TAO_NS_EventChannel>; +template class TAO_Notify_Container_T <TAO_Notify_EventChannel>; -template class TAO_ESF_Shutdown_Proxy<TAO_NS_EventChannel>; +template class TAO_ESF_Shutdown_Proxy<TAO_Notify_EventChannel>; #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA) -#pragma instantiate TAO_NS_Find_Worker_T<TAO_NS_EventChannel +#pragma instantiate TAO_Notify_Find_Worker_T<TAO_Notify_EventChannel , CosNotifyChannelAdmin::EventChannel , CosNotifyChannelAdmin::EventChannel_ptr , CosNotifyChannelAdmin::ChannelNotFound> -#pragma instantiate TAO_NS_Seq_Worker_T<TAO_NS_EventChannel> +#pragma instantiate TAO_Notify_Seq_Worker_T<TAO_Notify_EventChannel> -#pragma instantiate TAO_NS_Container_T <TAO_NS_EventChannel> +#pragma instantiate TAO_Notify_Container_T <TAO_Notify_EventChannel> -#pragma instantiate TAO_ESF_Shutdown_Proxy<TAO_NS_EventChannel>; +#pragma instantiate TAO_ESF_Shutdown_Proxy<TAO_Notify_EventChannel>; #endif /*ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ |