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