Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

TAO_QtResource_Factory Class Reference

TAO's default resource factory. More...

#include <qt_resource.h>

Inheritance diagram for TAO_QtResource_Factory:

Inheritance graph
Collaboration diagram for TAO_QtResource_Factory:

Collaboration graph
List of all members.

Public Methods

 TAO_QtResource_Factory (void)

Static Public Methods

void set_context (QApplication *qapp)
 Set the context used to create the QtReactor. More...

Protected Methods

virtual ACE_Reactor_Implallocate_reactor_impl (void) const
 Obtain the reactor implementation. More...

Static Private Attributes

QApplication * qapp_ = 0

Detailed Description

TAO's default resource factory.

Using a <{resource source specifier}> as a discriminator, the factory can return resource instances which are, e.g., global, stored in thread-specific storage, stored in shared memory, etc.

Definition at line 37 of file qt_resource.h.

Constructor & Destructor Documentation

ACE_INLINE TAO_QtResource_Factory::TAO_QtResource_Factory void   

Definition at line 3 of file qt_resource.i.

00004 {
00005 }

Member Function Documentation

ACE_Reactor_Impl * TAO_QtResource_Factory::allocate_reactor_impl void    const [protected, virtual]

Obtain the reactor implementation.

Reimplemented from TAO_Default_Resource_Factory.

Definition at line 14 of file qt_resource.cpp.

References ACE_NEW_RETURN, and qapp_.

00015 {
00016   if (this->qapp_ == 0) 
00017     return 0;
00019   ACE_Reactor_Impl *impl = 0; 
00021   ACE_NEW_RETURN(impl, 
00022                  ACE_QtReactor (qapp_), 
00023                  0);
00024   return impl;
00025 }

void TAO_QtResource_Factory::set_context QApplication *    qapp [static]

Set the context used to create the QtReactor.

Definition at line 28 of file qt_resource.cpp.

References qapp_.

00029 {
00030   TAO_QtResource_Factory::qapp_ = qapp;
00031 }

Member Data Documentation

QApplication * TAO_QtResource_Factory::qapp_ = 0 [static, private]

Definition at line 11 of file qt_resource.cpp.

Referenced by allocate_reactor_impl, and set_context.

The documentation for this class was generated from the following files:
Generated on Mon Jun 16 15:37:36 2003 for TAO by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002