MyGUI  3.2.0
Public Types | 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
typedef std::map< std::string,
IResource * > 
MapResource
typedef Enumerator< MapResourceEnumeratorPtr
- Public Types inherited from MyGUI::Singleton< ResourceManager >
typedef Singleton
< ResourceManager
Base

Public Member Functions

 ResourceManager ()
void initialise ()
void shutdown ()
bool load (const std::string &_file)
void loadFromXmlNode (xml::ElementPtr _node, const std::string &_file, Version _version)
void addResource (IResourcePtr _item)
void removeResource (IResourcePtr _item)
LoadXmlDelegateregisterLoadXmlDelegate (const std::string &_key)
void unregisterLoadXmlDelegate (const std::string &_key)
bool isExist (const std::string &_name) const
IResourcefindByName (const std::string &_name) const
IResourcegetByName (const std::string &_name, bool _throw=true) const
bool removeByName (const std::string &_name)
void clear ()
EnumeratorPtr getEnumerator () const
size_t getCount () const
- Public Member Functions inherited from MyGUI::Singleton< ResourceManager >
 Singleton ()
virtual ~Singleton ()
- Public Member Functions inherited from MyGUI::MemberObsolete< ResourceManager >
size_t getResourceCount ()
IResourcePtr getResource (const std::string &_name, bool _throw=true)

Additional Inherited Members

- Static Public Member Functions inherited from MyGUI::Singleton< ResourceManager >
static ResourceManagergetInstance ()
static ResourceManagergetInstancePtr ()
static const char * getClassTypeName ()
- Static Protected Attributes inherited from MyGUI::Singleton< ResourceManager >
static const char * mClassTypeName

Detailed Description

Definition at line 36 of file MyGUI_ResourceManager.h.

Member Typedef Documentation

Definition at line 80 of file MyGUI_ResourceManager.h.

Definition at line 58 of file MyGUI_ResourceManager.h.

typedef std::map<std::string, IResource*> MyGUI::ResourceManager::MapResource

Definition at line 79 of file MyGUI_ResourceManager.h.

Constructor & Destructor Documentation

MyGUI::ResourceManager::ResourceManager ( )

Definition at line 40 of file MyGUI_ResourceManager.cpp.

Member Function Documentation

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

Add resource item to resources

Definition at line 221 of file MyGUI_ResourceManager.cpp.

void MyGUI::ResourceManager::clear ( )

Definition at line 270 of file MyGUI_ResourceManager.cpp.

IResource * MyGUI::ResourceManager::findByName ( const std::string &  _name) const

Find resource by name

Definition at line 245 of file MyGUI_ResourceManager.cpp.

IResource * MyGUI::ResourceManager::getByName ( const std::string &  _name,
bool  _throw = true 
) const

Get resource by name

Definition at line 251 of file MyGUI_ResourceManager.cpp.

size_t MyGUI::ResourceManager::getCount ( ) const

Definition at line 286 of file MyGUI_ResourceManager.cpp.

ResourceManager::EnumeratorPtr MyGUI::ResourceManager::getEnumerator ( ) const

Definition at line 281 of file MyGUI_ResourceManager.cpp.

void MyGUI::ResourceManager::initialise ( )

Definition at line 45 of file MyGUI_ResourceManager.cpp.

bool MyGUI::ResourceManager::isExist ( const std::string &  _name) const

Check is resource exist

Definition at line 240 of file MyGUI_ResourceManager.cpp.

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

Load additional MyGUI *_resource.xml file

Definition at line 77 of file MyGUI_ResourceManager.cpp.

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

Definition at line 82 of file MyGUI_ResourceManager.cpp.

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

Register delegate that parse XML node with specified tag (_key)

Definition at line 135 of file MyGUI_ResourceManager.cpp.

bool MyGUI::ResourceManager::removeByName ( const std::string &  _name)

Definition at line 258 of file MyGUI_ResourceManager.cpp.

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

Remove resource item from resources

Definition at line 227 of file MyGUI_ResourceManager.cpp.

void MyGUI::ResourceManager::shutdown ( )

Definition at line 60 of file MyGUI_ResourceManager.cpp.

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

Unregister delegate that parse XML node with specified tag (_key)

Definition at line 142 of file MyGUI_ResourceManager.cpp.


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