Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 22, 2006, 6:55:52 PM (19 years ago)
Author:
bensch
Message:

renaming for namespace-purposes

File:
1 edited

Legend:

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

    r9786 r9788  
    11/*!
    22 * @file resource.h
    3  * @brief Definition of a Resource.
     3 * @brief Definition of a NewResource.
    44*/
    55
     
    1515#include "filesys/directory.h"
    1616
    17 //! A Resource is an Object, that can be loaded from Disk
     17//! A NewResource is an Object, that can be loaded from Disk
    1818/**
    1919 *
    2020 */
    21 class Resource : virtual public BaseObject
     21class NewResource : virtual public BaseObject
    2222{
    23   ObjectListDeclaration(Resource);
     23  ObjectListDeclaration(NewResource);
    2424public:
    2525  class KeepLevel
     
    3535  {
    3636  public:
    37     Pointer(const std::string& loadString, const Resource::KeepLevel& keeplevel);
     37    Pointer(const std::string& loadString, const NewResource::KeepLevel& keeplevel);
    3838    const std::string& loadString() const { return _loadString; };
    39     const Resource::KeepLevel& keepLevel() const { return _keepLevel; };
     39    const NewResource::KeepLevel& keepLevel() const { return _keepLevel; };
    4040
    4141  private:
    4242    std::string              _loadString;             //!< An identifier, to match when loading a File.
    43     Resource::KeepLevel      _keepLevel;              //!< The Priority of this resource. (can only be increased, so none else will delete this)
     43    NewResource::KeepLevel      _keepLevel;              //!< The Priority of this resource. (can only be increased, so none else will delete this)
    4444  };
    4545
     
    6060    const std::vector<std::string>& resourcePaths() const { return _resourcePaths; };
    6161    const std::vector<std::string>& resourceSubPaths() const { return _resourceSubPaths; };
    62     const std::vector<Resource::Pointer*>& storedResources() const { return _storedResources; };
     62    const std::vector<NewResource::Pointer*>& storedResources() const { return _storedResources; };
    6363
    6464    void setID(int id);
    65     void addResource(Resource::Pointer* resource);
     65    void addResource(NewResource::Pointer* resource);
    6666
    6767  private:
     
    7272    std::vector<std::string>        _fileExtensions;
    7373
    74     std::vector<Resource::Pointer*> _storedResources;
     74    std::vector<NewResource::Pointer*> _storedResources;
    7575  };
    7676
    7777
    7878public:
    79   Resource(Resource::Type* type);
    80   virtual ~Resource();
     79  NewResource(NewResource::Type* type);
     80  virtual ~NewResource();
    8181
    8282  virtual bool reload() { return false; };
     
    9292
    9393protected:
    94   Resource::Pointer* acquireResource(const std::string& loadString);
    95   void addResource(Resource::Pointer* pointer);
     94  NewResource::Pointer* acquireResource(const std::string& loadString);
     95  void addResource(NewResource::Pointer* pointer);
    9696
    9797private:
    98   Resource::Pointer*       _pointer;                         //!< Virtual Pointer to the ResourceData.
    99   Resource::Type*          _type;                            //!< Type of the Resource.
     98  NewResource::Pointer*       _pointer;                         //!< Virtual Pointer to the ResourceData.
     99  NewResource::Type*          _type;                            //!< Type of the NewResource.
    100100
    101101
    102   static std::vector<Resource::Type*>    _resourceTypes;
     102  static std::vector<NewResource::Type*>    _resourceTypes;
    103103
    104104  //! GLOBALS
Note: See TracChangeset for help on using the changeset viewer.