Reactive strategy. More...
#include <Endpoint_Strategy_T.h>
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. |
Reactive strategy.
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 | ) |
Definition at line 207 of file Endpoint_Strategy_T.cpp.
{ }
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.
{ try { // Use the bridge method if (this->make_stream_endpoint (this->stream_endpoint_a_servant_) == -1) return -1; // Save the object references, so that create_a can return them this->stream_endpoint_a_ = this->stream_endpoint_a_servant_->_this (); } catch (const CORBA::Exception& ex) { ex._tao_print_exception ( "TAO_AV_Endpoint_Reactive_Strategy_A::activate_stream_endpoint"); return -1; } return 0; }
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.
{ if (this->activate () == -1) ACE_ERROR_RETURN ((LM_ERROR, "(%P|%t) TAO_AV_Endpoint_Reactive_Strategy_A: Error in activate ()\n"), -1); stream_endpoint = AVStreams::StreamEndPoint_A::_duplicate( this->stream_endpoint_a_.in() ); vdev = AVStreams::VDev::_duplicate( this->vdev_.in() ); return 0; }
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.
{ this->orb_ = CORBA::ORB::_duplicate (orb); this->poa_ = PortableServer::POA::_duplicate (poa); return 0; }