summaryrefslogtreecommitdiff
path: root/TAO/tao/IOR_LookupTable.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tao/IOR_LookupTable.cpp')
-rw-r--r--TAO/tao/IOR_LookupTable.cpp89
1 files changed, 0 insertions, 89 deletions
diff --git a/TAO/tao/IOR_LookupTable.cpp b/TAO/tao/IOR_LookupTable.cpp
deleted file mode 100644
index c3fe0ab115f..00000000000
--- a/TAO/tao/IOR_LookupTable.cpp
+++ /dev/null
@@ -1,89 +0,0 @@
-// $Id$
-
-#include "tao/IOR_LookupTable.h"
-#include "tao/debug.h"
-
-ACE_RCSID(tao, IOR_TableLookup, "$Id$")
-
- // = Initialization and termination methods.
-TAO_IOR_LookupTable::TAO_IOR_LookupTable (void)
-{
-}
-
-TAO_IOR_LookupTable::~TAO_IOR_LookupTable (void)
-{
-}
-
-int
-TAO_IOR_LookupTable::init (void)
-{
- // This creates and initialises the table.
- // Currently works on the hash map manager.
-
-return 0;
-}
-
-int
-TAO_IOR_LookupTable::add_ior (const ACE_CString &object_name,
- const ACE_CString &ior)
-{
- // Make an entry in the table.
- switch (this->hash_map_.bind (object_name, ior))
- {
- case 1 : // object name already exists in the table.
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG,
- "TAO (%P|%t) Object Name already exists in the IOR table\n"));
- return 1;
- case -1 : // Failure.
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG,
- "TAO (%P|%t) Unable to bind in IOR tao\n"));
- return -1;
- }
-
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG,
- "TAO (%P|%t) IOR Table: <%s> -> <%s>\n",
- object_name.c_str (),
- ior.c_str ()));
-
- return 0;
-}
-
-int
-TAO_IOR_LookupTable::find_ior (const ACE_CString &object_name,
- ACE_CString &ior)
-{
- // Find the IOR corresponding to the object name.
- // returns 0 on success.
- // -1 on failure.
-
- if (TAO_debug_level > 0)
- ACE_DEBUG ((LM_DEBUG,
- "TAO (%P|%t) IOR Table find <%s>\n",
- object_name.c_str ()));
-
- return this->hash_map_.find (object_name, ior);
-
-}
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-template class ACE_Hash_Map_Manager<ACE_CString, ACE_CString, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Manager_Ex<ACE_CString, ACE_CString, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Iterator<ACE_CString,ACE_CString,ACE_Null_Mutex>;
-template class ACE_Hash_Map_Iterator_Ex<ACE_CString, ACE_CString, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Entry<ACE_CString, ACE_CString>;
-template class ACE_Hash_Map_Reverse_Iterator<ACE_CString, ACE_CString, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Reverse_Iterator_Ex<ACE_CString, ACE_CString, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>;
-template class ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, ACE_CString, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>;
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-#pragma instantiate ACE_Hash_Map_Manager<ACE_CString,ACE_CString,ACE_Null_Mutex>
-#pragma instantiate ACE_Hash_Map_Manager_Ex<ACE_CString, ACE_CString, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>
-#pragma instantiate ACE_Hash_Map_Iterator<ACE_CString,ACE_CString,ACE_Null_Mutex>
-#pragma instantiate ACE_Hash_Map_Iterator_Ex<ACE_CString, ACE_CString, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>
-#pragma instantiate ACE_Hash_Map_Entry<ACE_CString, ACE_CString>
-#pragma instantiate ACE_Hash_Map_Reverse_Iterator<ACE_CString, ACE_CString, ACE_Null_Mutex>
-#pragma instantiate ACE_Hash_Map_Reverse_Iterator_Ex<ACE_CString, ACE_CString, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>
-#pragma instantiate ACE_Hash_Map_Iterator_Base_Ex<ACE_CString, ACE_CString, ACE_Hash<ACE_CString>, ACE_Equal_To<ACE_CString>, ACE_Null_Mutex>
-#endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */