FIFE 2008.0
FIFE::ResourceLocation Class Reference

#include <resource_location.h>

Inheritance diagram for FIFE::ResourceLocation:

List of all members.

Public Member Functions

 ResourceLocation (const std::string &filename)
virtual ~ResourceLocation ()
const std::string & getFilename () const
virtual bool operator== (const ResourceLocation &loc) const
virtual bool operator< (const ResourceLocation &loc) const
virtual ResourceLocationclone () const

Detailed Description

Contains information about the Location of a Resource

This class is used to give ResoureProvider the information where to find the data.

WARNING: It is very important that the comparison operators work correctly, otherwise the pools will silently consume more and more memory. So before you change something there, think about the implications. Please.

Definition at line 51 of file resource_location.h.


Constructor & Destructor Documentation

FIFE::ResourceLocation::ResourceLocation ( const std::string &  filename) [inline]

Default constructor.

Definition at line 57 of file resource_location.h.

Referenced by clone().

Here is the caller graph for this function:

virtual FIFE::ResourceLocation::~ResourceLocation ( ) [inline, virtual]

Destructor.

Definition at line 61 of file resource_location.h.


Member Function Documentation

virtual ResourceLocation* FIFE::ResourceLocation::clone ( ) const [inline, virtual]

Creates copy of this location All derived classes must implement this and return their corresponding instance

Reimplemented in FIFE::ImageLocation.

Definition at line 98 of file resource_location.h.

References ResourceLocation().

Referenced by FIFE::Pool::addResourceFromLocation(), and FIFE::ResourceClass::setResourceLocation().

Here is the caller graph for this function:

const std::string& FIFE::ResourceLocation::getFilename ( ) const [inline]

Returns the filename.

Returns:
The filename.

Definition at line 66 of file resource_location.h.

Referenced by FIFE::ImageLocation::clone(), FIFE::ImageLocation::operator<(), and FIFE::ImageLocation::operator==().

Here is the caller graph for this function:

virtual bool FIFE::ResourceLocation::operator< ( const ResourceLocation loc) const [inline, virtual]

Compares two ResourceLocations This is needed as the locations should be stored in a std::map

Reimplemented in FIFE::ImageLocation.

Definition at line 87 of file resource_location.h.

virtual bool FIFE::ResourceLocation::operator== ( const ResourceLocation loc) const [inline, virtual]

Compares two ResourceLocations for equality.

Reimplemented in FIFE::ImageLocation.

Definition at line 70 of file resource_location.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Enumerations Enumerator