ork::ResourceLoader Class Reference
[resource]

An abstract resource loader, loads ResourceDescriptor from disk or other locations. More...

#include <ResourceLoader.h>

Inheritance diagram for ork::ResourceLoader:
ork::Object ork::CompiledResourceLoader ork::XMLResourceLoader ork::ResourceCompiler

List of all members.

Public Member Functions

 ResourceLoader ()
 Creates a new resource loader.
virtual ~ResourceLoader ()
 Deletes this resource loader.
virtual string findResource (const string &name)=0
 Returns the path of the resource of the given name.
virtual ptr< ResourceDescriptorloadResource (const string &name)=0
 Loads the ResourceDescriptor of the given name.
virtual ptr< ResourceDescriptorreloadResource (const string &name, ptr< ResourceDescriptor > currentValue)=0
 Reloads the ResourceDescriptor of the given name.

Detailed Description

An abstract resource loader, loads ResourceDescriptor from disk or other locations.


Constructor & Destructor Documentation

ork::ResourceLoader::ResourceLoader (  ) 

Creates a new resource loader.

virtual ork::ResourceLoader::~ResourceLoader (  )  [virtual]

Deletes this resource loader.


Member Function Documentation

virtual string ork::ResourceLoader::findResource ( const string &  name  )  [pure virtual]

Returns the path of the resource of the given name.

Parameters:
name the name of a resource.
Returns:
the path of this resource.
Exceptions:
exception if the resource is not found.

Implemented in ork::CompiledResourceLoader, ork::ResourceCompiler, and ork::XMLResourceLoader.

virtual ptr<ResourceDescriptor> ork::ResourceLoader::loadResource ( const string &  name  )  [pure virtual]

Loads the ResourceDescriptor of the given name.

Parameters:
name the name of the ResourceDescriptor to be loaded.
Returns:
the ResourceDescriptor of the given name, or NULL if the resource is not found.

Implemented in ork::CompiledResourceLoader, ork::ResourceCompiler, and ork::XMLResourceLoader.

virtual ptr<ResourceDescriptor> ork::ResourceLoader::reloadResource ( const string &  name,
ptr< ResourceDescriptor currentValue 
) [pure virtual]

Reloads the ResourceDescriptor of the given name.

Parameters:
name the name of the ResourceDescriptor to be loaded.
currentValue the current value of this ResourceDescriptor.
Returns:
the new value of this ResourceDescriptor, or NULL if this value has not changed.

Implemented in ork::CompiledResourceLoader, and ork::XMLResourceLoader.


Generated on Mon Oct 18 09:36:11 2010 for ork by  doxygen 1.6.1