Public Member Functions | Private Attributes

TAO::XtResource_Factory Class Reference

TAO_GUI_Resource_Factory for creating XtReactor. More...

#include <XtResource_Factory.h>

Inheritance diagram for TAO::XtResource_Factory:
Inheritance graph
[legend]
Collaboration diagram for TAO::XtResource_Factory:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 XtResource_Factory (XtAppContext context)
virtual ACE_Reactor_Implreactor_impl (void)
 Create or obtain current reactor implementation.

Private Attributes

ACE_XtReactorreactor_impl_
 Reactor created by this factory.
XtAppContext context_
 Xt context for XtReactor.
TAO_SYNCH_MUTEX lock_
 for internal locking

Detailed Description

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.

Definition at line 39 of file XtResource_Factory.h.


Constructor & Destructor Documentation

TAO::XtResource_Factory::XtResource_Factory ( XtAppContext  context  ) 

Definition at line 6 of file XtResource_Factory.cpp.

               : XtResource_Factory.cpp 84443 2009-02-12 20:26:35Z johnnyw $");


Member Function Documentation

ACE_Reactor_Impl * TAO::XtResource_Factory::reactor_impl ( void   )  [virtual]

Create or obtain current reactor implementation.

Implements TAO::GUIResource_Factory.

Definition at line 13 of file XtResource_Factory.cpp.

                                                               :
    reactor_impl_( 0 ),
    context_( p_context )
  {
  }

  ACE_Reactor_Impl *
  XtResource_Factory::reactor_impl (void)
  {
    // synchronized by external locks
    if (this->context_ == 0)
    {
      ACE_ERROR ((LM_ERROR,
                  ACE_TEXT("TAO (%P|%t) - XtAppContext is undefined.")
                  ACE_TEXT(" Cannot create ACE_XtReactor\n")));
      return 0;
    }

    if (!this->reactor_impl_)
    {
      ACE_NEW_RETURN (this->reactor_impl_,
                      ACE_XtReactor (this->context_),
                      0);


Member Data Documentation

XtAppContext TAO::XtResource_Factory::context_ [private]

Xt context for XtReactor.

Definition at line 53 of file XtResource_Factory.h.

TAO_SYNCH_MUTEX TAO::XtResource_Factory::lock_ [private]

for internal locking

Reimplemented from TAO::GUIResource_Factory.

Definition at line 56 of file XtResource_Factory.h.

ACE_XtReactor* TAO::XtResource_Factory::reactor_impl_ [private]

Reactor created by this factory.

Definition at line 50 of file XtResource_Factory.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines