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

ACE_Framework_Component_T Class Template Reference

This class inherits the interface of the abstract ACE_Framework_Component class and is instantiated with the implementation of the concrete component class <class Concrete>. More...

#include <Framework_Component_T.h>

Inheritance diagram for ACE_Framework_Component_T:

Inheritance graph
[legend]
Collaboration diagram for ACE_Framework_Component_T:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_Framework_Component_T (Concrete *concrete)
 Constructor. More...

 ~ACE_Framework_Component_T (void)
 Destructor. More...

void close_singleton (void)
 Close the contained singleton. More...


Detailed Description

template<class Concrete>
class ACE_Framework_Component_T< Concrete >

This class inherits the interface of the abstract ACE_Framework_Component class and is instantiated with the implementation of the concrete component class <class Concrete>.

This design is similar to the Adapter and Decorator patterns from the ``Gang of Four'' book. Note that <class Concrete> need not inherit from a common class since ACE_Framework_Component provides the uniform virtual interface! (implementation based on ACE_Dumpable_Adapter in <ace/Dump_T.h>.

Definition at line 35 of file Framework_Component_T.h.


Constructor & Destructor Documentation

template<class Concrete>
ACE_Framework_Component_T< Concrete >::ACE_Framework_Component_T Concrete *    concrete
 

Constructor.

Definition at line 15 of file Framework_Component_T.cpp.

References ACE_TRACE.

00016   : ACE_Framework_Component ((void *) concrete, concrete->dll_name (), concrete->name ())
00017 {
00018   ACE_TRACE ("ACE_Framework_Component_T<Concrete>::ctor");
00019 }

template<class Concrete>
ACE_Framework_Component_T< Concrete >::~ACE_Framework_Component_T void   
 

Destructor.

Definition at line 22 of file Framework_Component_T.cpp.

References ACE_TRACE.

00023 {
00024   ACE_TRACE ("ACE_Framework_Component_T<Concrete>::~ACE_Framework_Component_T");
00025   Concrete::close_singleton ();
00026 }


Member Function Documentation

template<class Concrete>
void ACE_Framework_Component_T< Concrete >::close_singleton void    [virtual]
 

Close the contained singleton.

Implements ACE_Framework_Component.

Definition at line 29 of file Framework_Component_T.cpp.

References ACE_TRACE.

00030 {
00031   ACE_TRACE ("ACE_Framework_Component_T<Concrete>::close_singleton");
00032   Concrete::close_singleton ();
00033 }


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 12:48:05 2003 for ACE by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002