claw 1.9.0
 
Loading...
Searching...
No Matches
claw::dynamic_library_traits_win32 Class Reference

Microsoft Windows interface for using dynamic libraries. More...

#include <dynamic_library_traits_win32.hpp>

Public Types

typedef HMODULE handle
 Type of the system handle to the library.
 

Static Public Member Functions

static handle open (const std::string &name)
 Open a library.
 
static handle auto_open (const std::string &name)
 Open the current program.
 
static void close (handle h)
 Close a library.
 
template<class T>
static T get_symbol (handle h, const std::string &name)
 Get a symbol from a library.
 
static bool have_symbol (handle h, const std::string &name)
 Tell if a symbol is in the library.
 
static bool valid_handle (handle h)
 Tell if an handle is a valid library handle.
 

Detailed Description

Microsoft Windows interface for using dynamic libraries.

Author
Julien Jorge

Definition at line 45 of file dynamic_library_traits_win32.hpp.

Member Typedef Documentation

◆ handle

Type of the system handle to the library.

Definition at line 49 of file dynamic_library_traits_win32.hpp.

Member Function Documentation

◆ auto_open()

static handle claw::dynamic_library_traits_win32::auto_open ( const std::string & name)
inlinestatic

Open the current program.

Parameters
nameThe name of the current program.
Returns
The handle on the loaded library.

Definition at line 67 of file dynamic_library_traits_win32.hpp.

◆ close()

static void claw::dynamic_library_traits_win32::close ( handle h)
inlinestatic

Close a library.

Parameters
hThe handle of the library to close.

Definition at line 76 of file dynamic_library_traits_win32.hpp.

◆ get_symbol()

template<class T>
static T claw::dynamic_library_traits_win32::get_symbol ( handle h,
const std::string & name )
inlinestatic

Get a symbol from a library.

Parameters
hHandle of the library.
nameThe name of the symbol to load.

Definition at line 87 of file dynamic_library_traits_win32.hpp.

◆ have_symbol()

static bool claw::dynamic_library_traits_win32::have_symbol ( handle h,
const std::string & name )
inlinestatic

Tell if a symbol is in the library.

Parameters
hHandle of the library.
nameThe name of the symbol to find.

Definition at line 102 of file dynamic_library_traits_win32.hpp.

◆ open()

static handle claw::dynamic_library_traits_win32::open ( const std::string & name)
inlinestatic

Open a library.

Parameters
nameThe name of the library to open.
Returns
The handle on the loaded library.

Definition at line 57 of file dynamic_library_traits_win32.hpp.

◆ valid_handle()

static bool claw::dynamic_library_traits_win32::valid_handle ( handle h)
inlinestatic

Tell if an handle is a valid library handle.

Parameters
hThe handle to test.

Definition at line 111 of file dynamic_library_traits_win32.hpp.


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