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

ACE_RMCast_Singleton_Factory Class Reference

Implement an ACE_RMCast_Module_Factory that "creates" a single object. More...

#include <RMCast_Singleton_Factory.h>

Inheritance diagram for ACE_RMCast_Singleton_Factory

Inheritance graph
[legend]
Collaboration diagram for ACE_RMCast_Singleton_Factory:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_RMCast_Singleton_Factory (ACE_RMCast_Module *singleton)
 Constructor. More...

virtual ~ACE_RMCast_Singleton_Factory (void)
 Destructor.

virtual ACE_RMCast_Modulecreate (void)
 Create a new proxy.

virtual void destroy (ACE_RMCast_Module *)
 Destroy a proxy. More...


Private Attributes

ACE_RMCast_Modulesingleton_
 The singleton object.


Detailed Description

Implement an ACE_RMCast_Module_Factory that "creates" a single object.

Many applications (and even some internal components), will use a single ACE_RMCast_Module to process all the events, for example, a receiver may decide to use the same ACE_RMCast_Module to process all incoming events, instead of using one per remote sender.


Constructor & Destructor Documentation

ACE_INLINE ACE_RMCast_Singleton_Factory::ACE_RMCast_Singleton_Factory ( ACE_RMCast_Module * singleton )
 

Constructor.

The create() method will return always

Parameters:
singleton.  

ACE_RMCast_Singleton_Factory::~ACE_RMCast_Singleton_Factory ( void ) [virtual]
 

Destructor.


Member Function Documentation

ACE_RMCast_Module * ACE_RMCast_Singleton_Factory::create ( void ) [virtual]
 

Create a new proxy.

Reimplemented from ACE_RMCast_Module_Factory.

void ACE_RMCast_Singleton_Factory::destroy ( ACE_RMCast_Module * receiver ) [virtual]
 

Destroy a proxy.

Some factories may allocate modules from a pool, or return the same module for all proxies. Consequently, only the factory knows how to destroy them.

Reimplemented from ACE_RMCast_Module_Factory.


Member Data Documentation

ACE_RMCast_Module * ACE_RMCast_Singleton_Factory::singleton_ [private]
 

The singleton object.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 10:46:10 2001 for ACE_RMCast by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000