TAO_Notify_Proxy_T< SERVANT_TYPE > Class Template Reference

The is a base class for all proxys , templatized by the servant type. All the Filter Admin and QoS Admin interface methods are implemented here by delegating to the admin implementations. More...

#include <Proxy_T.h>

Inheritance diagram for TAO_Notify_Proxy_T< SERVANT_TYPE >:

Inheritance graph
[legend]
Collaboration diagram for TAO_Notify_Proxy_T< SERVANT_TYPE >:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TAO_Notify_Proxy_T (void)
 Constuctor.

 ~TAO_Notify_Proxy_T ()
 Destructor.

virtual PortableServer::Servant servant (void)
 Implements TAO_Notify_Object::servant method.

virtual void _add_ref ()
 ServantBase refcount methods.

virtual void _remove_ref ()
virtual void validate_event_qos (const CosNotification::QoSProperties &required_qos, CosNotification::NamedPropertyRangeSeq_out available_qos) throw ( CORBA::SystemException, CosNotification::UnsupportedQoS )
virtual CosNotification::QoSPropertiesget_qos () throw ( CORBA::SystemException )
 Get the QoS Properties.

virtual void set_qos (const CosNotification::QoSProperties &qos) throw ( CORBA::SystemException, CosNotification::UnsupportedQoS )
 Set the QoS Properties.

virtual void validate_qos (const CosNotification::QoSProperties &required_qos, CosNotification::NamedPropertyRangeSeq_out available_qos) throw ( CORBA::SystemException, CosNotification::UnsupportedQoS )
virtual CosNotifyFilter::FilterID add_filter (CosNotifyFilter::Filter_ptr new_filter) throw ( CORBA::SystemException )
virtual void remove_filter (CosNotifyFilter::FilterID filter) throw ( CORBA::SystemException, CosNotifyFilter::FilterNotFound )
virtual CosNotifyFilter::Filter_ptr get_filter (CosNotifyFilter::FilterID filter) throw ( CORBA::SystemException, CosNotifyFilter::FilterNotFound )
virtual CosNotifyFilter::FilterIDSeqget_all_filters () throw ( CORBA::SystemException )
virtual void remove_all_filters () throw ( CORBA::SystemException )

Detailed Description

template<class SERVANT_TYPE>
class TAO_Notify_Proxy_T< SERVANT_TYPE >

The is a base class for all proxys , templatized by the servant type. All the Filter Admin and QoS Admin interface methods are implemented here by delegating to the admin implementations.

Definition at line 38 of file Proxy_T.h.


Constructor & Destructor Documentation

template<class SERVANT_TYPE>
TAO_BEGIN_VERSIONED_NAMESPACE_DECL TAO_Notify_Proxy_T< SERVANT_TYPE >::TAO_Notify_Proxy_T void   ) 
 

Constuctor.

Definition at line 11 of file Proxy_T.cpp.

References TAO_Notify_Refcountable::_incr_refcnt().

00012 {
00013   // Any object that is used by the POA gets a reference count of 1 at construction
00014   this->_incr_refcnt();
00015 }

template<class SERVANT_TYPE>
TAO_Notify_Proxy_T< SERVANT_TYPE >::~TAO_Notify_Proxy_T  ) 
 

Destructor.

Definition at line 18 of file Proxy_T.cpp.

00019 {
00020 }


Member Function Documentation

template<class SERVANT_TYPE>
void TAO_Notify_Proxy_T< SERVANT_TYPE >::_add_ref  )  [virtual]
 

ServantBase refcount methods.

Definition at line 29 of file Proxy_T.cpp.

References TAO_Notify_Refcountable::_incr_refcnt().

00030 {
00031   this->_incr_refcnt ();
00032 }

template<class SERVANT_TYPE>
void TAO_Notify_Proxy_T< SERVANT_TYPE >::_remove_ref  )  [virtual]
 

Definition at line 35 of file Proxy_T.cpp.

References TAO_Notify_Refcountable::_decr_refcnt().

00036 {
00037   this->_decr_refcnt ();
00038 }

template<class SERVANT_TYPE>
CosNotifyFilter::FilterID TAO_Notify_Proxy_T< SERVANT_TYPE >::add_filter CosNotifyFilter::Filter_ptr  new_filter  )  throw ( CORBA::SystemException ) [virtual]
 

Definition at line 91 of file Proxy_T.cpp.

References ACE_CHECK_RETURN, ACE_ENV_ARG_PARAMETER, ACE_ENV_SINGLE_ARG_PARAMETER, ACE_GUARD_THROW_EX, CosNotifyFilter::FilterID, and TAO_SYNCH_MUTEX.

00095 {
00096   ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, ace_mon, this->lock_,
00097                       CORBA::INTERNAL ());
00098   ACE_CHECK_RETURN (0);
00099 
00100   CosNotifyFilter::FilterID fid =
00101     this->filter_admin_.add_filter (new_filter ACE_ENV_ARG_PARAMETER);
00102   ACE_CHECK_RETURN(0);
00103   this->self_change (ACE_ENV_SINGLE_ARG_PARAMETER);
00104   ACE_CHECK_RETURN(fid);
00105   return fid;
00106 }

template<class SERVANT_TYPE>
CosNotifyFilter::FilterIDSeq * TAO_Notify_Proxy_T< SERVANT_TYPE >::get_all_filters  )  throw ( CORBA::SystemException ) [virtual]
 

Definition at line 139 of file Proxy_T.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_PARAMETER, ACE_GUARD_THROW_EX, and TAO_SYNCH_MUTEX.

