ACE 8.0.5
Loading...
Searching...
No Matches
ACE_DLL_Strategy< SVC_HANDLER > Class Template Reference

Defines the interface for specifying a creation strategy for a SVC_HANDLER based on dynamic linking of the SVC_HANDLER. More...

#include <Strategies_T.h>

Inheritance diagram for ACE_DLL_Strategy< SVC_HANDLER >:
Collaboration diagram for ACE_DLL_Strategy< SVC_HANDLER >:

Public Types

typedef ACE_Creation_Strategy< SVC_HANDLER > base_type
Public Types inherited from ACE_Creation_Strategy< SVC_HANDLER >
typedef SVC_HANDLER::addr_type addr_type
typedef SVC_HANDLER handler_type
typedef SVC_HANDLER::stream_type stream_type

Public Member Functions

 ACE_DLL_Strategy ()
 "Do-nothing" constructor.
 ACE_DLL_Strategy (const ACE_TCHAR dll_name[], const ACE_TCHAR factory_function[], const ACE_TCHAR svc_name[], ACE_Service_Repository *, ACE_Thread_Manager *=0)
int open (const ACE_TCHAR dll_name[], const ACE_TCHAR factory_function[], const ACE_TCHAR svc_name[], ACE_Service_Repository *, ACE_Thread_Manager *=0)
virtual int make_svc_handler (SVC_HANDLER *&)
void dump () const
 Dump the state of an object.
Public Member Functions inherited from ACE_Creation_Strategy< SVC_HANDLER >
 ACE_Creation_Strategy (ACE_Thread_Manager *=0, ACE_Reactor *=ACE_Reactor::instance())
 Default constructor.
int open (ACE_Thread_Manager *=0, ACE_Reactor *=ACE_Reactor::instance())
virtual ~ACE_Creation_Strategy ()
void dump () const
 Dump the state of an object.

Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.
Public Attributes inherited from ACE_Creation_Strategy< SVC_HANDLER >
 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.

Protected Types

typedef ACE_Creation_Strategy< SVC_HANDLER > inherited

Protected Attributes

ACE_TCHAR dll_name_ [MAXPATHLEN+1]
 Name of the DLL to dynamically link.
ACE_TCHAR factory_function_ [MAXPATHLEN+1]
ACE_TCHAR svc_name_ [MAXNAMELEN+1]
 Name of the service.
ACE_Service_Repositorysvc_rep_
 Pointer to the <Service_Repository>.
Protected Attributes inherited from ACE_Creation_Strategy< SVC_HANDLER >
ACE_Thread_Managerthr_mgr_
 Pointer to a thread manager.
ACE_Reactorreactor_
 Pointer to an ACE_Reactor.

Detailed Description

template<class SVC_HANDLER>
class ACE_DLL_Strategy< SVC_HANDLER >

Defines the interface for specifying a creation strategy for a SVC_HANDLER based on dynamic linking of the SVC_HANDLER.

Member Typedef Documentation

◆ base_type

template<class SVC_HANDLER>
typedef ACE_Creation_Strategy<SVC_HANDLER> ACE_DLL_Strategy< SVC_HANDLER >::base_type

◆ inherited

template<class SVC_HANDLER>
typedef ACE_Creation_Strategy<SVC_HANDLER> ACE_DLL_Strategy< SVC_HANDLER >::inherited
protected

Constructor & Destructor Documentation

◆ ACE_DLL_Strategy() [1/2]

template<class SVC_HANDLER>
ACE_DLL_Strategy< SVC_HANDLER >::ACE_DLL_Strategy ( )
inline

"Do-nothing" constructor.

◆ ACE_DLL_Strategy() [2/2]

template<class SVC_HANDLER>
ACE_DLL_Strategy< SVC_HANDLER >::ACE_DLL_Strategy ( const ACE_TCHAR dll_name[],
const ACE_TCHAR factory_function[],
const ACE_TCHAR svc_name[],
ACE_Service_Repository * svc_rep,
ACE_Thread_Manager * thr_mgr = 0 )
inline

Initialize the DLL strategy based upon the service's DLL information contained in the <svc_dll_info> string.

Member Function Documentation

◆ dump()

template<class SVC_HANDLER>
void ACE_DLL_Strategy< SVC_HANDLER >::dump ( ) const

Dump the state of an object.

◆ make_svc_handler()

template<class SVC_HANDLER>
int ACE_DLL_Strategy< SVC_HANDLER >::make_svc_handler ( SVC_HANDLER *& sh)
virtual

Create a SVC_HANDLER by dynamically linking it from a DLL. Returns -1 on failure, else 0.

Reimplemented from ACE_Creation_Strategy< SVC_HANDLER >.

◆ open()

template<class SVC_HANDLER>
int ACE_DLL_Strategy< SVC_HANDLER >::open ( const ACE_TCHAR dll_name[],
const ACE_TCHAR factory_function[],
const ACE_TCHAR svc_name[],
ACE_Service_Repository * svc_rep,
ACE_Thread_Manager * thr_mgr = 0 )

Initialize the DLL strategy based upon the service's DLL information contained in the <svc_dll_info> string.

Member Data Documentation

◆ ACE_ALLOC_HOOK_DECLARE

template<class SVC_HANDLER>
ACE_DLL_Strategy< SVC_HANDLER >::ACE_ALLOC_HOOK_DECLARE

Declare the dynamic allocation hooks.

◆ dll_name_

template<class SVC_HANDLER>
ACE_TCHAR ACE_DLL_Strategy< SVC_HANDLER >::dll_name_[MAXPATHLEN+1]
protected

Name of the DLL to dynamically link.

◆ factory_function_

template<class SVC_HANDLER>
ACE_TCHAR ACE_DLL_Strategy< SVC_HANDLER >::factory_function_[MAXPATHLEN+1]
protected

Name of the factory function in the shared library to use to obtain a pointer to the new SVC_HANDLER.

◆ svc_name_

template<class SVC_HANDLER>
ACE_TCHAR ACE_DLL_Strategy< SVC_HANDLER >::svc_name_[MAXNAMELEN+1]
protected

Name of the service.

◆ svc_rep_

template<class SVC_HANDLER>
ACE_Service_Repository* ACE_DLL_Strategy< SVC_HANDLER >::svc_rep_
protected

Pointer to the <Service_Repository>.


The documentation for this class was generated from the following files: