Changeset 9836 in orxonox.OLD for branches/new_class_id/src/lib/util/loading/resource_manager.h
- Timestamp:
- Sep 26, 2006, 5:16:10 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/new_class_id/src/lib/util/loading/resource_manager.h
r9835 r9836 1 1 /*! 2 * @file new_resource_manager.h2 * @file resource_manager.h 3 3 */ 4 4 5 #ifndef _ NEW_RESOURCE_MANAGER_H6 #define _ NEW_RESOURCE_MANAGER_H5 #ifndef _RESOURCE_MANAGER_H 6 #define _RESOURCE_MANAGER_H 7 7 8 8 #include "resource.h" … … 13 13 { 14 14 15 class NewResourceManager : public BaseObject15 class ResourceManager : public BaseObject 16 16 { 17 ObjectListDeclaration( NewResourceManager);17 ObjectListDeclaration(ResourceManager); 18 18 public: 19 19 /** @returns a Pointer to the only object of this Class */ 20 inline static NewResourceManager* getInstance() { if (!_singletonRef) _singletonRef = new NewResourceManager(); return _singletonRef; };20 inline static ResourceManager* getInstance() { if (!_singletonRef) _singletonRef = new ResourceManager(); return _singletonRef; }; 21 21 /** @brief deletes the Instance if it exists. */ 22 22 inline static void deleteInstance() { if (_singletonRef) delete _singletonRef; }; … … 54 54 static bool isInDataDir(const std::string& fileName); 55 55 private: 56 NewResourceManager();57 virtual ~ NewResourceManager();56 ResourceManager(); 57 virtual ~ResourceManager(); 58 58 59 59 private: 60 static NewResourceManager* _singletonRef; //!< singleton Reference60 static ResourceManager* _singletonRef; //!< singleton Reference 61 61 62 62 Directory _mainGlobalPath; //!< The main include directory (default at "./")
Note: See TracChangeset
for help on using the changeset viewer.