#include <resource_location.h>
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 ResourceLocation * | clone () const |
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 49 of file resource_location.h.
FIFE::ResourceLocation::ResourceLocation | ( | const std::string & | filename | ) | [inline] |
Default constructor.
Definition at line 55 of file resource_location.h.
Referenced by clone().
virtual FIFE::ResourceLocation::~ResourceLocation | ( | ) | [inline, virtual] |
Destructor.
Definition at line 59 of file resource_location.h.
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 96 of file resource_location.h.
References ResourceLocation().
Referenced by FIFE::Pool::addResourceFromLocation(), and FIFE::ResourceClass::setResourceLocation().
const std::string& FIFE::ResourceLocation::getFilename | ( | ) | const [inline] |
Returns the filename.
Definition at line 64 of file resource_location.h.
Referenced by FIFE::ImageLocation::clone(), FIFE::ImageLocation::operator<(), and FIFE::ImageLocation::operator==().
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 85 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 68 of file resource_location.h.