diff options
author | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
---|---|---|
committer | William R. Otte <wotte@dre.vanderbilt.edu> | 2006-07-24 15:50:21 +0000 |
commit | 3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c (patch) | |
tree | 197c810e5f5bce17b1233a7cb8d7b50c0bcd25e2 /TAO/tao/XtResource/XtResource_Factory.h | |
parent | 6b846cf03c0bcbd8c276cb0af61a181e5f98eaae (diff) | |
download | ATCD-3aff90f4a822fcf5d902bbfbcc9fa931d6191a8c.tar.gz |
Repo restructuring
Diffstat (limited to 'TAO/tao/XtResource/XtResource_Factory.h')
-rw-r--r-- | TAO/tao/XtResource/XtResource_Factory.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/TAO/tao/XtResource/XtResource_Factory.h b/TAO/tao/XtResource/XtResource_Factory.h new file mode 100644 index 00000000000..5099969e25c --- /dev/null +++ b/TAO/tao/XtResource/XtResource_Factory.h @@ -0,0 +1,61 @@ +// -*- C++ -*- + +//============================================================================= +/** + * @file XtResource_Factory.h + * + * $Id$ + * + * @author Balachandran Natarajan <bala@cs.wustl.edu> + * @author Marek Brudka <mbrudka@aster.pl> + */ +//============================================================================= +#ifndef TAO_XTRESOURCE_FACTORY_H +#define TAO_XTRESOURCE_FACTORY_H +#include /**/ "ace/pre.h" +#include /**/ <X11/Intrinsic.h> +#include "tao/XtResource/TAO_XtResource_Export.h" +#include "ace/XtReactor.h" +#include "tao/GUIResource_Factory.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +namespace TAO +{ + + /** + * @class XtResource_Factory + * + * @brief TAO_GUI_Resource_Factory for creating XtReactor. + * + * This factory is intended for creating XtReactor for ORB. This + * factory can be feed into ORB using + * TAO_ORB_Core::set_gui_resource_factory method which is usually + * done by TAO_XtResource_Loader. + */ + + class TAO_XtResource_Export XtResource_Factory : public GUIResource_Factory + { + public: + XtResource_Factory (XtAppContext context); + + /// Create or obtain current reactor implementation + virtual ACE_Reactor_Impl *reactor_impl (void); + + private: + + /// Reactor created by this factory. + ACE_XtReactor *reactor_impl_; + + /// Xt context for XtReactor + XtAppContext context_; + + /// for internal locking + TAO_SYNCH_MUTEX lock_; + }; +} + +#include /**/ "ace/post.h" +#endif /* TAO_XTRESOURCE_FACTORY_H */ |