Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 22, 2006, 10:20:14 PM (18 years ago)
Author:
bensch
Message:

nicer definition of the StorePointer

File:
1 edited

Legend:

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

    r9788 r9789  
    4242    this->_type->setID(NewResource::_resourceTypes.size()-1);
    4343  }
    44 
    4544}
    4645
     
    6665
    6766
    68 NewResource::Pointer* NewResource::acquireResource(const std::string& loadString)
     67NewResource::StorePointer* NewResource::acquireResource(const std::string& loadString)
    6968{
    7069  //const NewResource::Type* const type = NewResource::_resourceTypes[this->_type->id()];
     
    9493
    9594
    96 void NewResource::addResource(NewResource::Pointer* pointer)
     95void NewResource::addResource(NewResource::StorePointer* pointer)
    9796{
    9897  this->_type->addResource(pointer);
     
    107106
    108107
    109 
    110 void NewResource::KeepLevel::setKeepLevelName(unsigned int level, const std::string& name)
     108std::vector<std::string>  NewResource::KeepLevel::_keepLevelNames;
     109void NewResource::KeepLevel::defineKeepLevelName(unsigned int level, const std::string& name)
    111110{
    112   if (_keepLevelName.size() <= level)
    113     _keepLevelName.resize(level+1);
    114   _keepLevelName[level] = name;
     111  if (_keepLevelNames.size() <= level)
     112    _keepLevelNames.resize(level+1);
     113  _keepLevelNames[level] = name;
    115114}
    116115
    117116
    118117
    119 void NewResource::Type::addResource(NewResource::Pointer* resource)
     118void NewResource::Type::addResource(NewResource::StorePointer* resource)
    120119{
    121120  this->_storedResources.push_back(resource);
     
    124123
    125124
    126 NewResource::Pointer::Pointer(const std::string& loadString, const NewResource::KeepLevel& keeplevel)
    127   : _loadString(loadString), _keepLevel(keeplevel)
     125NewResource::StorePointer::StorePointer(const std::string& loadString, const NewResource::KeepLevel& keeplevel)
     126    : _loadString(loadString), _keepLevel(keeplevel)
    128127{}
    129128
Note: See TracChangeset for help on using the changeset viewer.