Changeset 9847 in orxonox.OLD for branches/new_class_id/src/lib/util/loading/resource.cc
- Timestamp:
- Sep 27, 2006, 11:25:43 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/resource.cc
r9846 r9847 24 24 namespace Resources 25 25 { 26 ObjectListDefinition( NewResource);26 ObjectListDefinition(Resource); 27 27 28 28 … … 30 30 * standard constructor 31 31 */ 32 NewResource::NewResource (Type* type)32 Resource::Resource (Type* type) 33 33 : _pointer(NULL), _type(type) 34 34 { 35 this->registerObject(this, NewResource::_objectList);35 this->registerObject(this, Resource::_objectList); 36 36 } 37 37 … … 39 39 * standard deconstructor 40 40 */ 41 NewResource::~NewResource ()41 Resource::~Resource () 42 42 { 43 43 // delete what has to be deleted here … … 45 45 46 46 47 std::string NewResource::locateFile(const std::string& fileName) const47 std::string Resource::locateFile(const std::string& fileName) const 48 48 { 49 49 if ((ResourceManager::getInstance()->mainGlobalPath() + File(fileName)).exists() ) … … 69 69 * @return true on success. 70 70 */ 71 std::string NewResource::locateFileInSubDir(const Directory& directory, const std::string& fileName) const71 std::string Resource::locateFileInSubDir(const Directory& directory, const std::string& fileName) const 72 72 { 73 73 std::vector<Directory>::const_iterator it; … … 84 84 85 85 86 StorePointer* NewResource::acquireResource(const std::string& loadString)86 StorePointer* Resource::acquireResource(const std::string& loadString) 87 87 { 88 88 //const Type* const type = _resourceTypes[this->_type->id()]; … … 98 98 99 99 100 void NewResource::addResource(StorePointer* pointer)100 void Resource::addResource(StorePointer* pointer) 101 101 { 102 102 this->_type->addResource(pointer);
Note: See TracChangeset
for help on using the changeset viewer.