00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file TkResource_Loader.h 00006 * 00007 * $Id: TkResource_Loader.h 73516 2006-07-14 21:10:15Z jwillemsen $ 00008 * 00009 * @author Balachandran Natarajan <bala@cs.wustl.edu> 00010 * @author Marek Brudka <mbrudka@aster.pl> 00011 */ 00012 //============================================================================= 00013 00014 #ifndef TAO_TKRESOURCE_LOADER_H 00015 #define TAO_TKRESOURCE_LOADER_H 00016 00017 #include /**/ "ace/pre.h" 00018 00019 #include "tao/TkResource/TAO_TkResource_Export.h" 00020 00021 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00022 # pragma once 00023 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00024 00025 #include "tao/Versioned_Namespace.h" 00026 00027 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00028 00029 namespace TAO 00030 { 00031 /** 00032 * @class TkResource_Loader 00033 * 00034 * @brief Loads TAO resources related with Tk. 00035 * 00036 * This class changes the default reactor implementation into 00037 * ACE_TkReactor one by calling TAO_ORB_Core::set_gui_resource_factory. 00038 * User should create an instance of this class before ORB_init 00039 * when the TAO server has has to be integrated within Tk event loop. 00040 * 00041 * Please notice, this class has to be created in the main Tk thread, 00042 * because set_gui_resource_factory creates a variable in TSS. This way 00043 * TkReactor is instantiated only in Tk event loop thread. 00044 */ 00045 class TAO_TkResource_Export TkResource_Loader 00046 { 00047 public: 00048 00049 TkResource_Loader (void); 00050 00051 virtual ~TkResource_Loader (void); 00052 00053 }; 00054 } 00055 00056 TAO_END_VERSIONED_NAMESPACE_DECL 00057 00058 #include /**/ "ace/post.h" 00059 00060 #endif /* TAO_TKRESOURCE_LOADER_H */