Public Types | Public Member Functions | Static Public Member Functions

MyGUI::ResourceManager Class Reference

#include <MyGUI_ResourceManager.h>

Inheritance diagram for MyGUI::ResourceManager:

Public Types

typedef delegates::CDelegate3
< xml::ElementPtr, const
std::string &, Version
LoadXmlDelegate

Public Member Functions

 ResourceManager ()
 ~ResourceManager ()
void initialise ()
void shutdown ()
bool load (const std::string &_file)
bool _loadImplement (const std::string &_file, bool _match, const std::string &_type, const std::string &_instance)
void _load (xml::ElementPtr _node, const std::string &_file, Version _version)
void _loadList (xml::ElementPtr _node, const std::string &_file, Version _version)
void _loadSection (xml::ElementPtr _node, const std::string &_file, Version _version)
IResourcePtr getByID (const Guid &_id, bool _throw=true)
std::string getFileNameByID (const Guid &_id)
void addResource (IResourcePtr _item)
void removeResource (IResourcePtr _item)
LoadXmlDelegateregisterLoadXmlDelegate (const std::string &_key)
void unregisterLoadXmlDelegate (const std::string &_key)
size_t getResourceCount ()
IResourcePtr getResource (const std::string &_name, bool _throw=true)
IResourcePtr getResource (const Guid &_id, bool _throw=true)

Static Public Member Functions

static ResourceManagergetInstance ()
static ResourceManagergetInstancePtr ()

Detailed Description

Definition at line 37 of file MyGUI_ResourceManager.h.


Member Typedef Documentation

Definition at line 65 of file MyGUI_ResourceManager.h.


Constructor & Destructor Documentation

MyGUI::ResourceManager::ResourceManager (  ) 

Definition at line 39 of file MyGUI_ResourceManager.cpp.

MyGUI::ResourceManager::~ResourceManager (  ) 

Definition at line 39 of file MyGUI_ResourceManager.cpp.


Member Function Documentation

void MyGUI::ResourceManager::_load ( xml::ElementPtr  _node,
const std::string &  _file,
Version  _version 
)

Definition at line 80 of file MyGUI_ResourceManager.cpp.

bool MyGUI::ResourceManager::_loadImplement ( const std::string &  _file,
bool  _match,
const std::string &  _type,
const std::string &  _instance 
)

Definition at line 173 of file MyGUI_ResourceManager.cpp.

void MyGUI::ResourceManager::_loadList ( xml::ElementPtr  _node,
const std::string &  _file,
Version  _version 
)

Definition at line 147 of file MyGUI_ResourceManager.cpp.

void MyGUI::ResourceManager::_loadSection ( xml::ElementPtr  _node,
const std::string &  _file,
Version  _version 
)

Definition at line 291 of file MyGUI_ResourceManager.cpp.

void MyGUI::ResourceManager::addResource ( IResourcePtr  _item  ) 

Definition at line 264 of file MyGUI_ResourceManager.cpp.

IResourcePtr MyGUI::ResourceManager::getByID ( const Guid _id,
bool  _throw = true 
)

Get resource by GUID

Definition at line 252 of file MyGUI_ResourceManager.cpp.

std::string MyGUI::ResourceManager::getFileNameByID ( const Guid _id  ) 

Definition at line 132 of file MyGUI_ResourceManager.cpp.

ResourceManager & MyGUI::ResourceManager::getInstance (  )  [static]

Definition at line 39 of file MyGUI_ResourceManager.cpp.

ResourceManager * MyGUI::ResourceManager::getInstancePtr (  )  [static]

Definition at line 39 of file MyGUI_ResourceManager.cpp.

IResourcePtr MyGUI::ResourceManager::getResource ( const std::string &  _name,
bool  _throw = true 
) [inline]
Deprecated:
"use : IResourcePtr ResourceManager::getByName(const std::string& _name, bool _throw)"

Definition at line 78 of file MyGUI_ResourceManager.h.

IResourcePtr MyGUI::ResourceManager::getResource ( const Guid _id,
bool  _throw = true 
) [inline]
Deprecated:
"use : IResourcePtr ResourceManager::getByID(const Guid& _id, bool _throw)"

Definition at line 81 of file MyGUI_ResourceManager.h.

size_t MyGUI::ResourceManager::getResourceCount (  )  [inline]
Deprecated:
"use : size_t ResourceManager::getCount()"

Definition at line 75 of file MyGUI_ResourceManager.h.

void MyGUI::ResourceManager::initialise (  ) 

Definition at line 41 of file MyGUI_ResourceManager.cpp.

bool MyGUI::ResourceManager::load ( const std::string &  _file  ) 

Load additional MyGUI *_resource.xml file

Definition at line 75 of file MyGUI_ResourceManager.cpp.

ResourceManager::LoadXmlDelegate & MyGUI::ResourceManager::registerLoadXmlDelegate ( const std::string &  _key  ) 

Definition at line 160 of file MyGUI_ResourceManager.cpp.

void MyGUI::ResourceManager::removeResource ( IResourcePtr  _item  ) 

Definition at line 272 of file MyGUI_ResourceManager.cpp.

void MyGUI::ResourceManager::shutdown (  ) 

Definition at line 57 of file MyGUI_ResourceManager.cpp.

void MyGUI::ResourceManager::unregisterLoadXmlDelegate ( const std::string &  _key  ) 

Definition at line 167 of file MyGUI_ResourceManager.cpp.


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