Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / ZIOP / ZIOP_Stub_Factory.h
blobe0a7b4be0f2e036a2ab63c2a1316ade14e4ee71c
1 // -*- C++ -*-
3 //=============================================================================
4 /**
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
9 * the ZIOP library
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)
25 # 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
36 /**
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
42 * Stub Objects.
44 class TAO_ZIOP_Export TAO_ZIOP_Stub_Factory : public TAO_Stub_Factory
46 public:
47 // -- Ctor/Dtor --
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
62 #endif
64 #include /**/ "ace/post.h"
65 #endif /* TAO_ZIOP_STUB_FACTORY_H_ */