Default_Stub_Factory.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    Default_Stub_Factory.h
00006  *
00007  *  Default_Stub_Factory.h,v 1.6 2005/11/02 07:13:02 ossama Exp
00008  *
00009  *   Defines the a factory interface for creating Stubs.
00010  *   This class creates the default stub, that is used in
00011  *   plain CORBA.
00012  *
00013  *
00014  *  @author  Angelo Corsaro <corsaro@cs.wustl.edu>
00015  */
00016 //=============================================================================
00017 
00018 #ifndef TAO_DEFAULT_STUB_FACTORY_H_
00019 #define TAO_DEFAULT_STUB_FACTORY_H_
00020 
00021 #include /**/ "ace/pre.h"
00022 #include "ace/Service_Config.h"
00023 
00024 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00025 # pragma once
00026 #endif /* ACE_LACKS_PRAGMA_ONCE */
00027 
00028 #include "tao/Stub_Factory.h"
00029 
00030 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00031 
00032 /**
00033  * @class TAO_Default_Stub_Factory
00034  *
00035  * This class is a factory whose product is the plain TAO_Stub used by
00036  * TAO. Its subclasses build Stub object that are specialization of
00037  * the TAO_Stub. As an example TAO_RT_Stub_Factory creates
00038  * RT_TAO_Stub. This factory, or one of its subclasses is dynamically
00039  * plugged into the ORB_Core, and is used by the ORB_Core to create
00040  * Stub Objects.
00041  */
00042 class TAO_Export TAO_Default_Stub_Factory
00043   : public TAO_Stub_Factory
00044 {
00045 public:
00046 
00047   /// Destructor.
00048   virtual ~TAO_Default_Stub_Factory (void);
00049 
00050   /// Creates a Stub Object.
00051   virtual TAO_Stub *create_stub (const char *repository_id,
00052                                  const TAO_MProfile &profiles,
00053                                  TAO_ORB_Core *orb_core
00054                                  ACE_ENV_ARG_DECL);
00055 
00056 };
00057 
00058 TAO_END_VERSIONED_NAMESPACE_DECL
00059 
00060 ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_Default_Stub_Factory)
00061 ACE_FACTORY_DECLARE (TAO, TAO_Default_Stub_Factory)
00062 
00063 #include /**/ "ace/post.h"
00064 
00065 #endif /* TAO_DEFAULT_STUB_FACTORY_H_ */

Generated on Thu Nov 9 11:54:10 2006 for TAO by doxygen 1.3.6