Changeset 9845 in orxonox.OLD for branches/new_class_id/src/lib/util/loading/resource.h
- Timestamp:
- Sep 27, 2006, 11:13:17 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/resource.h
r9844 r9845 29 29 KeepLevel(const std::string& keepLevelName); 30 30 31 bool operator==(const KeepLevel& keepLevel) const { return this->_keepLevel == keepLevel._keepLevel; }; 32 bool operator!=(const KeepLevel& keepLevel) const { return this->_keepLevel != keepLevel._keepLevel; }; 33 bool operator<=(const KeepLevel& keepLevel) const { return this->_keepLevel <= keepLevel._keepLevel; }; 34 bool operator<(const KeepLevel& keepLevel) const { return this->_keepLevel < keepLevel._keepLevel; }; 35 31 36 /** @returns the KeepLevel */ 32 37 unsigned int keepLevel() const { return _keepLevel; }; … … 41 46 public: 42 47 StorePointer(const std::string& loadString, const Resources::KeepLevel& keeplevel); 48 //! Virtual Destructor, that removes the Stored information-pointer. 49 virtual ~StorePointer() {}; 50 43 51 /** @returns the LoadString this resource was loaded with */ 44 52 const std::string& loadString() const { return _loadString; }; … … 73 81 const std::string& storedClassName() const { return _typeName; }; 74 82 /** @returns the ID of the Type != ClassID */ 75 int id() const { return _id; };76 83 /** @returns the type-specific paths this Resource searches in. */ 77 84 const std::vector<Directory>& resourcePaths() const { return _resourcePaths; }; … … 83 90 virtual void createFromString(const std::string& loadString) = 0; 84 91 85 void setID(int id); 92 void unloadAllBelowKeepLevel(const Resources::KeepLevel& keepLevel); 93 86 94 void addResource(Resources::StorePointer* resource); 87 95 … … 94 102 Type(const Type& type) {}; 95 103 private: 96 int _id; //!< ID of the Type in over all of the Types.97 104 const std::string _typeName; //!< Name of the Type. (Name of the Resource this loads.) 98 105 std::vector<Directory> _resourcePaths; //!< The Paths to search for files in this type
Note: See TracChangeset
for help on using the changeset viewer.