diff options
author | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-08 00:31:25 +0000 |
---|---|---|
committer | coryan <coryan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-07-08 00:31:25 +0000 |
commit | 858405cd45d4824c2288f2e53eb2c6860504ccfd (patch) | |
tree | 1e1b841af7a4d63109e2a80f92418b216988ca48 /TAO/tao/xt_resource.h | |
parent | c39f02e150db62146cbe64df0d61e1fb9984edd4 (diff) | |
download | ATCD-858405cd45d4824c2288f2e53eb2c6860504ccfd.tar.gz |
ChangeLogTag:Wed Jul 7 19:24:00 1999 Carlos O'Ryan <coryan@cs.wustl.edu>
Diffstat (limited to 'TAO/tao/xt_resource.h')
-rw-r--r-- | TAO/tao/xt_resource.h | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/TAO/tao/xt_resource.h b/TAO/tao/xt_resource.h new file mode 100644 index 00000000000..f65ebb2c8cf --- /dev/null +++ b/TAO/tao/xt_resource.h @@ -0,0 +1,68 @@ +// -*- C++ -*- +// $Id$ + +// ============================================================================ +// +// = LIBRARY +// TAO +// +// = FILENAME +// xt_resource.h +// +// = AUTHOR +// Carlos O'Ryan +// +// ============================================================================ + +#ifndef TAO_XT_RESOURCE_H +#define TAO_XT_RESOURCE_H + +#include "tao/default_resource.h" + +#if !defined (ACE_LACKS_PRAGMA_ONCE) +# pragma once +#endif /* ACE_LACKS_PRAGMA_ONCE */ + +#if defined (ACE_HAS_XT) + +#include "ace/XtReactor.h" + +// **************************************************************** + +class TAO_XT_Resource_Factory : public TAO_Default_Resource_Factory +{ + // = TITLE + // TAO's default resource factory + // + // = DESCRIPTION + // 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. + // +public: + // = Initialization and termination methods. + TAO_XT_Resource_Factory (void); + // Constructor. + + static void set_context (XtAppContext context); + // Set the context used to create the XtReactor + +protected: + virtual ACE_Reactor_Impl *allocate_reactor_impl (void) const; + // Obtain the reactor implementation + +private: + static XtAppContext context_; +}; + +#if defined (__ACE_INLINE__) +#include "tao/xt_resource.i" +#endif /* __ACE_INLINE__ */ + +ACE_STATIC_SVC_DECLARE (TAO_XT_Resource_Factory) +ACE_FACTORY_DECLARE (TAO, TAO_XT_Resource_Factory) + +#endif /* ACE_HAS_XT */ + +#endif /* TAO_DEFAULT_CLIENT_H */ |