00143 {
00144   ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, ace_mon, this->lock_,
00145                       CORBA::INTERNAL ());
00146   ACE_CHECK_RETURN (0);
00147 
00148   return this->filter_admin_.get_all_filters (ACE_ENV_SINGLE_ARG_PARAMETER);
00149 }

template<class SERVANT_TYPE>
CosNotifyFilter::Filter_ptr TAO_Notify_Proxy_T< SERVANT_TYPE >::get_filter CosNotifyFilter::FilterID  filter  )  throw ( CORBA::SystemException, CosNotifyFilter::FilterNotFound ) [virtual]
 

Definition at line 125 of file Proxy_T.cpp.

References ACE_CHECK_RETURN, ACE_ENV_ARG_PARAMETER, ACE_GUARD_THROW_EX, CosNotifyFilter::FilterID, and TAO_SYNCH_MUTEX.

00130 {
00131   ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, ace_mon, this->lock_,
00132                       CORBA::INTERNAL ());
00133   ACE_CHECK_RETURN (CosNotifyFilter::Filter::_nil ());
00134 
00135   return this->filter_admin_.get_filter (filter ACE_ENV_ARG_PARAMETER);
00136 }

template<class SERVANT_TYPE>
CosNotification::QoSProperties * TAO_Notify_Proxy_T< SERVANT_TYPE >::get_qos  )  throw ( CORBA::SystemException ) [virtual]
 

Get the QoS Properties.

Reimplemented from TAO_Notify_Object.

Definition at line 51 of file Proxy_T.cpp.

References ACE_CHECK_RETURN, ACE_ENV_SINGLE_ARG_PARAMETER, ACE_GUARD_THROW_EX, TAO_Notify_Object::get_qos(), and TAO_SYNCH_MUTEX.

00055 {
00056   ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, ace_mon, this->lock_,
00057                       CORBA::INTERNAL ());
00058   ACE_CHECK_RETURN (0);
00059 
00060   return this->TAO_Notify_Object::get_qos (ACE_ENV_SINGLE_ARG_PARAMETER);
00061 }

template<class SERVANT_TYPE>
void TAO_Notify_Proxy_T< SERVANT_TYPE >::remove_all_filters  )  throw ( CORBA::SystemException ) [virtual]
 

Definition at line 152 of file Proxy_T.cpp.

References ACE_ENV_SINGLE_ARG_PARAMETER, ACE_GUARD_THROW_EX, and TAO_SYNCH_MUTEX.

00156 {
00157   ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, ace_mon, this->lock_,
00158                       CORBA::INTERNAL ());
00159 
00160   this->filter_admin_.remove_all_filters (ACE_ENV_SINGLE_ARG_PARAMETER);
00161 }

template<class SERVANT_TYPE>
void TAO_Notify_Proxy_T< SERVANT_TYPE >::remove_filter CosNotifyFilter::FilterID  filter  )  throw ( CORBA::SystemException, CosNotifyFilter::FilterNotFound ) [virtual]
 

Definition at line 109 of file Proxy_T.cpp.

References ACE_ENV_ARG_PARAMETER, ACE_GUARD_THROW_EX, CosNotifyFilter::FilterID, and TAO_SYNCH_MUTEX.

00117 {
00118   ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, ace_mon, this->lock_,
00119                       CORBA::INTERNAL ());
00120 
00121   this->filter_admin_.remove_filter (filter ACE_ENV_ARG_PARAMETER);
00122 }

template<class SERVANT_TYPE>
PortableServer::Servant TAO_Notify_Proxy_T< SERVANT_TYPE >::servant void   )  [virtual]
 

Implements TAO_Notify_Object::servant method.

Definition at line 23 of file Proxy_T.cpp.

00024 {
00025   return this;
00026 }

template<class SERVANT_TYPE>
void TAO_Notify_Proxy_T< SERVANT_TYPE >::set_qos const CosNotification::QoSProperties qos  )  throw ( CORBA::SystemException, CosNotification::UnsupportedQoS ) [virtual]
 

Set the QoS Properties.

Reimplemented from TAO_Notify_Object.

Definition at line 64 of file Proxy_T.cpp.

References ACE_ENV_ARG_PARAMETER, ACE_GUARD_THROW_EX, CosNotification::QoSProperties, TAO_Notify_Object::set_qos(), and TAO_SYNCH_MUTEX.

00069 {
00070   ACE_GUARD_THROW_EX (TAO_SYNCH_MUTEX, ace_mon, this->lock_,
00071                       CORBA::INTERNAL ());
00072 
00073   this->TAO_Notify_Object::set_qos (qos ACE_ENV_ARG_PARAMETER);
00074 }

template<class SERVANT_TYPE>
void TAO_Notify_Proxy_T< SERVANT_TYPE >::validate_event_qos const CosNotification::QoSProperties required_qos,
CosNotification::NamedPropertyRangeSeq_out  available_qos
throw ( CORBA::SystemException, CosNotification::UnsupportedQoS ) [virtual]
 

Definition at line 41 of file Proxy_T.cpp.

References ACE_THROW, and CosNotification::QoSProperties.

00046 {
00047   ACE_THROW (CORBA::NO_IMPLEMENT ());
00048 }

template<class SERVANT_TYPE>
void TAO_Notify_Proxy_T< SERVANT_TYPE >::validate_qos const CosNotification::QoSProperties required_qos,
CosNotification::NamedPropertyRangeSeq_out  available_qos
throw ( CORBA::SystemException, CosNotification::UnsupportedQoS ) [virtual]
 

Definition at line 77 of file Proxy_T.cpp.

References ACE_THROW, and CosNotification::QoSProperties.

00086 {
00087   ACE_THROW (CORBA::NO_IMPLEMENT ());
00088 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:32:40 2006 for TAO_CosNotification by doxygen 1.3.6