Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 23, 2006, 3:48:03 PM (18 years ago)
Author:
bensch
Message:

orxonox/new_class_id: storing works better now

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/util/loading/resource.cc

    r9792 r9793  
    4949    return (NewResourceManager::getInstance()->mainGlobalPath() + File(fileName)).name();
    5050
    51   printf("LOCATED %s\n", locateFileInSubDir(Directory("/home/bensch/svn/orxonox/data/"), fileName).c_str());
    52 
     51  std::string locatedFile;
     52  locatedFile = locateFileInSubDir(Directory("/home/bensch/svn/orxonox/data/"), fileName);
     53  if (!locatedFile.empty())
     54  {
     55    printf("FILE found %s\n", locatedFile.c_str());
     56    return locatedFile;
     57  }
    5358  return std::string("/home/bensch/svn/orxonox/data/") + fileName;
    5459}
     
    129134{
    130135  NewResourceManager::getInstance()->registerType(this);
     136  printf("%s\n", typeName.c_str());
    131137}
    132138
     
    163169  this->_id = id;
    164170}
     171
     172
     173void Resources::Type::debug() const
     174{
     175  PRINT(0)(" ResourceType '%s' with ID %d stores %d Resources\n", this->_typeName.c_str(), this->_id, this->_storedResources.size());
     176  PRINT(0)("  Paths:\n");
     177  for (unsigned int i = 0; i < this->_resourcePaths.size(); ++i)
     178    PRINT(0)("    %s\n", this->_resourcePaths[i].name().c_str());
     179  PRINT(0)("  Sub-Paths:\n");
     180  for (unsigned int i = 0; i < this->_resourceSubPaths.size(); ++i)
     181    PRINT(0)("    %s\n", this->_resourceSubPaths[i].name().c_str());
     182
     183}
Note: See TracChangeset for help on using the changeset viewer.