Crazy Eddie's GUI System 0.8.7
CEGUI::OgreResourceProvider Class Reference
+ Inheritance diagram for CEGUI::OgreResourceProvider:
+ Collaboration diagram for CEGUI::OgreResourceProvider:

Public Member Functions

void loadRawDataContainer (const String &filename, RawDataContainer &output, const String &resourceGroup)
 Load XML data using InputSource objects. More...
 
void unloadRawDataContainer (RawDataContainer &output)
 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)
 
- Public Member Functions inherited from CEGUI::ResourceProvider
 ResourceProvider ()
 Constructor for the ResourceProvider class.
 
virtual ~ResourceProvider (void)
 Destructor for the ResourceProvider class.
 
virtual void loadRawDataContainer (const String &filename, RawDataContainer &output, const String &resourceGroup)=0
 Load XML data using InputSource objects. More...
 
virtual void unloadRawDataContainer (RawDataContainer &)
 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...
 
const StringgetDefaultResourceGroup (void) const
 Return the current default resource group identifier. More...
 
void setDefaultResourceGroup (const String &resourceGroup)
 Set the default resource group identifier. More...
 
virtual size_t getResourceGroupFileNames (std::vector< String > &out_vec, const String &file_pattern, const String &resource_group)=0
 

Additional Inherited Members

- Protected Attributes inherited from CEGUI::ResourceProvider
String d_defaultResourceGroup
 Default resource group identifier.
 

Member Function Documentation

◆ getResourceGroupFileNames()

size_t CEGUI::OgreResourceProvider::getResourceGroupFileNames ( std::vector< String > &  out_vec,
const String file_pattern,
const String resource_group 
)
virtual

enumerate the files in resource_group that match file_pattern and append thier names to out_vec

Implements CEGUI::ResourceProvider.

◆ loadRawDataContainer()

void CEGUI::OgreResourceProvider::loadRawDataContainer ( const String filename,
RawDataContainer output,
const String resourceGroup 
)
virtual

Load XML data using InputSource objects.

Parameters
filenameString containing a filename of the resource to be loaded.
outputReference 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.

Implements CEGUI::ResourceProvider.

◆ unloadRawDataContainer()

void CEGUI::OgreResourceProvider::unloadRawDataContainer ( RawDataContainer )
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.

Parameters
dataReference to a RawDataContainer object that is about to be destroyed.

Reimplemented from CEGUI::ResourceProvider.