Changeset 9797 in orxonox.OLD for branches/new_class_id/src/lib/util/loading
- Timestamp:
- Sep 24, 2006, 11:34:19 AM (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/new_resource_manager.cc
r9795 r9797 20 20 21 21 #include <algorithm> 22 #include < assert.h>22 #include <cassert> 23 23 24 24 ObjectListDefinition(NewResourceManager); -
branches/new_class_id/src/lib/util/loading/new_resource_manager.h
r9795 r9797 14 14 ObjectListDeclaration(NewResourceManager); 15 15 public: 16 virtual ~NewResourceManager();17 16 /** @returns a Pointer to the only object of this Class */ 18 17 inline static NewResourceManager* getInstance() { if (!_singletonRef) _singletonRef = new NewResourceManager(); return _singletonRef; }; 18 inline static void deleteInstance() { if (_singletonRef) delete _singletonRef; }; 19 19 20 20 … … 26 26 void registerType(Resources::Type* type); 27 27 28 void addKeepLevel(unsigned int i, const std::string& keepLevel); 28 29 29 30 const std::vector<Resources::Type*> resourceTypes() const { return _resourceTypes; }; … … 44 45 private: 45 46 NewResourceManager(); 47 virtual ~NewResourceManager(); 46 48 47 49 private: 48 static NewResourceManager* _singletonRef; //!< singleton Reference50 static NewResourceManager* _singletonRef; //!< singleton Reference 49 51 50 std::vector<Resources::Type*> _resourceTypes;52 std::vector<Resources::Type*> _resourceTypes; 51 53 //! GLOBALS 52 Directory _mainGlobalPath;53 std::vector<Directory> _globalPaths;54 Directory _mainGlobalPath; 55 std::vector<Directory> _globalPaths; 54 56 55 57 std::vector<Resources::KeepLevel> _keepLevels; 56 58 }; 57 59
Note: See TracChangeset
for help on using the changeset viewer.