Changeset 9802 in orxonox.OLD for branches/new_class_id
- Timestamp:
- Sep 24, 2006, 12:31:38 PM (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
r9800 r9802 37 37 this->registerObject(this, NewResourceManager::_objectList); 38 38 this->setName("NewResourceManager"); 39 40 //this->dataDir = "./"; 39 this->_mainGlobalPath = Directory("./"); 41 40 } 42 41 -
branches/new_class_id/src/lib/util/loading/new_resource_manager.h
r9800 r9802 19 19 /** @returns a Pointer to the only object of this Class */ 20 20 inline static NewResourceManager* getInstance() { if (!_singletonRef) _singletonRef = new NewResourceManager(); return _singletonRef; }; 21 inline static void deleteInstance() { if (_singletonRef) delete _singletonRef; }; 21 /** @brief deletes the Instance if it exists. */ 22 inline static void deleteInstance() { if (_singletonRef) delete _singletonRef; }; 22 23 23 24 … … 34 35 const std::string& getKeepLevelName(unsigned int keepLevelID) const; 35 36 36 const std::vector<Resources::Type*> resourceTypes() const { return _resourceTypes; }; 37 /** @returns the Types of Resources */ 38 const std::vector<Resources::Type*> resourceTypes() const { return _resourceTypes; }; 39 /** @returns the main global search Path */ 37 40 const Directory& mainGlobalPath() const { return _mainGlobalPath; }; 38 41 /** @returns all global paths without mainGlobalPath */ … … 56 59 static NewResourceManager* _singletonRef; //!< singleton Reference 57 60 58 std::vector<Resources::Type*> _resourceTypes; 59 //! GLOBALS 60 Directory _mainGlobalPath; 61 std::vector<Directory> _globalPaths; 61 Directory _mainGlobalPath; //!< The main include directory (default at "./") 62 std::vector<Directory> _globalPaths; //!< Additional Global include directories. 62 63 63 std::vector<std::string> _keepLevelNames; 64 std::vector<Resources::Type*> _resourceTypes; //!< A Vector of all the stored ResourceTypes @see Resources::Type 65 std::vector<std::string> _keepLevelNames; //!< Names of KeepLevels @see Resources::KeepLevel 64 66 }; 65 67
Note: See TracChangeset
for help on using the changeset viewer.