Changeset 9792 in orxonox.OLD for branches/new_class_id/src/lib
- Timestamp:
- Sep 23, 2006, 2:36:57 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/graphics/importer/resource_texture.cc
r9791 r9792 25 25 26 26 27 Resources::Type ResourceTexture::type( Texture::staticClassID());27 Resources::Type ResourceTexture::type("Texture"); 28 28 29 29 -
branches/new_class_id/src/lib/util/loading/new_resource_manager.cc
r9791 r9792 113 113 std::vector<Resources::Type*>::const_iterator it; 114 114 for (it = this->_resourceTypes.begin(); it != this->_resourceTypes.end(); ++it) 115 PRINT(0)("ResourceType '%s'\n", (*it)->storedClass ID().name().c_str());115 PRINT(0)("ResourceType '%s'\n", (*it)->storedClassName().c_str()); 116 116 117 117 PRINT(0)("==================================RM==\n"); -
branches/new_class_id/src/lib/util/loading/resource.cc
r9791 r9792 125 125 //// TYPE //// 126 126 ////////////// 127 Resources::Type::Type(const ClassID& classID)128 : _id(-1), _ classID(classID)127 Resources::Type::Type(const std::string& typeName) 128 : _id(-1), _typeName(typeName) 129 129 { 130 130 NewResourceManager::getInstance()->registerType(this); -
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.