FIFE  6e1afdbeda11afe9ac53e6023a4be96ef88f1dc6
FIFE::IResource Class Referenceabstract

#include <resource.h>

+ Inheritance diagram for FIFE::IResource:
+ Collaboration diagram for FIFE::IResource:

Public Types

Public Member Functions

 IResource (const std::string &name, IResourceLoader *loader=0)
 
virtual ~IResource ()
 
virtual const std::string & getName ()
 
ResourceHandle getHandle ()
 
virtual ResourceState getState ()
 
virtual void setState (const ResourceState &state)
 
virtual size_t getSize ()=0
 
virtual void load ()=0
 
virtual void free ()=0
 

Protected Attributes

std::string m_name
 
IResourceLoaderm_loader
 
ResourceState m_state
 

Private Attributes

ResourceHandle m_handle
 

Static Private Attributes

static ResourceHandle m_curhandle = 1
 

Detailed Description

Definition at line 50 of file resource.h.

Member Enumeration Documentation

Enumerator
RES_INVALID 
RES_NOT_LOADED 
RES_LOADED 

Definition at line 52 of file resource.h.

Constructor & Destructor Documentation

FIFE::IResource::IResource ( const std::string &  name,
IResourceLoader loader = 0 
)
inline

Definition at line 58 of file resource.h.

virtual FIFE::IResource::~IResource ( )
inlinevirtual

Definition at line 64 of file resource.h.

Member Function Documentation

virtual void FIFE::IResource::free ( )
pure virtual
virtual size_t FIFE::IResource::getSize ( )
pure virtual
virtual void FIFE::IResource::load ( )
pure virtual

Member Data Documentation

ResourceHandle FIFE::IResource::m_curhandle = 1
staticprivate

Definition at line 85 of file resource.h.

ResourceHandle FIFE::IResource::m_handle
private

Definition at line 84 of file resource.h.

IResourceLoader* FIFE::IResource::m_loader
protected

Definition at line 80 of file resource.h.

Referenced by FIFE::Animation::load(), FIFE::SoundClip::load(), and FIFE::Image::load().

std::string FIFE::IResource::m_name
protected

Definition at line 79 of file resource.h.

Referenced by FIFE::SoundClip::load().


The documentation for this class was generated from the following files: