Abstract class that defines the required interface for all resource provider sub-classes.
More...
#include <ResourceProvider.h>
Inherits CEGUI::AllocatedObject< ResourceProvider >.
Inherited by CEGUI::CompositeResourceProvider, CEGUI::DefaultResourceProvider, and CEGUI::OgreResourceProvider.
|
String | d_defaultResourceGroup |
| Default resource group identifier.
|
|
Abstract class that defines the required interface for all resource provider sub-classes.
A ResourceProvider is used to load both XML and binary data from an external source. This could be from a filesystem or the resource manager of a specific renderer.
◆ getDefaultResourceGroup()
const String & CEGUI::ResourceProvider::getDefaultResourceGroup |
( |
void |
| ) |
const |
|
inline |
Return the current default resource group identifier.
- Returns
- String object containing the currently set default resource group identifier.
◆ getResourceGroupFileNames()
virtual size_t CEGUI::ResourceProvider::getResourceGroupFileNames |
( |
std::vector< String > & |
out_vec, |
|
|
const String & |
file_pattern, |
|
|
const String & |
resource_group |
|
) |
| |
|
pure virtual |
◆ loadRawDataContainer()
virtual void CEGUI::ResourceProvider::loadRawDataContainer |
( |
const String & |
filename, |
|
|
RawDataContainer & |
output, |
|
|
const String & |
resourceGroup |
|
) |
| |
|
pure virtual |
Load XML data using InputSource objects.
- Parameters
-
filename | String containing a filename of the resource to be loaded. |
output | Reference to a InputSourceContainer object to load the data into. / virtual void loadInputSourceContainer(const String& filename, InputSourceContainer& output) = 0; /*!
\brief
Load raw binary data.
\param filename
String containing a filename of the resource to be loaded.
\param output
Reference to a RawDataContainer object to load the data into.
\param resourceGroup
Optional String that may be used by implementations to identify the group from
which the resource should be loaded.
|
Implemented in CEGUI::CompositeResourceProvider, CEGUI::DefaultResourceProvider, CEGUI::MinizipResourceProvider, CEGUI::IrrlichtResourceProvider, and CEGUI::OgreResourceProvider.
◆ setDefaultResourceGroup()
void CEGUI::ResourceProvider::setDefaultResourceGroup |
( |
const String & |
resourceGroup | ) |
|
|
inline |
Set the default resource group identifier.
- Parameters
-
resourceGroup | String object containing the default resource group identifier to be used. |
- Returns
- Nothing.
◆ unloadRawDataContainer()
virtual void CEGUI::ResourceProvider::unloadRawDataContainer |
( |
RawDataContainer & |
| ) |
|
|
inlinevirtual |