MyGUI 3.0.1

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)
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 38 of file MyGUI_ResourceManager.h.


Member Typedef Documentation


Constructor & Destructor Documentation

MyGUI::ResourceManager::ResourceManager ( )
MyGUI::ResourceManager::~ResourceManager ( )

Member Function Documentation

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

Definition at line 77 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 170 of file MyGUI_ResourceManager.cpp.

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

Definition at line 144 of file MyGUI_ResourceManager.cpp.

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

Definition at line 261 of file MyGUI_ResourceManager.cpp.

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

Get resource by GUID

Definition at line 249 of file MyGUI_ResourceManager.cpp.

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

Definition at line 129 of file MyGUI_ResourceManager.cpp.

static ResourceManager& MyGUI::ResourceManager::getInstance ( ) [static]
static ResourceManager* MyGUI::ResourceManager::getInstancePtr ( ) [static]
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 40 of file MyGUI_ResourceManager.cpp.

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

Load additional MyGUI *_resource.xml file

Definition at line 72 of file MyGUI_ResourceManager.cpp.

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

Definition at line 157 of file MyGUI_ResourceManager.cpp.

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

Definition at line 269 of file MyGUI_ResourceManager.cpp.

void MyGUI::ResourceManager::shutdown ( )

Definition at line 55 of file MyGUI_ResourceManager.cpp.

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

Definition at line 164 of file MyGUI_ResourceManager.cpp.


The documentation for this class was generated from the following files:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines