#include <AVStreams_i.h>
Public Member Functions | |
TAO_AV_QoS (void) | |
constructor. | |
TAO_AV_QoS (AVStreams::streamQoS &stream_qos) | |
constructor taking a stream qos parameter. | |
int | set (AVStreams::streamQoS &stream_qos) |
sets the maps with the QoS paramter. | |
int | get_flow_qos (const char *flowname, AVStreams::QoS &flow_qos) |
gets the flow_qos. | |
int | convert (AVStreams::streamQoS &network_qos) |
converts the application level QoS to Network-level QoS. | |
Protected Attributes | |
AVStreams::streamQoS | stream_qos_ |
Stream Qos. | |
ACE_Hash_Map_Manager< ACE_CString, AVStreams::QoS, ACE_Null_Mutex > | qos_map_ |
Definition at line 419 of file AVStreams_i.h.
|
constructor.
Definition at line 41 of file AVStreams_i.cpp.
00042 { 00043 } |
|
constructor taking a stream qos parameter.
Definition at line 45 of file AVStreams_i.cpp. References set(), and AVStreams::streamQoS.
00046 { 00047 this->set (stream_qos); 00048 } |
|
converts the application level QoS to Network-level QoS.
Definition at line 51 of file AVStreams_i.cpp. References AVStreams::streamQoS.
00052 {
00053 return -1;
00054 }
|
|
gets the flow_qos.
Definition at line 34 of file AVStreams_i.i. References ACE_DEBUG, LM_DEBUG, qos_map_, and TAO_debug_level.
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 } |
|
sets the maps with the QoS paramter.
Definition at line 16 of file AVStreams_i.i. References ACE_CString, ACE_ERROR_RETURN, LM_ERROR, qos_map_, stream_qos_, and AVStreams::streamQoS. Referenced by TAO_AV_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 } |
|
Definition at line 442 of file AVStreams_i.h. Referenced by get_flow_qos(), and set(). |
|
Stream Qos.
Definition at line 440 of file AVStreams_i.h. Referenced by set(). |