Changeset 9850 in orxonox.OLD for branches/new_class_id/src/lib/util/loading/resource.h
- Timestamp:
- Sep 28, 2006, 12:16:37 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/resource.h
r9848 r9850 14 14 #include "filesys/directory.h" 15 15 16 //! A Namespace Resources and ResourceHandling is defined in. 16 17 namespace Resources 17 18 { … … 29 30 KeepLevel(const std::string& keepLevelName); 30 31 32 //! Compare equality 31 33 inline bool operator==(const KeepLevel& keepLevel) const { return this->_keepLevel == keepLevel._keepLevel; }; 34 //! Compares inequality 32 35 inline bool operator!=(const KeepLevel& keepLevel) const { return this->_keepLevel != keepLevel._keepLevel; }; 36 //! Compares less/equal than 33 37 inline bool operator<=(const KeepLevel& keepLevel) const { return this->_keepLevel <= keepLevel._keepLevel; }; 38 //! Compares less than 34 39 inline bool operator<(const KeepLevel& keepLevel) const { return this->_keepLevel < keepLevel._keepLevel; }; 35 40 36 /** @returns the KeepLevel */41 /** @returns the KeepLevel as a number */ 37 42 inline unsigned int keepLevel() const { return _keepLevel; }; 38 43 const std::string& name() const; … … 85 90 public: 86 91 virtual ~Type(); 87 /** @returns true if the names match @param resourceName the Name to compare. @brief compare the Type with a Name */88 bool operator==(const std::string& resourceName) const { return this->_typeName == resourceName; };92 /** @returns true if the names match @param typeName the Name to compare. @brief compare the Type with a Name */ 93 bool operator==(const std::string& typeName) const { return this->_typeName == typeName; }; 89 94 90 95 void addExtension(const std::string& extension);
Note: See TracChangeset
for help on using the changeset viewer.