#include <Endpoint_Strategy_T.h>
Inheritance diagram for TAO_AV_Endpoint_Reactive_Strategy_B< T_StreamEndpoint, T_Vdev, T_MediaCtrl >:
Public Member Functions | |
TAO_AV_Endpoint_Reactive_Strategy_B (void) | |
Constructor. | |
virtual | ~TAO_AV_Endpoint_Reactive_Strategy_B (void) |
Destructor. | |
int | init (CORBA::ORB_ptr orb, PortableServer::POA_ptr poa) |
virtual int | activate_stream_endpoint (void) |
virtual int | create_B (AVStreams::StreamEndPoint_B_ptr &stream_endpoint, AVStreams::VDev_ptr &vdev) |
Called by the MMDevice, when it needs to create a B type endpoint. |
Definition at line 118 of file Endpoint_Strategy_T.h.
|
Constructor.
Definition at line 277 of file Endpoint_Strategy_T.cpp.
00278 { 00279 } |
|
Destructor.
Definition at line 283 of file Endpoint_Strategy_T.cpp.
00284 { 00285 } |
|
Overrides the base class stream_endpoint activator, to activate a "B" type endpoint Implements TAO_AV_Endpoint_Reactive_Strategy< T_StreamEndpoint, T_Vdev, T_MediaCtrl >. Definition at line 300 of file Endpoint_Strategy_T.cpp.
00301 { 00302 try 00303 { 00304 if (this->make_stream_endpoint ( this->stream_endpoint_b_servant_ ) == -1) 00305 return -1; 00306 00307 this->stream_endpoint_b_ = this->stream_endpoint_b_servant_->_this (); 00308 } 00309 catch (const CORBA::Exception& ex) 00310 { 00311 ex._tao_print_exception ( 00312 "TAO_AV_Endpoint_Reactive_Strategy_B::activate_stream_endpoint"); 00313 return -1; 00314 } 00315 return 0; 00316 } |
|
Called by the MMDevice, when it needs to create a B type endpoint.
Reimplemented from TAO_AV_Endpoint_Strategy. Definition at line 321 of file Endpoint_Strategy_T.cpp. References ACE_ERROR_RETURN, TAO_AV_Endpoint_Reactive_Strategy< T_StreamEndpoint, T_Vdev, T_MediaCtrl >::activate(), and LM_ERROR.
00323 { 00324 if (this->activate () == -1) 00325 ACE_ERROR_RETURN ((LM_ERROR, 00326 "(%P|%t) TAO_AV_Endpoint_Reactive_Strategy_B: Error in activate ()\n"), 00327 -1); 00328 00329 stream_endpoint = AVStreams::StreamEndPoint_B::_duplicate( this->stream_endpoint_b_.in() ); 00330 vdev = AVStreams::VDev::_duplicate( this->vdev_.in() ); 00331 00332 return 0; 00333 } |
|
Definition at line 290 of file Endpoint_Strategy_T.cpp. References CORBA::ORB::_duplicate().
00291 { 00292 this->orb_ = CORBA::ORB::_duplicate (orb); 00293 this->poa_ = PortableServer::POA::_duplicate (poa); 00294 return 0; 00295 } |