Changeset 4836 in orxonox.OLD for orxonox/trunk/src/util/resource_manager.cc
- Timestamp:
- Jul 12, 2005, 12:33:16 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/util/resource_manager.cc
r4746 r4836 47 47 48 48 /** 49 \briefstandard constructor49 * standard constructor 50 50 */ 51 51 ResourceManager::ResourceManager () … … 64 64 65 65 /** 66 \briefstandard destructor66 * standard destructor 67 67 */ 68 68 ResourceManager::~ResourceManager () … … 87 87 88 88 /** 89 \briefsets the data main directory90 \param dataDir the DataDirectory.89 * sets the data main directory 90 * @param dataDir the DataDirectory. 91 91 */ 92 92 bool ResourceManager::setDataDir(const char* dataDir) … … 110 110 111 111 /** 112 \briefchecks for the DataDirectory, by looking if113 \param fileInside is inisde??112 * checks for the DataDirectory, by looking if 113 * @param fileInside is inisde?? 114 114 */ 115 115 bool ResourceManager::checkDataDir(const char* fileInside) … … 131 131 #ifndef NO_TEXTURES 132 132 /** 133 \briefadds a new Path for Images134 \param imageDir The path to insert135 \returns true, if the Path was well and injected (or already existent within the list)133 * adds a new Path for Images 134 * @param imageDir The path to insert 135 * @returns true, if the Path was well and injected (or already existent within the list) 136 136 false otherwise 137 137 */ … … 171 171 172 172 /** 173 \briefloads resources174 \param fileName: The fileName of the resource to load175 \param prio: The ResourcePriority of this resource (will only be increased)176 \param param1: an additional option to parse (see the constuctors for more help)177 \param param2: an additional option to parse (see the constuctors for more help)178 \param param3: an additional option to parse (see the constuctors for more help)179 \returns a pointer to a desired Resource.173 * loads resources 174 * @param fileName: The fileName of the resource to load 175 * @param prio: The ResourcePriority of this resource (will only be increased) 176 * @param param1: an additional option to parse (see the constuctors for more help) 177 * @param param2: an additional option to parse (see the constuctors for more help) 178 * @param param3: an additional option to parse (see the constuctors for more help) 179 * @returns a pointer to a desired Resource. 180 180 */ 181 181 void* ResourceManager::load(const char* fileName, ResourcePriority prio, void* param1, void* param2, void* param3) … … 228 228 229 229 /** 230 \briefloads resources231 \param fileName: The fileName of the resource to load232 \param type: The Type of Resource to load (\see ResourceType)233 \param prio: The ResourcePriority of this resource (will only be increased)234 \param param1: an additional option to parse (see the constuctors for more help)235 \param param2: an additional option to parse (see the constuctors for more help)236 \param param3: an additional option to parse (see the constuctors for more help)237 \returns a pointer to a desired Resource.230 * loads resources 231 * @param fileName: The fileName of the resource to load 232 * @param type: The Type of Resource to load (\see ResourceType) 233 * @param prio: The ResourcePriority of this resource (will only be increased) 234 * @param param1: an additional option to parse (see the constuctors for more help) 235 * @param param2: an additional option to parse (see the constuctors for more help) 236 * @param param3: an additional option to parse (see the constuctors for more help) 237 * @returns a pointer to a desired Resource. 238 238 */ 239 239 void* ResourceManager::load(const char* fileName, ResourceType type, ResourcePriority prio, … … 400 400 401 401 /** 402 \briefunloads a Resource403 \param pointer: The pointer to free404 \param prio: the PriorityLevel to unload this resource405 \returns true if successful (pointer found, and deleted), false otherwise402 * unloads a Resource 403 * @param pointer: The pointer to free 404 * @param prio: the PriorityLevel to unload this resource 405 * @returns true if successful (pointer found, and deleted), false otherwise 406 406 */ 407 407 bool ResourceManager::unload(void* pointer, ResourcePriority prio) … … 419 419 420 420 /** 421 \briefunloads a Resource422 \param resource: The resource to unloade423 \param prio the PriorityLevel to unload this resource421 * unloads a Resource 422 * @param resource: The resource to unloade 423 * @param prio the PriorityLevel to unload this resource 424 424 */ 425 425 bool ResourceManager::unload(Resource* resource, ResourcePriority prio) … … 478 478 479 479 /** 480 \briefunloads all alocated Memory of Resources with a pririty lower than prio481 \param prio The priority to delete480 * unloads all alocated Memory of Resources with a pririty lower than prio 481 * @param prio The priority to delete 482 482 */ 483 483 bool ResourceManager::unloadAllByPriority(ResourcePriority prio) … … 500 500 501 501 /** 502 \briefSearches for a Resource by some information503 \param fileName: The name to look for504 \param type the Type of resource to locate.505 \param param1: an additional option to parse (see the constuctors for more help)506 \param param2: an additional option to parse (see the constuctors for more help)507 \param param3: an additional option to parse (see the constuctors for more help)508 \returns a Pointer to the Resource if found, NULL otherwise.502 * Searches for a Resource by some information 503 * @param fileName: The name to look for 504 * @param type the Type of resource to locate. 505 * @param param1: an additional option to parse (see the constuctors for more help) 506 * @param param2: an additional option to parse (see the constuctors for more help) 507 * @param param3: an additional option to parse (see the constuctors for more help) 508 * @returns a Pointer to the Resource if found, NULL otherwise. 509 509 */ 510 510 Resource* ResourceManager::locateResourceByInfo(const char* fileName, ResourceType type, … … 587 587 588 588 /** 589 \briefSearches for a Resource by Pointer590 \param pointer the Pointer to search for591 \returns a Pointer to the Resource if found, NULL otherwise.589 * Searches for a Resource by Pointer 590 * @param pointer the Pointer to search for 591 * @returns a Pointer to the Resource if found, NULL otherwise. 592 592 */ 593 593 Resource* ResourceManager::locateResourceByPointer(const void* pointer) … … 610 610 611 611 /** 612 \briefChecks if it is a Directory613 \param directoryName the Directory to check for614 \returns true if it is a directory/symlink false otherwise612 * Checks if it is a Directory 613 * @param directoryName the Directory to check for 614 * @returns true if it is a directory/symlink false otherwise 615 615 */ 616 616 bool ResourceManager::isDir(const char* directoryName) … … 657 657 658 658 /** 659 \briefChecks if the file is either a Regular file or a Symlink660 \param fileName the File to check for661 \returns true if it is a regular file/symlink, false otherwise659 * Checks if the file is either a Regular file or a Symlink 660 * @param fileName the File to check for 661 * @returns true if it is a regular file/symlink, false otherwise 662 662 */ 663 663 bool ResourceManager::isFile(const char* fileName) … … 693 693 694 694 /** 695 \brieftouches a File on the disk (thereby creating it)696 \param fileName The file to touch695 * touches a File on the disk (thereby creating it) 696 * @param fileName The file to touch 697 697 */ 698 698 bool ResourceManager::touchFile(const char* fileName) … … 713 713 714 714 /** 715 \briefdeletes a File from disk716 \param fileName the File to delete715 * deletes a File from disk 716 * @param fileName the File to delete 717 717 */ 718 718 bool ResourceManager::deleteFile(const char* fileName) … … 726 726 727 727 /** 728 \param name the Name of the file to check729 \returns The name of the file, including the HomeDir728 * @param name the Name of the file to check 729 * @returns The name of the file, including the HomeDir 730 730 IMPORTANT: this has to be deleted from the outside 731 731 */ … … 755 755 756 756 /** 757 \param fileName the Name of the File to check758 \returns The full name of the file, including the DataDir, and NULL if the file does not exist757 * @param fileName the Name of the File to check 758 * @returns The full name of the file, including the DataDir, and NULL if the file does not exist 759 759 IMPORTANT: this has to be deleted from the outside 760 760 */ … … 778 778 779 779 /** 780 \briefoutputs debug information about the ResourceManager780 * outputs debug information about the ResourceManager 781 781 */ 782 782 void ResourceManager::debug() const
Note: See TracChangeset
for help on using the changeset viewer.