Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

# Keos::CDynLibManager Class Reference

Manager for Dynamic-loading Libraries. More...

`#include <KeosDynLibManager.h>`

Inheritance diagram for Keos::CDynLibManager:

List of all members.

## Public Member Functions

CDynLib * | Load (const String &strFilename)
| Loads the passed library.
void | Unload (CDynLib *pLib)
| Unloads the passed library.

## Private Types

typedef std::map< String, CDynLib * > | DynLibList

## Private Member Functions

| CDynLibManager ()
| Default constructor.
| ~CDynLibManager ()
| Destructor.

## Private Attributes

friend | CSingleton<CDynLibManager>
DynLibList | m_LibList
| List of all the open dynamic-loading libraries.

## Detailed Description

Manager for Dynamic-loading Libraries.

This manager keeps a track of all the open dynamic-loading libraries, opens them and returns references to already-open libraries.

Definition at line 36 of file KeosDynLibManager.h.

## Member Typedef Documentation

typedef std::map<String, CDynLib*> Keos::CDynLibManager::DynLibList`[private]`

| Definition at line 53 of file KeosDynLibManager.h.

## Constructor & Destructor Documentation

Keos::CDynLibManager::CDynLibManager | ( |  | ) | `[private]`

| Default constructor. Definition at line 33 of file KeosDynLibManager.cpp.

Keos::CDynLibManager::~CDynLibManager | ( |  | ) | `[private]`

| Destructor. Definition at line 64 of file KeosDynLibManager.cpp. References m_LibList, and Keos::CDynLib::Unload().

## Member Function Documentation

CDynLib * Keos::CDynLibManager::Load | ( | const String & | strFilename | ) |

| Loads the passed library.

Parameters:

  | strFilename | The name of the library. The extension can be ommitted.

Definition at line 38 of file KeosDynLibManager.cpp.

References Keos::CDynLib::Load(), and m_LibList.

void Keos::CDynLibManager::Unload | ( | CDynLib * | pLib | ) |

| Unloads the passed library.

Parameters:

  | pLib | Library to unload.

Definition at line 52 of file KeosDynLibManager.cpp.

References m_LibList, and Keos::CDynLib::Unload().

## Member Data Documentation

friend Keos::CDynLibManager::CSingleton<CDynLibManager>`[private]`

| Definition at line 38 of file KeosDynLibManager.h.

DynLibList Keos::CDynLibManager::m_LibList`[private]`

| List of all the open dynamic-loading libraries. Definition at line 56 of file KeosDynLibManager.h. Referenced by Load(), Unload(), and ~CDynLibManager().

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

- KeosEngine/KeosDynLibManager.h
- KeosEngine/KeosDynLibManager.cpp