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

ACE_QoS_Decorator_Base Class Reference

This class is the Decorator Pattern Base class for decorating ACE_Event_Handler. More...

#include <QoS_Decorator.h>

Inheritance diagram for ACE_QoS_Decorator_Base:

Inheritance graph
[legend]
Collaboration diagram for ACE_QoS_Decorator_Base:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_QoS_Decorator_Base (void)
 Constructor. More...

 ACE_QoS_Decorator_Base (ACE_Event_Handler *event_handler)
 Constructor. More...

 ~ACE_QoS_Decorator_Base (void)
 Destructor. More...

virtual ACE_HANDLE get_handle (void) const
 Forwards the request to its event_handler_ component. More...

virtual int handle_input (ACE_HANDLE fd)
 Forwards the request to its event_handler_ component. More...

virtual int handle_qos (ACE_HANDLE fd)
 Forwards the request to its event_handler_ component. More...


Private Attributes

ACE_Event_Handlerevent_handler_
 The event handler that is decorated by this class. More...


Detailed Description

This class is the Decorator Pattern Base class for decorating ACE_Event_Handler.

It simply forwards the requests for get_handle (), handle_input () and handle_qos () to its event_handler_ component. Concrete decorators for ACE_Event_Handler will use this class to access the basic event handler functionality and decorate that by their own implementation.

Definition at line 43 of file QoS_Decorator.h.


Constructor & Destructor Documentation

ACE_QoS_Decorator_Base::ACE_QoS_Decorator_Base void   
 

Constructor.

Definition at line 11 of file QoS_Decorator.cpp.

00012 {}

ACE_QoS_Decorator_Base::ACE_QoS_Decorator_Base ACE_Event_Handler   event_handler
 

Constructor.

Definition at line 15 of file QoS_Decorator.cpp.

00017   : event_handler_ (event_handler)
00018 {
00019 }

ACE_QoS_Decorator_Base::~ACE_QoS_Decorator_Base void   
 

Destructor.

Definition at line 22 of file QoS_Decorator.cpp.

00023 {
00024 }


Member Function Documentation

ACE_HANDLE ACE_QoS_Decorator_Base::get_handle void    const [virtual]
 

Forwards the request to its event_handler_ component.

Reimplemented from ACE_Event_Handler.

Reimplemented in ACE_QoS_Decorator.

Definition at line 28 of file QoS_Decorator.cpp.

References event_handler_, and ACE_Event_Handler::get_handle.

Referenced by ACE_QoS_Decorator::get_handle.

00029 {
00030  return this->event_handler_->get_handle ();
00031 }

int ACE_QoS_Decorator_Base::handle_input ACE_HANDLE    fd [virtual]
 

Forwards the request to its event_handler_ component.

Reimplemented from ACE_Event_Handler.

Reimplemented in ACE_QoS_Decorator.

Definition at line 35 of file QoS_Decorator.cpp.

References event_handler_, and ACE_Event_Handler::handle_input.

Referenced by ACE_QoS_Decorator::handle_input.

00036 {
00037   return this->event_handler_->handle_input (fd);
00038 }

int ACE_QoS_Decorator_Base::handle_qos ACE_HANDLE    fd [virtual]
 

Forwards the request to its event_handler_ component.

Reimplemented from ACE_Event_Handler.

Reimplemented in ACE_QoS_Decorator.

Definition at line 42 of file QoS_Decorator.cpp.

References event_handler_, and ACE_Event_Handler::handle_qos.

Referenced by ACE_QoS_Event_Handler::handle_input, and ACE_QoS_Decorator::handle_qos.

00043 {
00044   return this->event_handler_->handle_qos (fd);
00045 }


Member Data Documentation

ACE_Event_Handler* ACE_QoS_Decorator_Base::event_handler_ [private]
 

The event handler that is decorated by this class.

Definition at line 70 of file QoS_Decorator.h.

Referenced by get_handle, handle_input, and handle_qos.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 13:17:44 2003 for ACE_QoS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002