Changeset 9789 in orxonox.OLD for branches/new_class_id/src/lib/util/loading/resource.cc
- Timestamp:
- Sep 22, 2006, 10:20:14 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/resource.cc
r9788 r9789 42 42 this->_type->setID(NewResource::_resourceTypes.size()-1); 43 43 } 44 45 44 } 46 45 … … 66 65 67 66 68 NewResource:: Pointer* NewResource::acquireResource(const std::string& loadString)67 NewResource::StorePointer* NewResource::acquireResource(const std::string& loadString) 69 68 { 70 69 //const NewResource::Type* const type = NewResource::_resourceTypes[this->_type->id()]; … … 94 93 95 94 96 void NewResource::addResource(NewResource:: Pointer* pointer)95 void NewResource::addResource(NewResource::StorePointer* pointer) 97 96 { 98 97 this->_type->addResource(pointer); … … 107 106 108 107 109 110 void NewResource::KeepLevel:: setKeepLevelName(unsigned int level, const std::string& name)108 std::vector<std::string> NewResource::KeepLevel::_keepLevelNames; 109 void NewResource::KeepLevel::defineKeepLevelName(unsigned int level, const std::string& name) 111 110 { 112 if (_keepLevelName .size() <= level)113 _keepLevelName .resize(level+1);114 _keepLevelName [level] = name;111 if (_keepLevelNames.size() <= level) 112 _keepLevelNames.resize(level+1); 113 _keepLevelNames[level] = name; 115 114 } 116 115 117 116 118 117 119 void NewResource::Type::addResource(NewResource:: Pointer* resource)118 void NewResource::Type::addResource(NewResource::StorePointer* resource) 120 119 { 121 120 this->_storedResources.push_back(resource); … … 124 123 125 124 126 NewResource:: Pointer::Pointer(const std::string& loadString, const NewResource::KeepLevel& keeplevel)127 : _loadString(loadString), _keepLevel(keeplevel)125 NewResource::StorePointer::StorePointer(const std::string& loadString, const NewResource::KeepLevel& keeplevel) 126 : _loadString(loadString), _keepLevel(keeplevel) 128 127 {} 129 128
Note: See TracChangeset
for help on using the changeset viewer.