Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / XtResource / XtResource_Loader.h
blob0349c26b015361c6d214e313f0c5c67af07b983a
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file XtResource_Loader.h
7 * @author Marek Brudka <mbrudka@aster.pl>
8 * @author Balachandran Natarajan <bala@cs.wustl.edu>
9 */
10 //=============================================================================
12 #ifndef TAO_XTRESOURCE_LOADER_H
13 #define TAO_XTRESOURCE_LOADER_H
14 #include /**/ "ace/pre.h"
15 #include /**/ <X11/Intrinsic.h>
16 #include "tao/XtResource/TAO_XtResource_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 XtResource_Loader
31 * @brief Loads TAO resources related with Xt.
33 * This class changes the default reactor implementation into
34 * ACE_XtReactor 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 Xt event loop.
38 * Please notice, this class has to be created in the main Xt thread,
39 * because set_gui_resource_factory creates a variable in TSS. This way
40 * XtReactor is instantiated only in Xt event loop thread.
42 class TAO_XtResource_Export XtResource_Loader
44 public:
45 XtResource_Loader (XtAppContext context);
47 virtual ~XtResource_Loader ();
51 TAO_END_VERSIONED_NAMESPACE_DECL
53 #include /**/ "ace/post.h"
54 #endif /* TAO_XTRESOURCE_LOADER_H */