Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / TkResource / TkResource_Factory.h
blobc7ad9b22a957539ab77581a20529305c429c37ff
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file TkResource_Factory.h
7 * @author Balachandran Natarajan <bala@cs.wustl.edu>
8 * @author Marek Brudka <mbrudka@aster.pl>
9 */
10 //=============================================================================
11 #ifndef TAO_TKRESOURCE_FACTORY_H
12 #define TAO_TKRESOURCE_FACTORY_H
13 #include /**/ "ace/pre.h"
14 #include "ace/TkReactor/TkReactor.h"
15 #include "tao/TkResource/TAO_TkResource_Export.h"
16 #include "tao/GUIResource_Factory.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
24 namespace TAO
26 /**
27 * @class TkResource_Factory
29 * @brief TAO_GUI_Resource_Factory for creating TkReactor.
31 * This factory is intended for creating TkReactor for ORB. This
32 * factory can be feed into ORB using
33 * TAO_ORB_Core::set_gui_resource_factory method which is usually
34 * done by TAO_TkResource_Loader.
37 class TAO_TkResource_Export TkResource_Factory : public GUIResource_Factory
39 public:
40 TkResource_Factory ();
42 protected:
43 /// Create or obtain current reactor implementation
44 virtual ACE_Reactor_Impl *reactor_impl ();
46 private:
47 /// Reactor created by this factory.
48 ACE_TkReactor *reactor_impl_;
52 TAO_END_VERSIONED_NAMESPACE_DECL
54 #include /**/ "ace/post.h"
55 #endif /* TAO_TKRESOURCE_FACTORY_H */