Crazy Eddies GUI System
0.7.7
|
Public Member Functions | |
MinizipResourceProvider (const String &archive, bool loadLocal=true) | |
void | setArchive (const String &archive) |
sets the archive from which files are retrieved. | |
void | setLoadLocal (bool load=true) |
void | loadRawDataContainer (const String &filename, RawDataContainer &output, const String &resourceGroup) |
Load XML data using InputSource objects. | |
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. | |
const String & | getResourceGroupDirectory (const String &resourceGroup) |
Return the directory associated with the specified resource group identifier. | |
void | clearResourceGroupDirectory (const String &resourceGroup) |
clears any currently set directory for the specified resource group identifier. | |
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. | |
![]() | |
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. | |
void | setDefaultResourceGroup (const String &resourceGroup) |
Set the default resource group identifier. |
Protected Member Functions | |
bool | doesFileExist (const String &filename) |
void | openArchive () |
void | closeArchive () |
![]() | |
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 | |
Impl * | d_pimpl |
![]() | |
ResourceGroupMap | d_resourceGroups |
![]() | |
String | d_defaultResourceGroup |
Default resource group identifier. |
Additional Inherited Members | |
![]() | |
typedef std::map< String, String, String::FastLessCompare > | ResourceGroupMap |
|
virtual |
enumerate the files in \a resource_group that match \a file_pattern and
append thier names to out_vec
Reimplemented from CEGUI::DefaultResourceProvider.
|
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. \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.
Reimplemented from CEGUI::DefaultResourceProvider.
void CEGUI::MinizipResourceProvider::setArchive | ( | const String & | archive | ) |
sets the archive from which files are retrieved.
archive | The filepath to the archive |