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);
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
    );

Factory method.

virtual SVC_HANDLER *make_svc_handler (void);
void dump (void) const;
ACE_ALLOC_HOOK_DECLARE;

AUTHOR

Doug Schmidt

LIBRARY

ace