00001
00002
00003
00004
00005 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00006
00007 ACE_INLINE
00008 TAO_AV_QoS &
00009 TAO_Base_StreamEndPoint::qos (void)
00010 {
00011 return this->qos_;
00012 }
00013
00014 ACE_INLINE
00015 int
00016 TAO_AV_QoS::set (AVStreams::streamQoS &stream_qos)
00017 {
00018 this->stream_qos_ = stream_qos;
00019
00020 for (u_int j=0;j<this->stream_qos_.length ();j++)
00021 {
00022 ACE_CString qos_key (CORBA::string_dup (this->stream_qos_[j].QoSType));
00023 int result = this->qos_map_.bind (qos_key,this->stream_qos_[j]);
00024 if (result < 0)
00025 ACE_ERROR_RETURN ((LM_ERROR,
00026 "(%N,%l) TAO_AV_QoS::set qos_map::bind failed\n"),-1);
00027 }
00028 return 0;
00029 }
00030
00031
00032 ACE_INLINE
00033 int
00034 TAO_AV_QoS::get_flow_qos (const char *flowname,
00035 AVStreams::QoS &flow_qos)
00036 {
00037 int result = this->qos_map_.find (flowname,
00038 flow_qos);
00039
00040 if (result < 0)
00041 {
00042 if (TAO_debug_level > 0 ) {
00043 ACE_DEBUG((LM_DEBUG, "(%N,%l) qos_map contains the flows:\n"));
00044
00045 ACE_Hash_Map_Manager<ACE_CString,AVStreams::QoS,ACE_Null_Mutex>::ITERATOR iter
00046 = qos_map_.begin();
00047
00048 while( iter != qos_map_.end() )
00049 {
00050 ACE_DEBUG((LM_DEBUG, " %s\n", (*iter).ext_id_.c_str() ));
00051 ++iter;
00052 }
00053
00054 ACE_DEBUG ((LM_DEBUG,
00055 "(%N,%l) TAO_AV_QOS::get_flow_qos qos_map::find failed for %s\n", flowname));
00056 }
00057 return -1;
00058 }
00059 return 0;
00060 }
00061
00062 TAO_END_VERSIONED_NAMESPACE_DECL