Changeset 9847 in orxonox.OLD for branches/new_class_id/src/lib/util
- Timestamp:
- Sep 27, 2006, 11:25:43 PM (18 years ago)
- Location:
- branches/new_class_id/src/lib/util/loading
- Files:
-
- 2 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); -
branches/new_class_id/src/lib/util/loading/resource.h
r9846 r9847 1 1 /*! 2 2 * @file resource.h 3 * @brief Definition of a NewResource.3 * @brief Definition of a Resource. 4 4 */ 5 5 … … 130 130 131 131 132 //! A NewResource is an Object, that can be loaded from Disk 132 133 134 //! A Resource is an Object, that can be loaded from Disk 133 135 /** 134 * The NewResource Hanldes the location and stores pointers to data that can be retrieved.136 * The Resource Hanldes the location and stores pointers to data that can be retrieved. 135 137 */ 136 class NewResource : virtual public BaseObject138 class Resource : virtual public BaseObject 137 139 { 138 ObjectListDeclaration( NewResource);140 ObjectListDeclaration(Resource); 139 141 140 142 public: 141 NewResource(Resources::Type* type);142 virtual ~ NewResource();143 Resource(Resources::Type* type); 144 virtual ~Resource(); 143 145 144 146 /** @brief reloads the underlying resource */ … … 158 160 private: 159 161 Resources::StorePointer* _pointer; //!< Virtual Pointer to the ResourceData. 160 Resources::Type* _type; //!< Type of the NewResource.162 Resources::Type* _type; //!< Type of the Resource. 161 163 }; 162 164 }
Note: See TracChangeset
for help on using the changeset viewer.