Changeset 9848 in orxonox.OLD for branches/new_class_id/src/lib/util/loading/resource.h
- Timestamp:
- Sep 27, 2006, 11:39:47 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/resource.h
r9847 r9848 42 42 43 43 44 44 /////////////////// 45 // STORE POINTER // 46 /////////////////// 45 47 //! Stores a Resource-Pointer, the LoadString and it's keepLevel. 46 48 class StorePointer … … 70 72 71 73 72 74 /////////////////// 75 // RESOURCE TYPE // 76 /////////////////// 73 77 //! A Type of Resources. 74 78 /** … … 122 126 }; 123 127 128 /** 129 * @brief A Type Definition Class for any Object that is resourceable. 130 * 131 * This Class's main reason of Existence is, that resources can be dynamically 132 * created over a loadString. For this the Type of Resource is required, and the Resource must 133 * itself support the 'void createFromString(const std::string&)' function. 134 */ 124 135 template<class T> class tType : public Type 125 136 { 126 137 public: 138 /** Create the ResourceType @see Type(const std::string&) */ 127 139 tType(const std::string& typeName) : Type(typeName) {}; 140 /** @param loadString the String to load a Resource with @brief tries to create a Resource of Type T with a loadString */ 128 141 virtual void createFromString(const std::string& loadString) { T::createFromString(loadString); } 129 142 }; … … 131 144 132 145 146 ///////////////////// 147 // RESOURCE ITSELF // 148 ///////////////////// 133 149 134 150 //! A Resource is an Object, that can be loaded from Disk
Note: See TracChangeset
for help on using the changeset viewer.