Default_Stub_Factory.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    Default_Stub_Factory.h
00006  *
00007  *  $Id: Default_Stub_Factory.h 76834 2007-02-01 14:39:03Z johnnyw $
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  *  @author  Angelo Corsaro <corsaro@cs.wustl.edu>
00014  */
00015 //=============================================================================
00016 
00017 #ifndef TAO_DEFAULT_STUB_FACTORY_H_
00018 #define TAO_DEFAULT_STUB_FACTORY_H_
00019 
00020 #include /**/ "ace/pre.h"
00021 #include "ace/Service_Config.h"
00022 
00023 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00024 # pragma once
00025 #endif /* ACE_LACKS_PRAGMA_ONCE */
00026 
00027 #include "tao/Stub_Factory.h"
00028 
00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00030 
00031 /**
00032  * @class TAO_Default_Stub_Factory
00033  *
00034  * This class is a factory whose product is the plain TAO_Stub used by
00035  * TAO. Its subclasses build Stub object that are specialization of
00036  * the TAO_Stub. As an example TAO_RT_Stub_Factory creates
00037  * RT_TAO_Stub. This factory, or one of its subclasses is dynamically
00038  * plugged into the ORB_Core, and is used by the ORB_Core to create
00039  * Stub Objects.
00040  */
00041 class TAO_Export TAO_Default_Stub_Factory
00042   : public TAO_Stub_Factory
00043 {
00044 public:
00045   /// Destructor.
00046   virtual ~TAO_Default_Stub_Factory (void);
00047 
00048   /// Creates a Stub Object.
00049   virtual TAO_Stub *create_stub (const char *repository_id,
00050                                  const TAO_MProfile &profiles,
00051                                  TAO_ORB_Core *orb_core);
00052 };
00053 
00054 TAO_END_VERSIONED_NAMESPACE_DECL
00055 
00056 ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_Default_Stub_Factory)
00057 ACE_FACTORY_DECLARE (TAO, TAO_Default_Stub_Factory)
00058 
00059 #include /**/ "ace/post.h"
00060 
00061 #endif /* TAO_DEFAULT_STUB_FACTORY_H_ */

Generated on Tue Feb 2 17:37:51 2010 for TAO by  doxygen 1.4.7