libmoost
moost::pdl::dynamic_library_impl Class Reference
Inheritance diagram for moost::pdl::dynamic_library_impl:
Collaboration diagram for moost::pdl::dynamic_library_impl:

List of all members.

Public Member Functions

 dynamic_library_impl (const std::string &library_name, bool resolve_symbols)
 ~dynamic_library_impl ()
void * get_symbol_by_name (const std::string &symbol_name) const
const std::string & library_path () const
 dynamic_library_impl (const std::string &library_name, bool resolve_symbols)
 ~dynamic_library_impl ()
void * get_symbol_by_name (const std::string &symbol_name) const
const std::string & library_path () const

Private Types

typedef void * library_handle_t
typedef HMODULE library_handle_t

Private Member Functions

std::string get_last_error () const
bool is_file_not_found_error (const std::string &error) const
DWORD get_last_error () const
std::string format_error (DWORD error) const
bool is_file_not_found_error (DWORD error) const

Static Private Member Functions

static library_handle_t open_library (const std::string &library_name, bool resolve_symbols)
static const char * default_suffix ()
static library_handle_t open_library (const std::string &library_name, bool resolve_symbols)

Private Attributes

std::string m_library_path
library_handle_t m_library

Detailed Description

Definition at line 9 of file dl_posix.ipp.


Member Typedef Documentation

Definition at line 20 of file dl_win32.ipp.

Definition at line 24 of file dl_posix.ipp.


Constructor & Destructor Documentation

moost::pdl::dynamic_library_impl::dynamic_library_impl ( const std::string &  library_name,
bool  resolve_symbols 
)

Definition at line 35 of file dl_posix.ipp.

Here is the call graph for this function:

moost::pdl::dynamic_library_impl::dynamic_library_impl ( const std::string &  library_name,
bool  resolve_symbols 
)

Member Function Documentation

const char * moost::pdl::dynamic_library_impl::default_suffix ( ) [static, private]

Definition at line 118 of file dl_posix.ipp.

Here is the caller graph for this function:

std::string moost::pdl::dynamic_library_impl::format_error ( DWORD  error) const [private]

Definition at line 104 of file dl_win32.ipp.

Definition at line 132 of file dl_posix.ipp.

Here is the caller graph for this function:

void* moost::pdl::dynamic_library_impl::get_symbol_by_name ( const std::string &  symbol_name) const [virtual]
void * moost::pdl::dynamic_library_impl::get_symbol_by_name ( const std::string &  symbol_name) const [virtual]

Implements moost::pdl::dynamic_library_if.

Definition at line 127 of file dl_posix.ipp.

bool moost::pdl::dynamic_library_impl::is_file_not_found_error ( DWORD  error) const [private]

Definition at line 72 of file dl_win32.ipp.

bool moost::pdl::dynamic_library_impl::is_file_not_found_error ( const std::string &  error) const [private]

Definition at line 87 of file dl_posix.ipp.

Here is the caller graph for this function:

const std::string& moost::pdl::dynamic_library_impl::library_path ( ) const [inline, virtual]

Implements moost::pdl::dynamic_library_if.

Definition at line 14 of file dl_win32.ipp.

const std::string& moost::pdl::dynamic_library_impl::library_path ( ) const [inline, virtual]

Implements moost::pdl::dynamic_library_if.

Definition at line 18 of file dl_posix.ipp.

static library_handle_t moost::pdl::dynamic_library_impl::open_library ( const std::string &  library_name,
bool  resolve_symbols 
) [static, private]
dynamic_library_impl::library_handle_t moost::pdl::dynamic_library_impl::open_library ( const std::string &  library_name,
bool  resolve_symbols 
) [static, private]

Definition at line 113 of file dl_posix.ipp.

Here is the caller graph for this function:


Member Data Documentation

Definition at line 31 of file dl_posix.ipp.


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