Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / FlResource / FlResource_Loader.h
blobd1a3d2ca5251365da5524bd2508fced09ebbd904
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file FlResource_Loader.h
7 * @author Balachandran Natarajan <bala@cs.wustl.edu>
8 * @author Marek Brudka <mbrudka@aster.pl>
9 */
10 //=============================================================================
12 #ifndef TAO_FLRESOURCE_LOADER_H
13 #define TAO_FLRESOURCE_LOADER_H
14 #include /**/ "ace/pre.h"
16 #include "tao/FlResource/TAO_FlResource_Export.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/Versioned_Namespace.h"
24 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
26 namespace TAO
28 /**
29 * @class FlResource_Loader
31 * @brief Loads TAO resources related with Fl.
33 * This class changes the default reactor implementation into
34 * ACE_FlReactor one by calling TAO_ORB_Core::set_gui_resource_factory.
35 * User should create an instance of this class before ORB_init
36 * when the TAO server has has to be integrated within Fl event loop.
38 * Please notice, this class has to be created in the main Fl thread,
39 * because set_gui_resource_factory creates a variable in TSS. This way
40 * FlReactor is instantiated only in Qt event loop thread.
42 class TAO_FlResource_Export FlResource_Loader
44 public:
45 FlResource_Loader ();
47 virtual ~FlResource_Loader ();
51 TAO_END_VERSIONED_NAMESPACE_DECL
53 #include /**/ "ace/post.h"
55 #endif /* TAO_FLRESOURCE_LOADER_H */