00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file FoxResource_Loader.h 00006 * 00007 * $Id: FoxResource_Loader.h 88995 2010-02-15 09:35:35Z johnnyw $ 00008 * 00009 * @author Balachandran Natarajan <bala@cs.wustl.edu> 00010 * @author Marek Brudka <mbrudka@aster.pl> 00011 */ 00012 //============================================================================= 00013 00014 #ifndef TAO_TOXRESOURCE_LOADER_H 00015 #define TAO_TOXRESOURCE_LOADER_H 00016 00017 #include /**/ "ace/pre.h" 00018 00019 #include "tao/FoxResource/TAO_FoxResource_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 #include <fx.h> 00028 00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00030 00031 namespace TAO 00032 { 00033 /** 00034 * @class FoxResource_Loader 00035 * 00036 * @brief Loads TAO resources related with Fox. 00037 * 00038 * This class changes the default reactor implementation into 00039 * ACE_FoxReactor one by calling TAO_ORB_Core::set_gui_resource_factory. 00040 * User should create an instance of this class before ORB_init 00041 * when the TAO server has has to be integrated within Fox event loop. 00042 * 00043 * Please notice, this class has to be created in the main Fox thread, 00044 * because set_gui_resource_factory creates a variable in TSS. This way 00045 * FoxReactor is instantiated only in Fox event loop thread. 00046 */ 00047 class TAO_FoxResource_Export FoxResource_Loader 00048 { 00049 public: 00050 00051 FoxResource_Loader (FXApp *app); 00052 00053 virtual ~FoxResource_Loader (void); 00054 00055 }; 00056 } 00057 00058 TAO_END_VERSIONED_NAMESPACE_DECL 00059 00060 #include /**/ "ace/post.h" 00061 00062 #endif /* TAO_TOXRESOURCE_LOADER_H */