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

TAO_XT_Resource_Factory Class Reference

TAO's default resource factory. More...

#include <xt_resource.h>

Inheritance diagram for TAO_XT_Resource_Factory:

Inheritance graph
[legend]
Collaboration diagram for TAO_XT_Resource_Factory:

Collaboration graph
[legend]
List of all members.

Public Methods

 TAO_XT_Resource_Factory (void)
 Constructor. More...


Static Public Methods

void set_context (XtAppContext context)
 Set the context used to create the XtReactor. More...


Protected Methods

virtual ACE_Reactor_Implallocate_reactor_impl (void) const
 Obtain the reactor implementation. More...


Static Private Attributes

XtAppContext context_ = 0

Detailed Description

TAO's default resource factory.

Using a <{resource source specifier}> as a discriminator, the factory can return resource instances which are, e.g., global, stored in thread-specific storage, stored in shared memory, etc.

Definition at line 40 of file xt_resource.h.


Constructor & Destructor Documentation

ACE_INLINE TAO_XT_Resource_Factory::TAO_XT_Resource_Factory void   
 

Constructor.

Definition at line 4 of file xt_resource.i.

00005 {
00006 }


Member Function Documentation

ACE_Reactor_Impl * TAO_XT_Resource_Factory::allocate_reactor_impl void    const [protected, virtual]
 

Obtain the reactor implementation.

Reimplemented from TAO_Default_Resource_Factory.

Definition at line 18 of file xt_resource.cpp.

References ACE_NEW_RETURN, and context_.

00019 {
00020   if (TAO_XT_Resource_Factory::context_ == 0)
00021     return 0;
00022 
00023   ACE_Reactor_Impl *impl = 0;
00024 
00025   ACE_NEW_RETURN (impl, ACE_XtReactor (TAO_XT_Resource_Factory::context_), 0);
00026   return impl;
00027 }

void TAO_XT_Resource_Factory::set_context XtAppContext    context [static]
 

Set the context used to create the XtReactor.

Definition at line 30 of file xt_resource.cpp.

References context_.

00031 {
00032   TAO_XT_Resource_Factory::context_ = context;
00033 }


Member Data Documentation

XtAppContext TAO_XT_Resource_Factory::context_ = 0 [static, private]
 

Definition at line 15 of file xt_resource.cpp.

Referenced by allocate_reactor_impl, and set_context.


The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:47:45 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002