fs::sys::Dll_t Class Reference

#include <fsDll.h>

Collaboration diagram for fs::sys::Dll_t:

Collaboration graph
[legend]
List of all members.

Detailed Description

System DLL wrapper.

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.

Examples:

_tests/fsDll/main.cpp, and _tests/fsLog/main.cpp.

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_toperator= (const Dll_t &)
 No assignment.

Private Attributes

void * m_pImpl
 The PIPML idiom is used.


Constructor & Destructor Documentation

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.


Member Function Documentation

const char * Dll_t::GetFile (  )  const

Returns the filename of the loaded DLL.

Examples:
_tests/fsDll/main.cpp.

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.

Examples:
_tests/fsDll/main.cpp, and _tests/fsLog/main.cpp.

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.

Examples:
_tests/fsDll/main.cpp, and _tests/fsLog/main.cpp.

Definition at line 203 of file fsDll.cpp.

References FS_ASSERT_MSG, and m_pImpl.

Dll_t& fs::sys::Dll_t::operator= ( const Dll_t  )  [private]

No assignment.


Member Data Documentation

void* fs::sys::Dll_t::m_pImpl [private]

The PIPML idiom is used.

Definition at line 50 of file fsDll.h.


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

FipS' Code (Thu Feb 15 22:43:54 2007) - (c) Filip STOKLAS (FipS) - [ www ] [ Guest Book ]