Crazy Eddie's GUI System
${CEGUI_VERSION}
|
Inherits CEGUI::ResourceProvider, and CEGUI::ResourceProvider.
Inherited by CEGUI::IrrlichtResourceProvider, CEGUI::IrrlichtResourceProvider, CEGUI::MinizipResourceProvider, CEGUI::MinizipResourceProvider, and DefaultResourceProvider_wrapper.
Public Member Functions | |
void | setResourceGroupDirectory (const String &resourceGroup, const String &directory) |
Set the directory associated with a given resource group identifier. More... | |
const String & | getResourceGroupDirectory (const String &resourceGroup) |
Return the directory associated with the specified resource group identifier. More... | |
void | clearResourceGroupDirectory (const String &resourceGroup) |
clears any currently set directory for the specified resource group identifier. More... | |
void | loadRawDataContainer (const String &filename, RawDataContainer &output, const String &resourceGroup) |
Load XML data using InputSource objects. More... | |
void | unloadRawDataContainer (RawDataContainer &data) |
Unload raw binary data. This gives the resource provider a change to unload the data in its own way before the data container object is destroyed. If it does nothing, then the object will release its memory. More... | |
size_t | getResourceGroupFileNames (std::vector< String > &out_vec, const String &file_pattern, const String &resource_group) |
void | setResourceGroupDirectory (const String &resourceGroup, const String &directory) |
Set the directory associated with a given resource group identifier. More... | |
const String & | getResourceGroupDirectory (const String &resourceGroup) |
Return the directory associated with the specified resource group identifier. More... | |
void | clearResourceGroupDirectory (const String &resourceGroup) |
clears any currently set directory for the specified resource group identifier. More... | |
void | loadRawDataContainer (const String &filename, RawDataContainer &output, const String &resourceGroup) |
Load XML data using InputSource objects. More... | |
void | unloadRawDataContainer (RawDataContainer &data) |
Unload raw binary data. This gives the resource provider a change to unload the data in its own way before the data container object is destroyed. If it does nothing, then the object will release its memory. More... | |
size_t | getResourceGroupFileNames (std::vector< String > &out_vec, const String &file_pattern, const String &resource_group) |
![]() | |
ResourceProvider () | |
Constructor for the ResourceProvider class. | |
virtual | ~ResourceProvider (void) |
Destructor for the ResourceProvider class. | |
const String & | getDefaultResourceGroup (void) const |
Return the current default resource group identifier. More... | |
void | setDefaultResourceGroup (const String &resourceGroup) |
Set the default resource group identifier. More... | |
ResourceProvider () | |
Constructor for the ResourceProvider class. | |
virtual | ~ResourceProvider (void) |
Destructor for the ResourceProvider class. | |
const String & | getDefaultResourceGroup (void) const |
Return the current default resource group identifier. More... | |
void | setDefaultResourceGroup (const String &resourceGroup) |
Set the default resource group identifier. More... | |
Protected Types | |
typedef std::map< String, String, StringFastLessCompare > | ResourceGroupMap |
typedef std::map< String, String, StringFastLessCompare > | ResourceGroupMap |
Protected Member Functions | |
String | getFinalFilename (const String &filename, const String &resourceGroup) const |
Return the final path and filename, taking into account the given resource group identifier that should be used when attempting to load the data. | |
String | getFinalFilename (const String &filename, const String &resourceGroup) const |
Return the final path and filename, taking into account the given resource group identifier that should be used when attempting to load the data. | |
Protected Attributes | |
ResourceGroupMap | d_resourceGroups |
![]() | |
String | d_defaultResourceGroup |
Default resource group identifier. | |
void CEGUI::DefaultResourceProvider::clearResourceGroupDirectory | ( | const String & | resourceGroup | ) |
clears any currently set directory for the specified resource group identifier.
resourceGroup | The resource group identifier for which the associated directory is to be cleared. |
void CEGUI::DefaultResourceProvider::clearResourceGroupDirectory | ( | const String & | resourceGroup | ) |
clears any currently set directory for the specified resource group identifier.
resourceGroup | The resource group identifier for which the associated directory is to be cleared. |
const String & CEGUI::DefaultResourceProvider::getResourceGroupDirectory | ( | const String & | resourceGroup | ) |
Return the directory associated with the specified resource group identifier.
resourceGroup | The resource group identifier for which the associated directory is to be returned. |
const String& CEGUI::DefaultResourceProvider::getResourceGroupDirectory | ( | const String & | resourceGroup | ) |
Return the directory associated with the specified resource group identifier.
resourceGroup | The resource group identifier for which the associated directory is to be returned. |
|
virtual |
enumerate the files in resource_group that match file_pattern and append thier names to out_vec
Implements CEGUI::ResourceProvider.
Reimplemented in CEGUI::MinizipResourceProvider, and CEGUI::MinizipResourceProvider.
References CEGUI::String::c_str(), CEGUI::ResourceProvider::d_defaultResourceGroup, CEGUI::String::empty(), CEGUI::System::getStringTranscoder(), and CEGUI::String::push_back().
Referenced by CEGUI::MinizipResourceProvider::getResourceGroupFileNames().
|
virtual |
enumerate the files in resource_group that match file_pattern and append thier names to out_vec
Implements CEGUI::ResourceProvider.
Reimplemented in CEGUI::MinizipResourceProvider.
|
virtual |
Load XML data using InputSource objects.
filename | String containing a filename of the resource to be loaded. |
output | Reference to a InputSourceContainer object to load the data into. |
Load raw binary data.
filename | String containing a filename of the resource to be loaded. |
output | Reference to a RawDataContainer object to load the data into. |
resourceGroup | Optional String that may be used by implementations to identify the group from which the resource should be loaded. |
Implements CEGUI::ResourceProvider.
Reimplemented in CEGUI::MinizipResourceProvider, CEGUI::MinizipResourceProvider, CEGUI::IrrlichtResourceProvider, and CEGUI::IrrlichtResourceProvider.
References CEGUI::String::c_str(), CEGUI::String::empty(), getFinalFilename(), CEGUI::System::getStringTranscoder(), CEGUI::RawDataContainer::setData(), and CEGUI::RawDataContainer::setSize().
Referenced by CEGUI::MinizipResourceProvider::loadRawDataContainer().
|
virtual |
Load XML data using InputSource objects.
filename | String containing a filename of the resource to be loaded. |
output | Reference to a InputSourceContainer object to load the data into. |
Load raw binary data.
filename | String containing a filename of the resource to be loaded. |
output | Reference to a RawDataContainer object to load the data into. |
resourceGroup | Optional String that may be used by implementations to identify the group from which the resource should be loaded. |
Implements CEGUI::ResourceProvider.
Reimplemented in CEGUI::MinizipResourceProvider, and CEGUI::IrrlichtResourceProvider.
void CEGUI::DefaultResourceProvider::setResourceGroupDirectory | ( | const String & | resourceGroup, |
const String & | directory | ||
) |
Set the directory associated with a given resource group identifier.
resourceGroup | The resource group identifier whose directory is to be set. |
directory | The directory to be associated with resource group identifier resourceGroup |
void CEGUI::DefaultResourceProvider::setResourceGroupDirectory | ( | const String & | resourceGroup, |
const String & | directory | ||
) |
Set the directory associated with a given resource group identifier.
resourceGroup | The resource group identifier whose directory is to be set. |
directory | The directory to be associated with resource group identifier resourceGroup |
References CEGUI::String::find(), CEGUI::String::length(), and CEGUI::String::npos.
Referenced by CEGUI::Config_xmlHandler::initialiseResourceGroupDirectories(), and CEGuiBaseApplication::initialiseResourceGroupDirectories().
|
virtual |
Unload raw binary data. This gives the resource provider a change to unload the data in its own way before the data container object is destroyed. If it does nothing, then the object will release its memory.
data | Reference to a RawDataContainer object that is about to be destroyed. |
Reimplemented from CEGUI::ResourceProvider.
Reimplemented in CEGUI::IrrlichtResourceProvider.
|
virtual |
Unload raw binary data. This gives the resource provider a change to unload the data in its own way before the data container object is destroyed. If it does nothing, then the object will release its memory.
data | Reference to a RawDataContainer object that is about to be destroyed. |
Reimplemented from CEGUI::ResourceProvider.
Reimplemented in CEGUI::IrrlichtResourceProvider, and CEGUI::IrrlichtResourceProvider.
References CEGUI::RawDataContainer::release().