3 //=============================================================================
5 * @file RT_Stub_Factory.h
7 * Defines the a factory interface for creating Stubs.
8 * This class creates the default stub, that is used in
11 * @author Angelo Corsaro <corsaro@cs.wustl.edu>
12 * @author Frank Hunleth <fhunleth@cs.wustl.edu>
14 //=============================================================================
16 #ifndef TAO_RT_STUB_FACTORY_H_
17 #define TAO_RT_STUB_FACTORY_H_
19 #include /**/ "ace/pre.h"
21 #include "tao/orbconf.h"
23 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
25 #include "tao/RTCORBA/rtcorba_export.h"
27 #if !defined (ACE_LACKS_PRAGMA_ONCE)
29 #endif /* ACE_LACKS_PRAGMA_ONCE */
31 #include "tao/Stub_Factory.h"
33 #include "ace/Service_Config.h"
35 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
38 * @class TAO_RT_Stub_Factory
40 * This class is a factory whose product is the TAO_RT_Stub used by
41 * TAO. This factory, or one of its subclasses is dynamically
42 * plugged into the ORB_Core, and is used by the ORB_Core to create
45 class TAO_RTCORBA_Export TAO_RT_Stub_Factory
: public TAO_Stub_Factory
49 virtual ~TAO_RT_Stub_Factory ();
51 /// Creates a Stub Object.
52 virtual TAO_Stub
*create_stub (const char *repository_id
,
53 const TAO_MProfile
&profiles
,
54 TAO_ORB_Core
*orb_core
);
58 ACE_STATIC_SVC_DECLARE_EXPORT (TAO_RTCORBA
, TAO_RT_Stub_Factory
)
59 ACE_FACTORY_DECLARE (TAO_RTCORBA
, TAO_RT_Stub_Factory
)
61 TAO_END_VERSIONED_NAMESPACE_DECL
63 #endif /* TAO_HAS_CORBA_MESSAGING && TAO_HAS_CORBA_MESSAGING != 0 */
65 #include /**/ "ace/post.h"
66 #endif /* TAO_RT_STUB_FACTORY_H_ */