Changeset 9792 in orxonox.OLD for branches/new_class_id/src/lib/util/loading/resource.h
- Timestamp:
- Sep 23, 2006, 2:36:57 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/resource.h
r9791 r9792 44 44 { 45 45 public: 46 Type(const ClassID& classID); 47 bool operator==(const ClassID& classID) const { return this->_classID == classID; }; 48 bool operator==(const std::string& resourceName) const { return this->_classID.name() == resourceName; }; 46 Type(const std::string& typeName); 47 bool operator==(const std::string& resourceName) const { return this->_typeName == resourceName; }; 49 48 50 49 void addExtension(const std::string& extension); … … 54 53 55 54 /// Retrieve Functions 56 const ClassID& storedClassID() const { return _classID; };55 const std::string& storedClassName() const { return _typeName; }; 57 56 int id() const { return _id; }; 58 57 const std::vector<Directory>& resourcePaths() const { return _resourcePaths; }; … … 65 64 private: 66 65 int _id; 67 const ClassID& _classID;66 const std::string& _typeName; 68 67 std::vector<Directory> _resourcePaths; 69 68 std::vector<Directory> _resourceSubPaths;
Note: See TracChangeset
for help on using the changeset viewer.