TAO::TkResource_Factory Class Reference

TAO_GUI_Resource_Factory for creating TkReactor. More...

#include <TkResource_Factory.h>

Inheritance diagram for TAO::TkResource_Factory:

Inheritance graph
[legend]
Collaboration diagram for TAO::TkResource_Factory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TkResource_Factory ()

Protected Member Functions

virtual ACE_Reactor_Implreactor_impl (void)
 Create or obtain current reactor implementation.


Private Attributes

ACE_TkReactorreactor_impl_
 Reactor created by this factory.

TAO_SYNCH_MUTEX lock_
 for internal locking.


Detailed Description

TAO_GUI_Resource_Factory for creating TkReactor.

This factory is intended for creating TkReactor for ORB. This factory can be feed into ORB using TAO_ORB_Core::set_gui_resource_factory method which is usually done by TAO_TkResource_Loader.

Definition at line 40 of file TkResource_Factory.h.


Constructor & Destructor Documentation

TAO::TkResource_Factory::TkResource_Factory  ) 
 

Definition at line 17 of file TkResource_Factory.cpp.

00018     : reactor_impl_ (0)
00019   {
00020   }


Member Function Documentation

ACE_Reactor_Impl * TAO::TkResource_Factory::reactor_impl void   )  [protected, virtual]
 

Create or obtain current reactor implementation.

Implements TAO::GUIResource_Factory.

Definition at line 23 of file TkResource_Factory.cpp.

References ACE_DEBUG, ACE_NEW_RETURN, LM_DEBUG, and TAO_debug_level.

00024   {
00025     // synchronized by external locks
00026     if (!this->reactor_impl_)
00027     {
00028       ACE_NEW_RETURN (this->reactor_impl_,
00029                       ACE_TkReactor (),
00030                       0);
00031 
00032       if (TAO_debug_level > 0)
00033         ACE_DEBUG ((LM_DEBUG,
00034                     "TAO (%P|%t) - ACE_TkReactor created \n"));
00035     }
00036 
00037     return this->reactor_impl_;
00038   }


Member Data Documentation

TAO_SYNCH_MUTEX TAO::TkResource_Factory::lock_ [private]
 

for internal locking.

Reimplemented from TAO::GUIResource_Factory.

Definition at line 57 of file TkResource_Factory.h.

ACE_TkReactor* TAO::TkResource_Factory::reactor_impl_ [private]
 

Reactor created by this factory.

Definition at line 54 of file TkResource_Factory.h.


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 12:27:09 2006 for TAO by doxygen 1.3.6