diff options
Diffstat (limited to 'TAO/CIAO/tools/Config_Handlers/IDREF_Base.cpp')
-rw-r--r-- | TAO/CIAO/tools/Config_Handlers/IDREF_Base.cpp | 86 |
1 files changed, 0 insertions, 86 deletions
diff --git a/TAO/CIAO/tools/Config_Handlers/IDREF_Base.cpp b/TAO/CIAO/tools/Config_Handlers/IDREF_Base.cpp deleted file mode 100644 index 24da9dc6c3b..00000000000 --- a/TAO/CIAO/tools/Config_Handlers/IDREF_Base.cpp +++ /dev/null @@ -1,86 +0,0 @@ -// $Id$ -#ifndef IDREF_BASE_CPP -#define IDREF_BASE_CPP - -#include "ciao/CIAO_common.h" -#include "IDREF_Base.h" -#include <iostream> - - -ACE_RCSID (DAnCE, - IDREF_Base, - "$Id$") - - -namespace CIAO -{ - namespace Config_Handlers - { - template <typename T> - void - IDREF_Base<T>::bind_ref (ACE_CString& id, T value) - throw (Config_Error) - { - CIAO_TRACE("IDREF_Base<T>::bind_ref"); - - int retval = - idref_map_.bind (id, value); - - pos_map_.bind (value,id); - - if (retval < 0) - throw Config_Error (id.c_str (), - "Failed to bind an IDRef. This likely indicates a name clash."); - } - - template <typename T> - void - IDREF_Base<T>::find_ref (const ACE_CString& id, T& val) - throw (Config_Error) - { - CIAO_TRACE("IDREF_Base<T>::find_ref(C_String, T)"); - - int retval = - idref_map_.find (id, val); - - if (retval < 0) - throw Config_Error (id.c_str (), - "Unable to look up an IDRef."); - } - - template <typename T> - void - IDREF_Base<T>::find_ref (const T& value, ACE_CString& id) - throw (Config_Error) - { - CIAO_TRACE("IDREF_Base<T>::find_ref (T, CString)"); - - int retval = - pos_map_.find (value, id); - - if (retval < 0) - throw Config_Error ("No location information", - "Failed a reverse IDRef lookup."); - } - - template <typename T> - bool - IDREF_Base<T>::unbind_refs (void) - { - CIAO_TRACE("IDREF_Base<T>::unbind_refs"); - - int retval = - idref_map_.unbind_all (); - - pos_map_.unbind_all (); - - if (retval < 0) - return false; - - return true; - } -} - -} - -#endif /* IDREF_BASE_CPP */ |