#include <Endpoint_Strategy_T.h>
Inheritance diagram for TAO_AV_Endpoint_Reactive_Strategy_A< T_StreamEndpoint, T_VDev, T_MediaCtrl >:
Public Member Functions | |
TAO_AV_Endpoint_Reactive_Strategy_A (void) | |
int | init (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa) |
Constructor. | |
virtual | ~TAO_AV_Endpoint_Reactive_Strategy_A (void) |
Destructor. | |
virtual int | activate_stream_endpoint (void) |
virtual int | create_A (AVStreams::StreamEndPoint_A_ptr &stream_endpoint, AVStreams::VDev_ptr &vdev) |
Called by the MMDevice, when it needs to create an A type endpoint. |
Definition at line 88 of file Endpoint_Strategy_T.h.
TAO_AV_Endpoint_Reactive_Strategy_A< T_StreamEndpoint, T_VDev, T_MediaCtrl >::TAO_AV_Endpoint_Reactive_Strategy_A | ( | void | ) |
TAO_AV_Endpoint_Reactive_Strategy_A< T_StreamEndpoint, T_VDev, T_MediaCtrl >::~TAO_AV_Endpoint_Reactive_Strategy_A | ( | void | ) | [virtual] |
int TAO_AV_Endpoint_Reactive_Strategy_A< T_StreamEndpoint, T_VDev, T_MediaCtrl >::activate_stream_endpoint | ( | void | ) | [virtual] |
Overrides the base class stream_endpoint activator, to activate an "A" type endpoint
Implements TAO_AV_Endpoint_Reactive_Strategy< T_StreamEndpoint, T_VDev, T_MediaCtrl >.
Definition at line 249 of file Endpoint_Strategy_T.cpp.
References CORBA::Exception::_tao_print_exception().
00250 { 00251 try 00252 { 00253 00254 // Use the bridge method 00255 if (this->make_stream_endpoint (this->stream_endpoint_a_servant_) == -1) 00256 return -1; 00257 00258 // Save the object references, so that create_a can return them 00259 this->stream_endpoint_a_ = this->stream_endpoint_a_servant_->_this (); 00260 } 00261 catch (const CORBA::Exception& ex) 00262 { 00263 ex._tao_print_exception ( 00264 "TAO_AV_Endpoint_Reactive_Strategy_A::activate_stream_endpoint"); 00265 return -1; 00266 } 00267 return 0; 00268 }
int TAO_AV_Endpoint_Reactive_Strategy_A< T_StreamEndpoint, T_VDev, T_MediaCtrl >::create_A | ( | AVStreams::StreamEndPoint_A_ptr & | stream_endpoint, | |
AVStreams::VDev_ptr & | vdev | |||
) | [virtual] |
Called by the MMDevice, when it needs to create an A type endpoint.
Reimplemented from TAO_AV_Endpoint_Strategy.
Definition at line 232 of file Endpoint_Strategy_T.cpp.
References ACE_ERROR_RETURN, and LM_ERROR.
00234 { 00235 if (this->activate () == -1) 00236 ACE_ERROR_RETURN ((LM_ERROR, 00237 "(%P|%t) TAO_AV_Endpoint_Reactive_Strategy_A: Error in activate ()\n"), 00238 -1); 00239 00240 stream_endpoint = AVStreams::StreamEndPoint_A::_duplicate( this->stream_endpoint_a_.in() ); 00241 vdev = AVStreams::VDev::_duplicate( this->vdev_.in() ); 00242 return 0; 00243 00244 }
int TAO_AV_Endpoint_Reactive_Strategy_A< T_StreamEndpoint, T_VDev, T_MediaCtrl >::init | ( | CORBA::ORB_ptr | orb, | |
PortableServer::POA_ptr | poa | |||
) |
Constructor.
Definition at line 221 of file Endpoint_Strategy_T.cpp.
References CORBA::ORB::_duplicate().
00222 { 00223 this->orb_ = CORBA::ORB::_duplicate (orb); 00224 this->poa_ = PortableServer::POA::_duplicate (poa); 00225 return 0; 00226 }