Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / IORTable / Async_Table_Adapter.h
blob8c6a558e9b31db2b5ef10f78102c1517902d7824
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Async_Table_Adapter.h
7 * @author Phil Mesnier <mesnier_p@ociweb.com>
8 */
9 //=============================================================================
12 #ifndef TAO_ASYNC_TABLE_ADAPTER_H
13 #define TAO_ASYNC_TABLE_ADAPTER_H
14 #include /**/ "ace/pre.h"
16 #include "tao/IORTable/async_iortable_export.h"
17 #include "tao/IORTable/Async_IORTable.h"
18 #include "tao/IORTable/Async_IOR_Table_Impl.h"
20 #include "tao/IORTable/Table_Adapter.h"
22 #if !defined (ACE_LACKS_PRAGMA_ONCE)
23 # pragma once
24 #endif /* ACE_LACKS_PRAGMA_ONCE */
26 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
28 class TAO_Async_IORTable_Export TAO_Async_Table_Adapter : public TAO_Table_Adapter
30 public:
31 /// Constructor
32 TAO_Async_Table_Adapter (TAO_ORB_Core &orb_core);
34 /// Destructor
35 virtual ~TAO_Async_Table_Adapter ();
37 // = The TAO_Adapter methods, please check tao/Adapter.h for the
38 // documentation
39 virtual void open ();
41 virtual int dispatch (TAO::ObjectKey &key,
42 TAO_ServerRequest &request,
43 CORBA::Object_out foward_to);
45 protected:
46 /// Helper method to find an object bound in the table.
47 void find_object (::IORTable::Locate_ResponseHandler rh,
48 TAO::ObjectKey &key);
51 // ****************************************************************
53 class TAO_Async_IORTable_Export TAO_Async_Table_Adapter_Factory :
54 public TAO_Table_Adapter_Factory
56 public:
57 /// Constructor
58 TAO_Async_Table_Adapter_Factory ();
60 /// The TAO_Adapter_Factory methods, please read tao/Adapter.h for
61 /// details.
62 virtual TAO_Adapter *create (TAO_ORB_Core *orb_core);
65 TAO_END_VERSIONED_NAMESPACE_DECL
67 ACE_STATIC_SVC_DECLARE (TAO_Async_Table_Adapter_Factory)
68 ACE_FACTORY_DECLARE (TAO_Async_IORTable, TAO_Async_Table_Adapter_Factory)
70 #include /**/ "ace/post.h"
71 #endif /* TAO_ASYNC_TABLE_ADAPTER_H */