3 //=============================================================================
5 * @file IOR_Table_Impl.h
7 * @author Carlos O'Ryan (coryan@uci.edu)
9 //=============================================================================
12 #ifndef TAO_IOR_TABLE_IMPL_H
13 #define TAO_IOR_TABLE_IMPL_H
15 #include /**/ "ace/pre.h"
17 #include "tao/IORTable/IORTable.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
23 #include "ace/Hash_Map_Manager_T.h"
24 #include "ace/Null_Mutex.h"
25 #include "tao/LocalObject.h"
26 #include "ace/SString.h"
27 #include "tao/Objref_VarOut_T.h"
31 #pragma warning(disable:4250)
34 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
36 class TAO_IORTable_Export TAO_IOR_Table_Impl
;
37 typedef TAO_IOR_Table_Impl
*TAO_IOR_Table_Impl_ptr
;
38 typedef TAO_Objref_Var_T
<TAO_IOR_Table_Impl
> TAO_IOR_Table_Impl_var
;
39 typedef TAO_Objref_Out_T
<TAO_IOR_Table_Impl
> TAO_IOR_Table_Impl_out
;
41 class TAO_IORTable_Export TAO_IOR_Table_Impl
42 : public virtual IORTable::Table
,
43 public virtual ::CORBA::LocalObject
46 static TAO_IOR_Table_Impl_ptr
_nil ()
52 TAO_IOR_Table_Impl ();
54 virtual bool async_available () { return false; }
56 /// Find the object, using the locator if it is not on the table.
57 char *find (const char *object_key
);
60 * @name The IORTable::Table methods
62 * Please check the IORTable.pidl file for details.
65 virtual void bind (const char * object_key
, const char * IOR
);
67 virtual void rebind (const char * object_key
, const char * IOR
);
69 virtual void unbind (const char * object_key
);
71 virtual void set_locator (IORTable::Locator_ptr the_locator
);
75 typedef ACE_Hash_Map_Manager_Ex
<ACE_CString
, ACE_CString
,
76 ACE_Hash
<ACE_CString
>,
77 ACE_Equal_To
<ACE_CString
>,
84 IORTable::Locator_var locator_
;
87 TAO_SYNCH_MUTEX lock_
;
90 // Traits specializations.
94 struct TAO_IORTable_Export
95 Objref_Traits
<TAO_IOR_Table_Impl
>
97 static TAO_IOR_Table_Impl_ptr
duplicate (TAO_IOR_Table_Impl_ptr
);
99 static void release (TAO_IOR_Table_Impl_ptr
);
101 static TAO_IOR_Table_Impl_ptr
nil ();
103 static ::CORBA::Boolean
marshal (const TAO_IOR_Table_Impl_ptr p
,
110 TAO_END_VERSIONED_NAMESPACE_DECL
112 #if defined(_MSC_VER)
114 #endif /* _MSC_VER */
116 #include /**/ "ace/post.h"
118 #endif /* TAO_IOR_TABLE_IMPL */