3 //=============================================================================
5 * @file ZIOP_Stub_Factory.h
7 * Defines the a factory interface for creating Stubs.
8 * This class creates the ZIOP stub, that is used in
11 * @author Johnny Willemsen <jwillemsen@remedy.nl>
13 //=============================================================================
15 #ifndef TAO_ZIOP_STUB_FACTORY_H_
16 #define TAO_ZIOP_STUB_FACTORY_H_
18 #include /**/ "ace/pre.h"
20 #include "tao/orbconf.h"
22 #include "tao/ZIOP/ziop_export.h"
24 #if !defined (ACE_LACKS_PRAGMA_ONCE)
26 #endif /* ACE_LACKS_PRAGMA_ONCE */
28 #include "tao/Stub_Factory.h"
30 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0
32 #include "ace/Service_Config.h"
34 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
37 * @class TAO_ZIOP_Stub_Factory
39 * This class is a factory whose product is the TAO_ZIOP_Stub used by
40 * TAO. This factory, or one of its subclasses is dynamically
41 * plugged into the ORB_Core, and is used by the ORB_Core to create
44 class TAO_ZIOP_Export TAO_ZIOP_Stub_Factory
: public TAO_Stub_Factory
48 virtual ~TAO_ZIOP_Stub_Factory ();
50 /// Creates a Stub Object.
51 virtual TAO_Stub
*create_stub (const char *repository_id
,
52 const TAO_MProfile
&profiles
,
53 TAO_ORB_Core
*orb_core
);
57 ACE_STATIC_SVC_DECLARE_EXPORT (TAO_ZIOP
, TAO_ZIOP_Stub_Factory
)
58 ACE_FACTORY_DECLARE (TAO_ZIOP
, TAO_ZIOP_Stub_Factory
)
60 TAO_END_VERSIONED_NAMESPACE_DECL
64 #include /**/ "ace/post.h"
65 #endif /* TAO_ZIOP_STUB_FACTORY_H_ */