Merge pull request #2216 from jwillemsen/jwi-cxxversionchecks
[ACE_TAO.git] / TAO / tao / Default_Stub_Factory.h
blob496a82b94e5928b534015809460f955b80a74e22
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Default_Stub_Factory.h
7 * Defines the a factory interface for creating Stubs.
8 * This class creates the default stub, that is used in
9 * plain CORBA.
11 * @author Angelo Corsaro <corsaro@cs.wustl.edu>
13 //=============================================================================
15 #ifndef TAO_DEFAULT_STUB_FACTORY_H_
16 #define TAO_DEFAULT_STUB_FACTORY_H_
18 #include /**/ "ace/pre.h"
19 #include "ace/Service_Config.h"
21 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 # pragma once
23 #endif /* ACE_LACKS_PRAGMA_ONCE */
25 #include "tao/Stub_Factory.h"
27 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
29 /**
30 * @class TAO_Default_Stub_Factory
32 * This class is a factory whose product is the plain TAO_Stub used by
33 * TAO. Its subclasses build Stub object that are specialization of
34 * the TAO_Stub. As an example TAO_RT_Stub_Factory creates
35 * RT_TAO_Stub. This factory, or one of its subclasses is dynamically
36 * plugged into the ORB_Core, and is used by the ORB_Core to create
37 * Stub Objects.
39 class TAO_Export TAO_Default_Stub_Factory
40 : public TAO_Stub_Factory
42 public:
43 /// Destructor.
44 ~TAO_Default_Stub_Factory () override = default;
46 /// Creates a Stub Object.
47 TAO_Stub *create_stub (const char *repository_id,
48 const TAO_MProfile &profiles,
49 TAO_ORB_Core *orb_core) override;
52 ACE_STATIC_SVC_DECLARE_EXPORT (TAO, TAO_Default_Stub_Factory)
53 ACE_FACTORY_DECLARE (TAO, TAO_Default_Stub_Factory)
55 TAO_END_VERSIONED_NAMESPACE_DECL
57 #include /**/ "ace/post.h"
59 #endif /* TAO_DEFAULT_STUB_FACTORY_H_ */