Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9792 in orxonox.OLD for branches/new_class_id


Ignore:
Timestamp:
Sep 23, 2006, 2:36:57 PM (18 years ago)
Author:
bensch
Message:

removed dependency from ClassID

Location:
branches/new_class_id/src/lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/lib/graphics/importer/resource_texture.cc

    r9791 r9792  
    2525
    2626
    27 Resources::Type ResourceTexture::type(Texture::staticClassID());
     27Resources::Type ResourceTexture::type("Texture");
    2828
    2929
  • branches/new_class_id/src/lib/util/loading/new_resource_manager.cc

    r9791 r9792  
    113113  std::vector<Resources::Type*>::const_iterator it;
    114114  for (it = this->_resourceTypes.begin(); it != this->_resourceTypes.end(); ++it)
    115     PRINT(0)("ResourceType '%s'\n", (*it)->storedClassID().name().c_str());
     115    PRINT(0)("ResourceType '%s'\n", (*it)->storedClassName().c_str());
    116116
    117117  PRINT(0)("==================================RM==\n");
  • branches/new_class_id/src/lib/util/loading/resource.cc

    r9791 r9792  
    125125//// TYPE ////
    126126//////////////
    127 Resources::Type::Type(const ClassID& classID)
    128     : _id(-1), _classID(classID)
     127Resources::Type::Type(const std::string& typeName)
     128    : _id(-1), _typeName(typeName)
    129129{
    130130  NewResourceManager::getInstance()->registerType(this);
  • branches/new_class_id/src/lib/util/loading/resource.h

    r9791 r9792  
    4444  {
    4545  public:
    46     Type(const ClassID& classID);
    47     bool operator==(const ClassID& classID) const { return this->_classID == classID; };
    48     bool operator==(const std::string& resourceName) const { return this->_classID.name() == resourceName; };
     46    Type(const std::string& typeName);
     47    bool operator==(const std::string& resourceName) const { return this->_typeName == resourceName; };
    4948
    5049    void addExtension(const std::string& extension);
     
    5453
    5554    /// Retrieve Functions
    56     const ClassID& storedClassID() const { return _classID; };
     55    const std::string& storedClassName() const { return _typeName; };
    5756    int id() const { return _id; };
    5857    const std::vector<Directory>& resourcePaths() const { return _resourcePaths; };
     
    6564  private:
    6665    int                             _id;
    67     const ClassID&                  _classID;
     66    const std::string&              _typeName;
    6867    std::vector<Directory>          _resourcePaths;
    6968    std::vector<Directory>          _resourceSubPaths;
Note: See TracChangeset for help on using the changeset viewer.