#include <fsDll.h>
Collaboration diagram for fs::sys::Dll_t:

Dll_t wraps a system dynamic-link library. It helps manage the lifetime of the library (it follows RAII pattern), the library is automatically unloaded when Dll_t is destroyed.
Definition at line 28 of file fsDll.h.
Public Member Functions | |
| Dll_t (const char *pszFile) | |
| Loads the system DLL using the given filename. | |
| ~Dll_t () | |
| Unloads the system DLL. | |
| bool | IsValid () const |
| Checks the internal state / correct construction. | |
| const void * | GetSymb (const char *pszName) const |
| Returns the address of the specified exported DLL symbol. | |
| const char * | GetFile () const |
| Returns the filename of the loaded DLL. | |
Private Member Functions | |
| Dll_t () | |
| No def ctor. | |
| Dll_t (const Dll_t &) | |
| No copy. | |
| Dll_t & | operator= (const Dll_t &) |
| No assignment. | |
Private Attributes | |
| void * | m_pImpl |
| The PIPML idiom is used. | |
| Dll_t::Dll_t | ( | const char * | pszFile | ) | [explicit] |
Loads the system DLL using the given filename.
Definition at line 191 of file fsDll.cpp.
References FS_ASSERT_MSG, and m_pImpl.
| Dll_t::~Dll_t | ( | ) |
Unloads the system DLL.
Definition at line 197 of file fsDll.cpp.
References FS_ASSERT_MSG, and m_pImpl.
| fs::sys::Dll_t::Dll_t | ( | ) | [private] |
No def ctor.
| fs::sys::Dll_t::Dll_t | ( | const Dll_t & | ) | [private] |
No copy.
| const char * Dll_t::GetFile | ( | ) | const |
Returns the filename of the loaded DLL.
Definition at line 215 of file fsDll.cpp.
References FS_ASSERT_MSG, and m_pImpl.
| const void * Dll_t::GetSymb | ( | const char * | pszName | ) | const |
Returns the address of the specified exported DLL symbol.
Definition at line 209 of file fsDll.cpp.
References FS_ASSERT_MSG, and m_pImpl.
| bool Dll_t::IsValid | ( | ) | const |
Checks the internal state / correct construction.
Definition at line 203 of file fsDll.cpp.
References FS_ASSERT_MSG, and m_pImpl.
void* fs::sys::Dll_t::m_pImpl [private] |