Public Member Functions | Protected Attributes

TAO_Creation_Strategy< SVC_HANDLER > Class Template Reference

Creates a Svc_Handler and set the ORB_Core pointer on it. More...

#include <Acceptor_Impl.h>

Inheritance diagram for TAO_Creation_Strategy< SVC_HANDLER >:
Inheritance graph
[legend]
Collaboration diagram for TAO_Creation_Strategy< SVC_HANDLER >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TAO_Creation_Strategy (TAO_ORB_Core *orb_core)
int make_svc_handler (SVC_HANDLER *&sh)
 Create a SVC_HANDLER and set the ORB_Core pointer on it.

Protected Attributes

TAO_ORB_Coreorb_core_
 Pointer to the ORB Core.

Detailed Description

template<class SVC_HANDLER>
class TAO_Creation_Strategy< SVC_HANDLER >

Creates a Svc_Handler and set the ORB_Core pointer on it.

Definition at line 38 of file Acceptor_Impl.h.


Constructor & Destructor Documentation

template<class SVC_HANDLER >
TAO_Creation_Strategy< SVC_HANDLER >::TAO_Creation_Strategy ( TAO_ORB_Core orb_core  ) 

Constructor.

Definition at line 36 of file Acceptor_Impl.cpp.

  : ACE_Creation_Strategy<SVC_HANDLER> (0, orb_core->reactor()),
    orb_core_ (orb_core)
{
}


Member Function Documentation

template<class SVC_HANDLER >
int TAO_Creation_Strategy< SVC_HANDLER >::make_svc_handler ( SVC_HANDLER *&  sh  )  [virtual]

Create a SVC_HANDLER and set the ORB_Core pointer on it.

Reimplemented from ACE_Creation_Strategy< SVC_HANDLER >.

Definition at line 43 of file Acceptor_Impl.cpp.

{
  if (sh == 0)
    {
      // Purge connections (if necessary)
      this->orb_core_->lane_resources ().transport_cache ().purge ();

      ACE_NEW_RETURN (sh,
                      SVC_HANDLER (this->orb_core_),
                      -1);
    }

  return 0;
}


Member Data Documentation

template<class SVC_HANDLER >
TAO_ORB_Core* TAO_Creation_Strategy< SVC_HANDLER >::orb_core_ [protected]

Pointer to the ORB Core.

Definition at line 51 of file Acceptor_Impl.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines