22 #ifndef FIFE_RESOURCE_LOCATION_H
23 #define FIFE_RESOURCE_LOCATION_H
37 enum ResourceLocationType {
57 ResourceLocation(
const std::string& filename): m_filename(filename),m_type(RES_TYPE_FILE) {}
66 const std::string&
getFilename()
const {
return m_filename; };
71 if( m_type != loc.m_type ) {
75 if (m_filename.length() != loc.m_filename.length()) {
78 if (!std::equal(m_filename.rbegin(), m_filename.rend(), loc.m_filename.rbegin())) {
88 if( m_type < loc.m_type )
90 if( m_type > loc.m_type )
92 return m_filename < loc.m_filename;
102 ResourceLocationType getType()
const {
return m_type; }
105 std::string m_filename;
106 ResourceLocationType m_type;