TAO_AV_Endpoint_Reactive_Strategy_A< T_StreamEndpoint, T_VDev, T_MediaCtrl > Class Template Reference

Reactive strategy. More...

#include <Endpoint_Strategy_T.h>

Inheritance diagram for TAO_AV_Endpoint_Reactive_Strategy_A< T_StreamEndpoint, T_VDev, T_MediaCtrl >:

Inheritance graph
[legend]
Collaboration diagram for TAO_AV_Endpoint_Reactive_Strategy_A< T_StreamEndpoint, T_VDev, T_MediaCtrl >:

Collaboration graph
[legend]
List of all members.

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 (ACE_ENV_SINGLE_ARG_DECL)
virtual int create_A (AVStreams::StreamEndPoint_A_ptr &stream_endpoint, AVStreams::VDev_ptr &vdev ACE_ENV_ARG_DECL)
 Called by the MMDevice, when it needs to create an A type endpoint.


Detailed Description

template<class T_StreamEndpoint, class T_VDev, class T_MediaCtrl>
class TAO_AV_Endpoint_Reactive_Strategy_A< T_StreamEndpoint, T_VDev, T_MediaCtrl >

Reactive strategy.

Definition at line 88 of file Endpoint_Strategy_T.h.


Constructor & Destructor Documentation

template<class T_StreamEndpoint, class T_VDev, class T_MediaCtrl>
TAO_AV_Endpoint_Reactive_Strategy_A< T_StreamEndpoint, T_VDev, T_MediaCtrl >::TAO_AV_Endpoint_Reactive_Strategy_A void   ) 
 

Definition at line 242 of file Endpoint_Strategy_T.cpp.

00243 {
00244 }

template<class T_StreamEndpoint, class T_VDev, class T_MediaCtrl>
TAO_AV_Endpoint_Reactive_Strategy_A< T_StreamEndpoint, T_VDev, T_MediaCtrl >::~TAO_AV_Endpoint_Reactive_Strategy_A void   )  [virtual]
 

Destructor.

Definition at line 249 of file Endpoint_Strategy_T.cpp.

00250 {
00251 }


Member Function Documentation

template<class T_StreamEndpoint, class T_VDev, class T_MediaCtrl>
int TAO_AV_Endpoint_Reactive_Strategy_A< T_StreamEndpoint, T_VDev, T_MediaCtrl >::activate_stream_endpoint ACE_ENV_SINGLE_ARG_DECL   )  [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 285 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.

00286 {
00287   ACE_TRY
00288     {
00289 
00290       // Use the bridge method
00291       if (this->make_stream_endpoint (this->stream_endpoint_a_servant_) == -1)
00292         return -1;
00293 
00294       // Save the object references, so that create_a can return them
00295       this->stream_endpoint_a_ = this->stream_endpoint_a_servant_->_this (ACE_ENV_SINGLE_ARG_PARAMETER);
00296       ACE_TRY_CHECK;
00297     }
00298   ACE_CATCHANY
00299     {
00300       ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,"TAO_AV_Endpoint_Reactive_Strategy_A::activate_stream_endpoint");
00301       return -1;
00302     }
00303   ACE_ENDTRY;
00304   ACE_CHECK_RETURN (-1);
00305   return 0;
00306 }

template<class T_StreamEndpoint, class T_VDev, class T_MediaCtrl>
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  ACE_ENV_ARG_DECL
[virtual]
 

Called by the MMDevice, when it needs to create an A type endpoint.

Reimplemented from TAO_AV_Endpoint_Strategy.

Definition at line 267 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.

00270 {
00271   if (this->activate () == -1)
00272     ACE_ERROR_RETURN ((LM_ERROR,
00273                        "(%P|%t) TAO_AV_Endpoint_Reactive_Strategy_A: Error in activate ()\n"),
00274                       -1);
00275 
00276   stream_endpoint = AVStreams::StreamEndPoint_A::_duplicate( this->stream_endpoint_a_.in() );
00277   vdev = AVStreams::VDev::_duplicate( this->vdev_.in() );
00278   return 0;
00279 
00280 }

template<class T_StreamEndpoint, class T_VDev, class T_MediaCtrl>
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 256 of file Endpoint_Strategy_T.cpp.

References CORBA::ORB::_duplicate().

00257 {
00258   this->orb_ = CORBA::ORB::_duplicate (orb);
00259   this->poa_ = PortableServer::POA::_duplicate (poa);
00260   return 0;
00261 }


The documentation for this class was generated from the following files:
Generated on Thu Nov 9 13:47:04 2006 for TAO_AV by doxygen 1.3.6