OpenGUI::GenericResourceProvider Class Reference

#include <OpenGUI_GenericResourceProvider.h>

Inheritance diagram for OpenGUI::GenericResourceProvider:

OpenGUI::ResourceProvider List of all members.

Detailed Description

This is the defailt generic implementation of the resource provider.

If no specialized resource provider is given during creation of the System() object, then this resource provider is automatically loaded used. It is a completely unglorified provider. It reads from files directly off the disk, and requires proper relative or full paths to these files. It literally does nothing more than act as a passthrough to fstream. Most applications will want to create their own resource provider, as this one is very low on features.


Public Member Functions

void loadResource (const String &filename, Resource &output)
 This will be called whenever OpenGUI needs data from the registered resource provider.
void unloadResource (Resource &resource)
 This is called whenever OpenGUI is done with the data and is ready to destroy the Resource contents.


Member Function Documentation

void OpenGUI::GenericResourceProvider::loadResource const String filename,
Resource output
[virtual]
 

This will be called whenever OpenGUI needs data from the registered resource provider.

Implements OpenGUI::ResourceProvider.

void OpenGUI::GenericResourceProvider::unloadResource Resource resource  )  [virtual]
 

This is called whenever OpenGUI is done with the data and is ready to destroy the Resource contents.

Implements OpenGUI::ResourceProvider.


The documentation for this class was generated from the following files:
Copyright © 2006 OpenGUI | OpenGUI.SF.net
Generated: Sun Sep 9 02:00:21 2007