RT_Stub_Factory.h

Go to the documentation of this file.
00001 // -*- C++ -*-
00002 
00003 //=============================================================================
00004 /**
00005  *  @file    RT_Stub_Factory.h
00006  *
00007  *  $Id: RT_Stub_Factory.h 76687 2007-01-29 19:18:13Z 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  *  @author  Frank Hunleth <fhunleth@cs.wustl.edu>
00015  */
00016 //=============================================================================
00017 
00018 #ifndef TAO_RT_STUB_FACTORY_H_
00019 #define TAO_RT_STUB_FACTORY_H_
00020 
00021 #include /**/ "ace/pre.h"
00022 
00023 #include "tao/orbconf.h"
00024 
00025 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
00026 
00027 #include "tao/RTCORBA/rtcorba_export.h"
00028 
00029 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00030 # pragma once
00031 #endif /* ACE_LACKS_PRAGMA_ONCE */
00032 
00033 #include "tao/Stub_Factory.h"
00034 
00035 #include "ace/Service_Config.h"
00036 
00037 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00038 
00039 /**
00040  * @class TAO_RT_Stub_Factory
00041  *
00042  * This class is a factory whose product is the TAO_RT_Stub used by
00043  * TAO.  This factory, or one of its subclasses is dynamically
00044  * plugged into the ORB_Core, and is used by the ORB_Core to create
00045  * Stub Objects.
00046  */
00047 class TAO_RTCORBA_Export TAO_RT_Stub_Factory : public TAO_Stub_Factory
00048 {
00049 public:
00050   // -- Ctor/Dtor --
00051   virtual ~TAO_RT_Stub_Factory (void);
00052 
00053   /// Creates a Stub Object.
00054   virtual TAO_Stub *create_stub (const char *repository_id,
00055                                  const TAO_MProfile &profiles,
00056                                  TAO_ORB_Core *orb_core);
00057 };
00058 
00059 TAO_END_VERSIONED_NAMESPACE_DECL
00060 
00061 ACE_STATIC_SVC_DECLARE_EXPORT (TAO_RTCORBA, TAO_RT_Stub_Factory)
00062 ACE_FACTORY_DECLARE (TAO_RTCORBA, TAO_RT_Stub_Factory)
00063 
00064 #endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
00065 
00066 #include /**/ "ace/post.h"
00067 #endif /* TAO_RT_STUB_FACTORY_H_ */

Generated on Tue Feb 2 17:42:49 2010 for TAO_RTCORBA by  doxygen 1.4.7