#include <MyGUI_FactoryManager.h>
Public Types | |
typedef delegates::CDelegate1 < IObject *& > | Delegate |
Public Member Functions | |
FactoryManager () | |
~FactoryManager () | |
void | initialise () |
void | shutdown () |
void | registerFactory (const std::string &_category, const std::string &_type, Delegate::IDelegate *_delegate) |
void | unregisterFactory (const std::string &_category, const std::string &_type) |
void | unregisterFactory (const std::string &_category) |
bool | isFactoryExist (const std::string &_category, const std::string &_type) |
template<typename Type > | |
void | registerFactory (const std::string &_category) |
template<typename Type > | |
void | registerFactory (const std::string &_category, const std::string &_type) |
template<typename Type > | |
void | unregisterFactory (const std::string &_category) |
IObject * | createObject (const std::string &_category, const std::string &_type) |
void | destroyObject (IObject *_object) |
Static Public Member Functions | |
static FactoryManager & | getInstance () |
static FactoryManager * | getInstancePtr () |
Definition at line 34 of file MyGUI_FactoryManager.h.
Definition at line 39 of file MyGUI_FactoryManager.h.
MyGUI::FactoryManager::FactoryManager | ( | ) |
MyGUI::FactoryManager::~FactoryManager | ( | ) |
IObject * MyGUI::FactoryManager::createObject | ( | const std::string & | _category, | |
const std::string & | _type | |||
) |
Definition at line 82 of file MyGUI_FactoryManager.cpp.
void MyGUI::FactoryManager::destroyObject | ( | IObject * | _object | ) |
Definition at line 104 of file MyGUI_FactoryManager.cpp.
static FactoryManager& MyGUI::FactoryManager::getInstance | ( | ) | [static] |
static FactoryManager* MyGUI::FactoryManager::getInstancePtr | ( | ) | [static] |
void MyGUI::FactoryManager::initialise | ( | ) |
Definition at line 31 of file MyGUI_FactoryManager.cpp.
bool MyGUI::FactoryManager::isFactoryExist | ( | const std::string & | _category, | |
const std::string & | _type | |||
) |
Definition at line 126 of file MyGUI_FactoryManager.cpp.
void MyGUI::FactoryManager::registerFactory | ( | const std::string & | _category, | |
const std::string & | _type | |||
) | [inline] |
Definition at line 57 of file MyGUI_FactoryManager.h.
void MyGUI::FactoryManager::registerFactory | ( | const std::string & | _category | ) | [inline] |
Definition at line 51 of file MyGUI_FactoryManager.h.
void MyGUI::FactoryManager::registerFactory | ( | const std::string & | _category, | |
const std::string & | _type, | |||
Delegate::IDelegate * | _delegate | |||
) |
Definition at line 50 of file MyGUI_FactoryManager.cpp.
void MyGUI::FactoryManager::shutdown | ( | ) |
Definition at line 41 of file MyGUI_FactoryManager.cpp.
void MyGUI::FactoryManager::unregisterFactory | ( | const std::string & | _category | ) | [inline] |
Definition at line 63 of file MyGUI_FactoryManager.h.
void MyGUI::FactoryManager::unregisterFactory | ( | const std::string & | _category | ) |
Definition at line 72 of file MyGUI_FactoryManager.cpp.
void MyGUI::FactoryManager::unregisterFactory | ( | const std::string & | _category, | |
const std::string & | _type | |||
) |
Definition at line 56 of file MyGUI_FactoryManager.cpp.