Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

QoS_Manager.cpp

Go to the documentation of this file.
00001 // QoS_Manager.cpp
00002 // $Id: QoS_Manager.cpp,v 1.1.1.1 2001/12/04 14:33:13 chad Exp $
00003 
00004 #include "QoS_Manager.h"
00005 #include "ace/Log_Msg.h"
00006 
00007 ACE_RCSID(ace, QoS_Manager, "$Id $")
00008 
00009 ACE_ALLOC_HOOK_DEFINE(ACE_QOS_MANAGER)
00010 
00011 ACE_QoS_Manager::ACE_QoS_Manager (void)
00012 {}
00013 
00014 ACE_QoS_Manager::~ACE_QoS_Manager (void)
00015 {}
00016 
00017 // Adds the given session to the list of session objects joined by
00018 // this socket.
00019 
00020 int
00021 ACE_QoS_Manager::join_qos_session (ACE_QoS_Session *qos_session)
00022 {
00023   if (this->qos_session_set ().insert (qos_session) != 0)
00024     ACE_ERROR_RETURN ((LM_ERROR,
00025                        ACE_LIB_TEXT ("Error in adding a new session to the ")
00026                        ACE_LIB_TEXT ("socket session set\n")),
00027                       -1);
00028   return 0;
00029 }
00030 
00031 // Returns the QoS session set for this socket.
00032 
00033 ACE_Unbounded_Set <ACE_QoS_Session *>
00034 ACE_QoS_Manager::qos_session_set (void)
00035 {
00036   return this->qos_session_set_;
00037 }
00038 
00039 #if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
00040 template class ACE_Node<ACE_QoS_Session *>;
00041 template class ACE_Unbounded_Set<ACE_QoS_Session *>;
00042 template class ACE_Unbounded_Set_Iterator<ACE_QoS_Session *>;
00043 #elif defined (ACE_HAS_TEMPLATE_INSTANTIATION_PRAGMA)
00044 #pragma instantiate ACE_Node<ACE_QoS_Session *>
00045 #pragma instantiate ACE_Unbounded_Set<ACE_QoS_Session *>
00046 #pragma instantiate ACE_Unbounded_Set_Iterator<ACE_QoS_Session *>
00047 #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */

Generated on Mon Jun 16 13:17:26 2003 for ACE_QoS by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002