MyGUI: MyGUI_DynLibManager.h Source File

MyGUI 3.4.2

- Main Page
- Related Pages
- Namespaces
- Data Structures
- Files
- Examples

- File List
- Globals

MyGUI_DynLibManager.h
Go to the documentation of this file.
1/*
2 * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3 * Distributed under the MIT License
4 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5 */
6
7#ifndef MYGUI_DYN_LIB_MANAGER_H_
8#define MYGUI_DYN_LIB_MANAGER_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_Singleton.h"
12#include "MyGUI_DynLib.h"
13#include <map>
14
15namespace MyGUI
16{
17
20 class MYGUI_EXPORT DynLibManager
21 {
22 MYGUI_SINGLETON_DECLARATION(DynLibManager);
23 public:
24 DynLibManager();
25
26 void initialise();
27 void shutdown();
28
30 DynLib* load(const std::string& fileName);
32 void unload(DynLib* library);
33
34 void unloadAll();
35
36 /*internal:*/
37 void _unloadDelayDynLibs();
38
39 private:
40 void notifyEventFrameStart(float _time);
41
42 private:
44 typedef std::map <std::string, DynLib*> StringDynLibMap;
46 StringDynLibMap mLibsMap;
47
48 bool mIsInitialise;
49
50 typedef std::vector<DynLib*> VectorDynLib;
51 VectorDynLib mDelayDynLib;
52 };
53
54} // namespace MyGUI
55
56#endif // MYGUI_DYN_LIB_MANAGER_H_
MyGUI_DynLib.h
MYGUI_EXPORT
#define MYGUI_EXPORT
Definition MyGUI_Platform.h:77
MyGUI_Prerequest.h
MyGUI_Singleton.h
MYGUI_SINGLETON_DECLARATION
#define MYGUI_SINGLETON_DECLARATION(ClassName)
Definition MyGUI_Singleton.h:111
MyGUI::DynLib
Resource holding data about a dynamic library.
Definition MyGUI_DynLib.h:35
MyGUI::DynLibManager
Manager of dynamic libraries.
Definition MyGUI_DynLibManager.h:21
MyGUI
Definition MyGUI_ActionController.h:15