Class for getting and setting the QoS characteristics of an AV Stream. More...
#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 parameter. | |
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_ |
Class for getting and setting the QoS characteristics of an AV Stream.
Definition at line 339 of file AVStreams_i.h.
TAO_AV_QoS::TAO_AV_QoS | ( | void | ) |
TAO_AV_QoS::TAO_AV_QoS | ( | AVStreams::streamQoS & | stream_qos | ) |
constructor taking a stream qos parameter.
Definition at line 41 of file AVStreams_i.cpp.
{
this->set (stream_qos);
}
int TAO_AV_QoS::convert | ( | AVStreams::streamQoS & | network_qos | ) |
converts the application level QoS to Network-level QoS.
Definition at line 47 of file AVStreams_i.cpp.
{
return -1;
}
int TAO_AV_QoS::get_flow_qos | ( | const char * | flowname, | |
AVStreams::QoS & | flow_qos | |||
) |
gets the flow_qos.
Definition at line 35 of file AVStreams_i.inl.
{ int result = this->qos_map_.find (flowname, flow_qos); if (result < 0) { if (TAO_debug_level > 0 ) { ACE_DEBUG((LM_DEBUG, "(%N,%l) qos_map contains the flows:\n")); ACE_Hash_Map_Manager<ACE_CString,AVStreams::QoS,ACE_Null_Mutex>::ITERATOR iter = qos_map_.begin(); while( iter != qos_map_.end() ) { ACE_DEBUG((LM_DEBUG, " %s\n", (*iter).ext_id_.c_str() )); ++iter; } ACE_DEBUG ((LM_DEBUG, "(%N,%l) TAO_AV_QOS::get_flow_qos qos_map::find failed for %s\n", flowname)); } return -1; } return 0; }
int TAO_AV_QoS::set | ( | AVStreams::streamQoS & | stream_qos | ) |
sets the maps with the QoS parameter.
Definition at line 16 of file AVStreams_i.inl.
{ this->stream_qos_ = stream_qos; for (u_int j=0;j<this->stream_qos_.length ();j++) { ACE_CString qos_key (CORBA::string_dup (this->stream_qos_[j].QoSType)); int result = this->qos_map_.bind (qos_key,this->stream_qos_[j]); if (result < 0) ACE_ERROR_RETURN ((LM_ERROR, "(%N,%l) TAO_AV_QoS::set qos_map::bind failed\n"), -1); } return 0; }
Definition at line 362 of file AVStreams_i.h.
AVStreams::streamQoS TAO_AV_QoS::stream_qos_ [protected] |
Stream Qos.
Definition at line 360 of file AVStreams_i.h.