Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

removed dependency from ClassID

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.