Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / FoxResource / FoxResource_Factory.h
blobd14571a194e465876217dede69742b8a8efafda2
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file FoxResource_Factory.h
7 * @author Balachandran Natarajan <bala@cs.wustl.edu>
8 * @author Marek Brudka <mbrudka@aster.pl>
9 */
10 //=============================================================================
11 #ifndef TAO_TOXRESOURCE_FACTORY_H
12 #define TAO_TOXRESOURCE_FACTORY_H
13 #include /**/ "ace/pre.h"
14 #include "ace/FoxReactor/FoxReactor.h"
15 #include "tao/FoxResource/TAO_FoxResource_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 FoxResource_Factory
29 * @brief TAO_GUI_Resource_Factory for creating FoxReactor.
31 * This factory is intended for creating FoxReactor 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_FoxResource_Loader.
37 class TAO_FoxResource_Export FoxResource_Factory : public GUIResource_Factory
39 public:
40 FoxResource_Factory (FXApp *app);
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_FoxReactor *reactor_impl_;
50 FXApp *fxapp_;
54 TAO_END_VERSIONED_NAMESPACE_DECL
56 #include /**/ "ace/post.h"
57 #endif /* TAO_TOXRESOURCE_FACTORY_H */