TAO::TkResource_Loader Class Reference

Loads TAO resources related with Tk. More...

#include <TkResource_Loader.h>

List of all members.

Public Member Functions

 TkResource_Loader (void)
virtual ~TkResource_Loader (void)


Detailed Description

Loads TAO resources related with Tk.

This class changes the default reactor implementation into ACE_TkReactor one by calling TAO_ORB_Core::set_gui_resource_factory. User should create an instance of this class before ORB_init when the TAO server has has to be integrated within Tk event loop.

Please notice, this class has to be created in the main Tk thread, because set_gui_resource_factory creates a variable in TSS. This way TkReactor is instantiated only in Tk event loop thread.

Definition at line 45 of file TkResource_Loader.h.


Constructor & Destructor Documentation

TAO::TkResource_Loader::TkResource_Loader void   ) 
 

Definition at line 16 of file TkResource_Loader.cpp.

References ACE_NEW, and TAO_ORB_Core::set_gui_resource_factory().

00017   {
00018     TkResource_Factory *tmp = 0;
00019 
00020     ACE_NEW (tmp,
00021              TkResource_Factory ());
00022 
00023     TAO_ORB_Core::set_gui_resource_factory( tmp );
00024   }

TAO::TkResource_Loader::~TkResource_Loader void   )  [virtual]
 

Definition at line 26 of file TkResource_Loader.cpp.

00027   {
00028   }


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