Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Related Pages  

ACE_DLL_Strategy 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

Inheritance graph
[legend]
Collaboration diagram for ACE_DLL_Strategy:

Collaboration graph
[legend]
List of all members.

Public Methods

 ACE_DLL_Strategy (void)
 "Do-nothing" constructor.

 ACE_DLL_Strategy (const char dll_name[], const char factory_function[], const char svc_name[], ACE_Service_Repository *, ACE_Thread_Manager * = 0)
 Initialize the DLL strategy based upon the service's DLL information contained in the <svc_dll_info> string.

int open (const char dll_name[], const char factory_function[], const char svc_name[], ACE_Service_Repository *, ACE_Thread_Manager * = 0)
 Initialize the DLL strategy based upon the service's DLL information contained in the <svc_dll_info> string.

virtual int make_svc_handler (SVC_HANDLER *&)
 Create a SVC_HANDLER by dynamically linking it from a DLL. Returns -1 on failure, else 0.

void dump (void) const
 Dump the state of an object.


Public Attributes

 ACE_ALLOC_HOOK_DECLARE
 Declare the dynamic allocation hooks.


Protected Types

typedef ACE_Creation_Strategy<
SVC_HANDLER> 
inherited

Protected Attributes

char dll_name_ [MAXPATHLEN + 1]
 Name of the DLL to dynamically link.

char factory_function_ [MAXPATHLEN + 1]
 Name of the factory function in the shared library to use to obtain a pointer to the new SVC_HANDLER.

char svc_name_ [MAXNAMELEN + 1]
 Name of the service.

ACE_Service_Repositorysvc_rep_
 Pointer to the <Service_Repository>.


Detailed Description

template<class SVC_HANDLER> template class ACE_DLL_Strategy

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


Member Typedef Documentation

template<classSVC_HANDLER>
typedef ACE_Creation_Strategy<SVC_HANDLER> ACE_DLL_Strategy<SVC_HANDLER>::inherited [protected]
 


Constructor & Destructor Documentation

template<classSVC_HANDLER>
ASYS_INLINE ACE_DLL_Strategy< SVC_HANDLER >::ACE_DLL_Strategy<SVC_HANDLER> ( void )
 

"Do-nothing" constructor.

template<classSVC_HANDLER>
ASYS_INLINE ACE_DLL_Strategy< SVC_HANDLER >::ACE_DLL_Strategy<SVC_HANDLER> ( const char dll_name[],
const char factory_function[],
const char 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 Function Documentation

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

Dump the state of an object.

Reimplemented from ACE_Creation_Strategy.

template<classSVC_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.

template<classSVC_HANDLER>
int ACE_DLL_Strategy<SVC_HANDLER>::open ( const char dll_name[],
const char factory_function[],
const char 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

template<classSVC_HANDLER>
ACE_DLL_Strategy<SVC_HANDLER>::ACE_ALLOC_HOOK_DECLARE
 

Declare the dynamic allocation hooks.

Reimplemented from ACE_Creation_Strategy.

template<classSVC_HANDLER>
char ACE_DLL_Strategy<SVC_HANDLER>::dll_name_[MAXPATHLEN+1] [protected]
 

Name of the DLL to dynamically link.

template<classSVC_HANDLER>
char 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.

template<classSVC_HANDLER>
char ACE_DLL_Strategy<SVC_HANDLER>::svc_name_[MAXNAMELEN+1] [protected]
 

Name of the service.

template<classSVC_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:
Generated at Fri Oct 5 07:01:48 2001 for ACE by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000