Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

Event_Handler_T.i

Go to the documentation of this file.
00001 /* -*- C++ -*- */
00002 // $Id: Event_Handler_T.i,v 1.1.1.2 2001/12/04 14:33:00 chad Exp $
00003 
00004 template<class T> ACE_INLINE void
00005 ACE_Event_Handler_T<T>::op_handler (T *op)
00006 {
00007   ACE_TRACE ("ACE_Event_Handler_T<T>::op_handler");
00008   this->op_handler_ = op;
00009 }
00010 
00011 template<class T> ACE_INLINE T *
00012 ACE_Event_Handler_T<T>::op_handler (void)
00013 {
00014   ACE_TRACE ("ACE_Event_Handler_T<T>::op_handler");
00015   return this->op_handler_;
00016 }
00017 
00018 template<class T> ACE_INLINE ACE_HANDLE
00019 ACE_Event_Handler_T<T>::get_handle (void) const
00020 {
00021   ACE_TRACE ("ACE_Event_Handler_T<T>::get_handle");
00022   return this->get_handle_ == 0 ? -1 : (this->op_handler_->*get_handle_) ();
00023 }
00024 
00025 template<class T> ACE_INLINE void
00026 ACE_Event_Handler_T<T>::set_handle (ACE_HANDLE h)
00027 {
00028   ACE_TRACE ("ACE_Event_Handler_T<T>::set_handle");
00029   if (this->set_handle_ != 0)
00030     (this->op_handler_->*set_handle_) (h);
00031 }
00032 
00033 template<class T> ACE_INLINE int
00034 ACE_Event_Handler_T<T>::handle_input (ACE_HANDLE fd)
00035 {
00036   ACE_TRACE ("ACE_Event_Handler_T<T>::handle_input");
00037   return this->input_handler_ == 0 ? 0 : (this->op_handler_->*input_handler_) (fd);
00038 }
00039 
00040 template<class T> ACE_INLINE int
00041 ACE_Event_Handler_T<T>::handle_output (ACE_HANDLE fd)
00042 {
00043   ACE_TRACE ("ACE_Event_Handler_T<T>::handle_output");
00044   return this->output_handler_ == 0 ? 0 : (this->op_handler_->*output_handler_) (fd);
00045 }
00046 
00047 template<class T> ACE_INLINE int
00048 ACE_Event_Handler_T<T>::handle_exception (ACE_HANDLE fd)
00049 {
00050   ACE_TRACE ("ACE_Event_Handler_T<T>::handle_exception");
00051   return this->except_handler_ == 0 ? 0 : (this->op_handler_->*except_handler_) (fd);
00052 }
00053 
00054 template<class T> ACE_INLINE int
00055 ACE_Event_Handler_T<T>::handle_timeout (const ACE_Time_Value &tv, const void *arg)
00056 {
00057   ACE_TRACE ("ACE_Event_Handler_T<T>::handle_timeout");
00058   return this->to_handler_ == 0 ? 0 : (this->op_handler_->*to_handler_) (tv, arg);
00059 }
00060 
00061 template<class T> ACE_INLINE int
00062 ACE_Event_Handler_T<T>::handle_close (ACE_HANDLE fd, ACE_Reactor_Mask close_mask)
00063 {
00064   ACE_TRACE ("ACE_Event_Handler_T<T>::handle_close");
00065   return this->cl_handler_ == 0 ? 0 : (this->op_handler_->*cl_handler_) (fd, close_mask);
00066 }
00067 
00068 template<class T> ACE_INLINE int
00069 ACE_Event_Handler_T<T>::handle_signal (int signum, siginfo_t *s, ucontext_t *u)
00070 {
00071   ACE_TRACE ("ACE_Event_Handler_T<T>::handle_signal");
00072   return this->sig_handler_ == 0 ? 0 : (this->op_handler_->*sig_handler_) (signum, s, u);
00073 }
00074 
00075 template<class T> ACE_INLINE ACE_TYPENAME ACE_Event_Handler_T<T>::GET_HANDLE
00076 ACE_Event_Handler_T<T>::handle_get (void)
00077 {
00078   ACE_TRACE ("ACE_Event_Handler_T<T>::handle_get");
00079   return this->get_handle_;
00080 }
00081 
00082 template<class T> ACE_INLINE void
00083 ACE_Event_Handler_T<T>::handle_get (ACE_TYPENAME ACE_Event_Handler_T<T>::GET_HANDLE h)
00084 {
00085   ACE_TRACE ("ACE_Event_Handler_T<T>::handle_get");
00086   this->get_handle_ = h;
00087 }
00088 
00089 template<class T> ACE_INLINE ACE_TYPENAME ACE_Event_Handler_T<T>::SET_HANDLE
00090 ACE_Event_Handler_T<T>::handle_set (void)
00091 {
00092   ACE_TRACE ("ACE_Event_Handler_T<T>::handle_set");
00093   return this->set_handle_;
00094 }
00095 
00096 template<class T> ACE_INLINE void
00097 ACE_Event_Handler_T<T>::handle_set (ACE_TYPENAME ACE_Event_Handler_T<T>::SET_HANDLE h)
00098 {
00099   ACE_TRACE ("ACE_Event_Handler_T<T>::handle_set");
00100   this->set_handle_ = h;
00101 }
00102 
00103 template<class T> ACE_INLINE ACE_TYPENAME ACE_Event_Handler_T<T>::IO_HANDLER
00104 ACE_Event_Handler_T<T>::input_handler (void)
00105 {
00106   ACE_TRACE ("ACE_Event_Handler_T<T>::input_handler");
00107   return this->input_handler_;
00108 }
00109 
00110 template<class T> ACE_INLINE void
00111 ACE_Event_Handler_T<T>::input_handler (ACE_TYPENAME ACE_Event_Handler_T<T>::IO_HANDLER h)
00112 {
00113   ACE_TRACE ("ACE_Event_Handler_T<T>::input_handler");
00114   this->input_handler_ = h;
00115 }
00116 
00117 template<class T> ACE_INLINE ACE_TYPENAME ACE_Event_Handler_T<T>::IO_HANDLER
00118 ACE_Event_Handler_T<T>::output_handler (void)
00119 {
00120   ACE_TRACE ("ACE_Event_Handler_T<T>::output_handler");
00121   return this->output_handler_;
00122 }
00123 
00124 template<class T> ACE_INLINE void
00125 ACE_Event_Handler_T<T>::output_handler (ACE_TYPENAME ACE_Event_Handler_T<T>::IO_HANDLER h)
00126 {
00127   ACE_TRACE ("ACE_Event_Handler_T<T>::output_handler");
00128   this->output_handler_ = h;
00129 }
00130 
00131 template<class T> ACE_INLINE ACE_TYPENAME ACE_Event_Handler_T<T>::IO_HANDLER
00132 ACE_Event_Handler_T<T>::except_handler (void)
00133 {
00134   ACE_TRACE ("ACE_Event_Handler_T<T>::except_handler");
00135   return this->except_handler_;
00136 }
00137 
00138 template<class T> ACE_INLINE void
00139 ACE_Event_Handler_T<T>::except_handler (ACE_TYPENAME ACE_Event_Handler_T<T>::IO_HANDLER h)
00140 {
00141   ACE_TRACE ("ACE_Event_Handler_T<T>::except_handler");
00142   this->except_handler_ = h;
00143 }
00144 
00145 template<class T> ACE_INLINE ACE_TYPENAME ACE_Event_Handler_T<T>::TO_HANDLER
00146 ACE_Event_Handler_T<T>::to_handler (void)
00147 {
00148   ACE_TRACE ("ACE_Event_Handler_T<T>::to_handler");
00149   return this->to_handler_;
00150 }
00151 
00152 template<class T> ACE_INLINE void
00153 ACE_Event_Handler_T<T>::to_handler (ACE_TYPENAME ACE_Event_Handler_T<T>::TO_HANDLER h)
00154 {
00155   ACE_TRACE ("ACE_Event_Handler_T<T>::to_handler");
00156   this->to_handler_ = h;
00157 }
00158 
00159 template<class T> ACE_INLINE ACE_TYPENAME ACE_Event_Handler_T<T>::CL_HANDLER
00160 ACE_Event_Handler_T<T>::cl_handler (void)
00161 {
00162   ACE_TRACE ("ACE_Event_Handler_T<T>::cl_handler");
00163   return this->cl_handler_;
00164 }
00165 
00166 template<class T> ACE_INLINE void
00167 ACE_Event_Handler_T<T>::cl_handler (ACE_TYPENAME ACE_Event_Handler_T<T>::CL_HANDLER h)
00168 {
00169   ACE_TRACE ("ACE_Event_Handler_T<T>::cl_handler");
00170   this->cl_handler_ = h;
00171 }
00172 
00173 template<class T> ACE_INLINE ACE_TYPENAME ACE_Event_Handler_T<T>::SIG_HANDLER
00174 ACE_Event_Handler_T<T>::sig_handler (void)
00175 {
00176   ACE_TRACE ("ACE_Event_Handler_T<T>::sig_handler");
00177   return this->sig_handler_;
00178 }
00179 
00180 template<class T> ACE_INLINE void
00181 ACE_Event_Handler_T<T>::sig_handler (ACE_TYPENAME ACE_Event_Handler_T<T>::SIG_HANDLER h)
00182 {
00183   ACE_TRACE ("ACE_Event_Handler_T<T>::sig_handler");
00184   this->sig_handler_ = h;
00185 }

Generated on Mon Jun 16 11:19:38 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002