Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6647 in orxonox.OLD for trunk/src/util


Ignore:
Timestamp:
Jan 21, 2006, 6:01:43 PM (19 years ago)
Author:
bensch
Message:

trunk: doxygen

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/loading/resource_manager.cc

    r6646 r6647  
    5050
    5151/**
    52  * standard constructor
     52 * @brief standard constructor
    5353*/
    5454ResourceManager::ResourceManager ()
     
    6666
    6767/**
    68  * standard destructor
     68 * @brief standard destructor
    6969*/
    7070ResourceManager::~ResourceManager ()
     
    8989
    9090/**
    91  * sets the data main directory
     91 * @brief sets the data main directory
    9292 * @param dataDir the DataDirectory.
    9393 */
     
    122122
    123123/**
    124  * sets the data main directory
     124 * @brief sets the data main directory
    125125 * @param dataDir the DataDirectory.
    126126 *
     
    153153
    154154
    155 
    156 /**
    157  * checks for the DataDirectory, by looking if
     155/**
     156 * @brief checks for the DataDirectory, by looking if
    158157 * @param fileInside is iniside of the given directory.
    159158*/
     
    176175#ifndef NO_TEXTURES
    177176/**
    178  * adds a new Path for Images
     177 * @brief adds a new Path for Images
    179178 * @param imageDir The path to insert
    180179 * @returns true, if the Path was well and injected (or already existent within the list)
     
    227226
    228227/**
    229  * loads resources
     228 * @brief loads resources
    230229 * @param fileName: The fileName of the resource to load
    231230 * @param prio: The ResourcePriority of this resource (will only be increased)
     
    295294
    296295/**
    297  * caches a Resource
     296 * @brief caches a Resource
    298297 *
    299298 * @see load;
     
    323322
    324323/**
    325  * loads resources
     324 * @brief loads resources
    326325 * @param fileName: The fileName of the resource to load
    327326 * @param type: The Type of Resource to load.
     
    358357
    359358/**
    360  * loads resources for internal purposes
     359 * @brief loads resources for internal purposes
    361360 * @param fileName: The fileName of the resource to load
    362361 * @param type: The Type of Resource to load.
     
    529528
    530529/**
    531  * unloads a Resource
     530 * @brief unloads a Resource
    532531 * @param pointer: The pointer to free
    533532 * @param prio: the PriorityLevel to unload this resource
     
    550549
    551550/**
    552  * unloads a Resource
     551 * @brief unloads a Resource
    553552 * @param resource: The resource to unloade
    554553 * @param prio the PriorityLevel to unload this resource
     
    623622
    624623/**
    625  * unloads all alocated Memory of Resources with a pririty lower than prio
     624 * @brief unloads all alocated Memory of Resources with a pririty lower than prio
    626625 * @param prio The priority to delete
    627626*/
     
    654653
    655654/**
    656  * Searches for a Resource by some information
     655 * @brief Searches for a Resource by some information
    657656 * @param fileName: The name to look for
    658657 * @param type the Type of resource to locate.
     
    671670    {
    672671      bool match = false;
    673 
    674672      switch (type)
    675673      {
     
    682680            match = true;
    683681        }
    684         else if ((*resource)->param[0] == param0)
     682        else if ((*resource)->param[0] == param0.getFloat())
    685683          match = true;
    686684        break;
     
    691689            match = true;
    692690        }
    693         else if ((*resource)->param[0] == param0)
     691        else if ((*resource)->param[0] == ((MultiType)param0).getString())
    694692          match = true;
    695693        break;
     
    702700            match = true;
    703701        }
    704         else if ((*resource)->param[0] == param0)
     702        else if ((*resource)->param[0] == param0.getInt())
    705703          match = true;
    706704        break;
     
    713711            match = true;
    714712        }
    715         else if ((*resource)->param[0] == param0)
     713        else if ((*resource)->param[0] == ((MultiType)param0).getString())
    716714          match = true;
    717715#endif /* NO_SHADERS */
     
    723721            match = true;
    724722        }
    725         else if ((*resource)->param[0] ==  param0)
     723        else if ((*resource)->param[0] ==  param0.getInt())
    726724          match = true;
    727725#endif /* NO_TEXTURES */
     
    740738
    741739/**
    742  * Searches for a Resource by Pointer
     740 * @brief Searches for a Resource by Pointer
    743741 * @param pointer the Pointer to search for
    744742 * @returns a Pointer to the Resource if found, NULL otherwise.
    745 */
     743 */
    746744Resource* ResourceManager::locateResourceByPointer(const void* pointer) const
    747745{
     
    755753
    756754/**
    757  * Checks if it is a Directory
     755 * @brief Checks if it is a Directory
    758756 * @param directoryName the Directory to check for
    759757 * @returns true if it is a directory/symlink false otherwise
     
    806804
    807805/**
    808  * Checks if the file is either a Regular file or a Symlink
     806 * @brief Checks if the file is either a Regular file or a Symlink
    809807 * @param fileName the File to check for
    810808 * @returns true if it is a regular file/symlink, false otherwise
     
    842840
    843841/**
    844  * touches a File on the disk (thereby creating it)
     842 * @brief touches a File on the disk (thereby creating it)
    845843 * @param fileName The file to touch
    846844*/
     
    863861
    864862/**
    865  * deletes a File from disk
     863 * @brief deletes a File from disk
    866864 * @param fileName the File to delete
    867865*/
     
    928926
    929927/**
    930  * checks wether a file is in the DataDir.
     928 * @brief checks wether a file is in the DataDir.
    931929 * @param fileName the File to check if it is in the Data-Dir structure.
    932930 * @returns true if the file exists, false otherwise
     
    952950
    953951/**
    954  * outputs debug information about the ResourceManager
    955 */
     952 * @brief outputs debug information about the ResourceManager
     953 */
    956954void ResourceManager::debug() const
    957955{
     
    10021000
    10031001/**
    1004  * converts a ResourceType into the corresponding String
     1002 * @brief converts a ResourceType into the corresponding String
    10051003 * @param type the ResourceType to translate
    10061004 * @returns the converted String.
Note: See TracChangeset for help on using the changeset viewer.