NAME
ACE_DLL_Strategy -
Defines the interface for specifying a creation strategy for
a SVC_HANDLER based on dynamic linking of the SVC_HANDLER.
SYNOPSIS
#include <ace/ACE_Strategies.h >
template<class SVC_HANDLER>
class ACE_DLL_Strategy : public ACE_Creation_Strategy<SVC_HANDLER>
{
public:
ACE_DLL_Strategy (void);
ACE_DLL_Strategy (
const char svc_dll_info[],
ACE_Service_Config *,
ACE_Thread_Manager * = 0
);
int open (
const char svc_dll_info[],
ACE_Service_Config *,
ACE_Thread_Manager * = 0
);
virtual SVC_HANDLER *make_svc_handler (void);
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;
protected:
typedef ACE_Creation_Strategy<SVC_HANDLER> inherited;
char shared_library_[MAXPATHLEN];
char factory_function_[MAXPATHLEN];
char svc_name[MAXNAMELEN];
ACE_Service_Config *svc_config_;
};
Intialization and termination methods.
ACE_DLL_Strategy (void);
"Do-nothing" constructor.
ACE_DLL_Strategy (
const char svc_dll_info[],
ACE_Service_Config *,
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 svc_dll_info[],
ACE_Service_Config *,
ACE_Thread_Manager * = 0
);
Initialize the DLL strategy based upon the service's DLL
information contained in the svc_dll_info string.
Factory method.
virtual SVC_HANDLER *make_svc_handler (void);
Create a SVC_HANDLER by dynamically linking it from a DLL.
void dump (void) const;
Dump the state of an object.
ACE_ALLOC_HOOK_DECLARE;
Declare the dynamic allocation hooks.
AUTHOR
Doug Schmidt
LIBRARY
ace