#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 (ACE_ENV_SINGLE_ARG_DECL) |
virtual int | create_B (AVStreams::StreamEndPoint_B_ptr &stream_endpoint, AVStreams::VDev_ptr &vdev ACE_ENV_ARG_DECL) |
Called by the MMDevice, when it needs to create a B type endpoint. |
Definition at line 119 of file Endpoint_Strategy_T.h.
|
Constructor.
Definition at line 315 of file Endpoint_Strategy_T.cpp.
00316 { 00317 } |
|
Destructor.
Definition at line 321 of file Endpoint_Strategy_T.cpp.
00322 { 00323 } |
|
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 338 of file Endpoint_Strategy_T.cpp. References ACE_ANY_EXCEPTION, ACE_CATCHANY, ACE_CHECK_RETURN, ACE_ENDTRY, ACE_ENV_SINGLE_ARG_DECL, ACE_ENV_SINGLE_ARG_PARAMETER, ACE_PRINT_EXCEPTION, ACE_TRY, and ACE_TRY_CHECK.
00339 { 00340 ACE_TRY 00341 { 00342 if (this->make_stream_endpoint ( this->stream_endpoint_b_servant_ ) == -1) 00343 return -1; 00344 00345 this->stream_endpoint_b_ = this->stream_endpoint_b_servant_->_this (ACE_ENV_SINGLE_ARG_PARAMETER); 00346 ACE_TRY_CHECK; 00347 } 00348 ACE_CATCHANY 00349 { 00350 ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,"TAO_AV_Endpoint_Reactive_Strategy_B::activate_stream_endpoint"); 00351 return -1; 00352 } 00353 ACE_ENDTRY; 00354 ACE_CHECK_RETURN (-1); 00355 return 0; 00356 } |
|
Called by the MMDevice, when it needs to create a B type endpoint.
Reimplemented from TAO_AV_Endpoint_Strategy. Definition at line 361 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.
00364 { 00365 if (this->activate () == -1) 00366 ACE_ERROR_RETURN ((LM_ERROR, 00367 "(%P|%t) TAO_AV_Endpoint_Reactive_Strategy_B: Error in activate ()\n"), 00368 -1); 00369 00370 stream_endpoint = AVStreams::StreamEndPoint_B::_duplicate( this->stream_endpoint_b_.in() ); 00371 vdev = AVStreams::VDev::_duplicate( this->vdev_.in() ); 00372 00373 return 0; 00374 } |
|
Definition at line 328 of file Endpoint_Strategy_T.cpp. References CORBA::ORB::_duplicate().
00329 { 00330 this->orb_ = CORBA::ORB::_duplicate (orb); 00331 this->poa_ = PortableServer::POA::_duplicate (poa); 00332 return 0; 00333 } |