Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4166 in orxonox.OLD for orxonox/trunk/src/util/resource_manager.cc


Ignore:
Timestamp:
May 11, 2005, 3:07:34 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: resourceManager has some new functions

File:
1 edited

Legend:

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

    r4116 r4166  
    584584}
    585585
     586/**
     587   \brief touches a File on the disk (thereby creating it)
     588   \param fileName The file to touch
     589*/
    586590bool ResourceManager::touchFile(const char* fileName)
    587591{
     
    599603}
    600604
     605/**
     606   \brief deletes a File from disk
     607   \param fileName the File to delete
     608*/
    601609bool ResourceManager::deleteFile(const char* fileName)
    602610{
     
    606614}
    607615
     616/**
     617    \param fileName the Name of the file to check
     618    \returns The name of the file, including the HomeDir
     619    IMPORTANT: this has to be deleted from the outside
     620*/
    608621char* ResourceManager::homeDirCheck(const char* name)
    609622{
     
    628641}
    629642
     643/**
     644    \param fileName the Name of the File to check
     645    \returns The full name of the file, including the DataDir
     646    IMPORTANT: this has to be deleted from the outside
     647*/
     648char* ResourceManager::getFullName(const char* fileName)
     649{
     650  char* retName = new char[strlen(ResourceManager::getInstance()->getDataDir()) + strlen(fileName)+1];
     651  sprintf(retName, "%s%s", ResourceManager::getInstance()->getDataDir(), fileName);
     652  return retName;
     653}
    630654
    631655
Note: See TracChangeset for help on using the changeset viewer.