Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / DynamicInterface / Dynamic_Adapter_Impl.h
blob97cf2fcce26d8499ed098c6215eb46762e62de52
1 // -*- C++ -*-
4 //=============================================================================
5 /**
6 * @file Dynamic_Adapter_Impl.h
8 * Header file for class TAO_Dynamic_Adapter_Impl.
10 * @author Jeff Parsons <parsons@cs.wustl.edu>
12 //=============================================================================
15 #ifndef TAO_DYNAMIC_ADAPTER_IMPL_H
16 #define TAO_DYNAMIC_ADAPTER_IMPL_H
17 #include /**/ "ace/pre.h"
19 #include "tao/Dynamic_Adapter.h"
21 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 # pragma once
23 #endif /* ACE_LACKS_PRAGMA_ONCE */
25 #include "tao/DynamicInterface/dynamicinterface_export.h"
26 #include "ace/Service_Config.h"
28 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
30 /**
31 * @class TAO_Dynamic_Adapter_Impl
33 * Concrete subclass of TAO_Dynamic_Adapter
34 * in the TAO library. This class helps implement various
35 * functions in the CORBA namespace relating to DII/DSI
36 * invocations.
38 class TAO_DynamicInterface_Export TAO_Dynamic_Adapter_Impl
39 : public TAO_Dynamic_Adapter
41 public:
42 TAO_Dynamic_Adapter_Impl ();
43 virtual ~TAO_Dynamic_Adapter_Impl ();
45 // CORBA::Object::_create_request and CORBA::Object::_request.
47 virtual void create_request (CORBA::Object_ptr obj,
48 CORBA::ORB_ptr orb,
49 const char *operation,
50 CORBA::NVList_ptr arg_list,
51 CORBA::NamedValue_ptr result,
52 CORBA::ExceptionList_ptr exceptions,
53 CORBA::Request_ptr &request,
54 CORBA::Flags req_flags);
56 virtual CORBA::Request_ptr request (CORBA::Object_ptr obj,
57 CORBA::ORB_ptr orb,
58 const char *op);
60 // CORBA::is_nil and CORBA::release for Context, Request, and ServerRequest.
62 virtual CORBA::Boolean context_is_nil (CORBA::Context_ptr ctx);
64 virtual CORBA::Boolean request_is_nil (CORBA::Request_ptr req);
66 virtual CORBA::Boolean server_request_is_nil (CORBA::ServerRequest_ptr req);
68 virtual void context_release (CORBA::Context_ptr ctx);
70 virtual void request_release (CORBA::Request_ptr req);
72 virtual void server_request_release (CORBA::ServerRequest_ptr req);
74 // CORBA::ORB::create_exception_list.
76 virtual void create_exception_list (CORBA::ExceptionList_ptr &list);
78 // Used to force the initialization of the ORB code.
79 static int Initializer ();
82 static int
83 TAO_Requires_Request_Factory_Initializer =
84 TAO_Dynamic_Adapter_Impl::Initializer ();
86 TAO_END_VERSIONED_NAMESPACE_DECL
88 ACE_STATIC_SVC_DECLARE (TAO_Dynamic_Adapter_Impl)
89 ACE_FACTORY_DECLARE (TAO_DynamicInterface, TAO_Dynamic_Adapter_Impl)
91 #include /**/ "ace/post.h"
92 #endif /* TAO_DYNAMIC_ADAPTER_IMPL_H */