summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp')
-rw-r--r--TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp124
1 files changed, 0 insertions, 124 deletions
diff --git a/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp b/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp
deleted file mode 100644
index 8e3ec5cc394..00000000000
--- a/TAO/orbsvcs/orbsvcs/Log/LogMgr_i.cpp
+++ /dev/null
@@ -1,124 +0,0 @@
-// $Id$
-
-#include "LogMgr_i.h"
-
-LogMgr_i::LogMgr_i (void)
-{
- // No-Op.
-}
-
-LogMgr_i::~LogMgr_i ()
-{
- // No-Op.
-}
-
-DsLogAdmin::LogList_ptr
-LogMgr_i::list_logs (CORBA::Environment &ACE_TRY_ENV)
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ))
-{
- DsLogAdmin::LogList_ptr list;
-
- // Figure out the length of the list.
- CORBA::ULong len = hash_map_.current_size ();
-
- // Allocate the list of <len> length.
- ACE_NEW_THROW_EX (list,
- DsLogAdmin::LogList (len),
- CORBA::NO_MEMORY ());
- ACE_CHECK_RETURN (0);
-
- list->length (len);
-
- // Create an iterator
- HASHMAP::ITERATOR iter (hash_map_);
-
- // Iterate over and populate the list.
- HASHMAP::ENTRY *hash_entry;
-
- for (CORBA::ULong i = 0; i < len; i++)
- {
- iter.next (hash_entry);
- iter.advance ();
-
- (*list)[i] =
- DsLogAdmin::BasicLog::_duplicate (hash_entry->int_id_.in ());
- }
-
- return list;
-}
-
-DsLogAdmin::Log_ptr
-LogMgr_i::find_log (DsLogAdmin::LogId id,
- CORBA::Environment &ACE_TRY_ENV)
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ))
-{
- ACE_UNUSED_ARG (ACE_TRY_ENV);
-
- DsLogAdmin::BasicLog_var v_return;
-
- if (hash_map_.find (id,
- v_return) == -1)
- {
- return DsLogAdmin::BasicLog::_nil ();
- }
- else
- {
- // Note: We have a _var in the hash table. when the hash table goes
- // out of scope its contained _var members will release the object
- // references that they hold.
- // Now, <find> fills in <v_return> and when <v_return> goes out
- // of scope, it too will release the object ref.we don't want this.
- // we want the ref. count to remain what it was.
- // So we increment the ref. count here.
-
- DsLogAdmin::BasicLog::_duplicate (v_return.in ());
-
- return DsLogAdmin::BasicLog::_duplicate (v_return.in ());
- // This duplicate is to obey rules of returning obj. refs.
- // don't get confused!
- }
-}
-
-DsLogAdmin::LogIdList_ptr
-LogMgr_i::list_logs_by_id (CORBA::Environment &ACE_TRY_ENV)
- ACE_THROW_SPEC ((
- CORBA::SystemException
- ))
-{
- ACE_THROW_RETURN (CORBA::NO_IMPLEMENT (), 0);
- // Later: We need to maintain a sorted list of logids to do this efficiently.
-}
-
-int
-LogMgr_i::remove (DsLogAdmin::LogId id)
-{
- return this->hash_map_.unbind (id);
-}
-
-#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
-
-template class ACE_Hash_Map_Entry<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var>;
-template class ACE_Hash_Map_Manager<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,ACE_SYNCH_MUTEX>;
-template class ACE_Hash_Map_Manager_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, ACE_SYNCH_MUTEX>;
-template class ACE_Hash_Map_Iterator<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,ACE_SYNCH_MUTEX>;
-template class ACE_Hash_Map_Iterator_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, ACE_SYNCH_MUTEX>;
-template class ACE_Hash_Map_Iterator_Base_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, ACE_SYNCH_MUTEX>;
-template class ACE_Hash_Map_Reverse_Iterator<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,ACE_SYNCH_MUTEX>;
-template class ACE_Hash_Map_Reverse_Iterator_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, ACE_SYNCH_MUTEX>;
-
-#elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
-
-#pragma instantiate ACE_Hash_Map_Entry<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var>;
-template class ACE_Hash_Map_Manager<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,ACE_SYNCH_MUTEX>;
-template class ACE_Hash_Map_Manager_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, ACE_SYNCH_MUTEX>;
-template class ACE_Hash_Map_Iterator<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,ACE_SYNCH_MUTEX>;
-template class ACE_Hash_Map_Iterator_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, ACE_SYNCH_MUTEX>;
-template class ACE_Hash_Map_Iterator_Base_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, ACE_SYNCH_MUTEX>;
-template class ACE_Hash_Map_Reverse_Iterator<DsLogAdmin::LogId,DsLogAdmin::BasicLog_var,ACE_SYNCH_MUTEX>;
-template class ACE_Hash_Map_Reverse_Iterator_Ex<DsLogAdmin::LogId, DsLogAdmin::BasicLog_var, ACE_Hash<DsLogAdmin::LogId>, ACE_Equal_To<DsLogAdmin::LogId>, ACE_SYNCH_MUTEX>;
-
-#endif /* ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA */