3 //=============================================================================
5 * @file FoxResource_Loader.h
7 * @author Balachandran Natarajan <bala@cs.wustl.edu>
8 * @author Marek Brudka <mbrudka@aster.pl>
10 //=============================================================================
12 #ifndef TAO_TOXRESOURCE_LOADER_H
13 #define TAO_TOXRESOURCE_LOADER_H
15 #include /**/ "ace/pre.h"
17 #include "tao/FoxResource/TAO_FoxResource_Export.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #include "tao/Versioned_Namespace.h"
27 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
32 * @class FoxResource_Loader
34 * @brief Loads TAO resources related with Fox.
36 * This class changes the default reactor implementation into
37 * ACE_FoxReactor one by calling TAO_ORB_Core::set_gui_resource_factory.
38 * User should create an instance of this class before ORB_init
39 * when the TAO server has has to be integrated within Fox event loop.
41 * Please notice, this class has to be created in the main Fox thread,
42 * because set_gui_resource_factory creates a variable in TSS. This way
43 * FoxReactor is instantiated only in Fox event loop thread.
45 class TAO_FoxResource_Export FoxResource_Loader
48 FoxResource_Loader (FXApp
*app
);
50 virtual ~FoxResource_Loader ();
54 TAO_END_VERSIONED_NAMESPACE_DECL
56 #include /**/ "ace/post.h"
58 #endif /* TAO_TOXRESOURCE_LOADER_H */