Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9847 in orxonox.OLD for branches/new_class_id/src/lib/util/loading


Ignore:
Timestamp:
Sep 27, 2006, 11:25:43 PM (18 years ago)
Author:
bensch
Message:

renamed NewResource to Resource

Location:
branches/new_class_id/src/lib/util/loading
Files:
2 edited

Legend:

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

    r9846 r9847  
    2424namespace Resources
    2525{
    26   ObjectListDefinition(NewResource);
     26  ObjectListDefinition(Resource);
    2727
    2828
     
    3030   * standard constructor
    3131  */
    32   NewResource::NewResource (Type* type)
     32  Resource::Resource (Type* type)
    3333      : _pointer(NULL), _type(type)
    3434  {
    35     this->registerObject(this, NewResource::_objectList);
     35    this->registerObject(this, Resource::_objectList);
    3636  }
    3737
     
    3939   * standard deconstructor
    4040   */
    41   NewResource::~NewResource ()
     41  Resource::~Resource ()
    4242  {
    4343    // delete what has to be deleted here
     
    4545
    4646
    47   std::string NewResource::locateFile(const std::string& fileName) const
     47  std::string Resource::locateFile(const std::string& fileName) const
    4848  {
    4949    if ((ResourceManager::getInstance()->mainGlobalPath() + File(fileName)).exists() )
     
    6969   * @return true on success.
    7070   */
    71   std::string NewResource::locateFileInSubDir(const Directory& directory, const std::string& fileName) const
     71  std::string Resource::locateFileInSubDir(const Directory& directory, const std::string& fileName) const
    7272  {
    7373    std::vector<Directory>::const_iterator it;
     
    8484
    8585
    86   StorePointer* NewResource::acquireResource(const std::string& loadString)
     86  StorePointer* Resource::acquireResource(const std::string& loadString)
    8787  {
    8888    //const Type* const type = _resourceTypes[this->_type->id()];
     
    9898
    9999
    100   void NewResource::addResource(StorePointer* pointer)
     100  void Resource::addResource(StorePointer* pointer)
    101101  {
    102102    this->_type->addResource(pointer);
  • branches/new_class_id/src/lib/util/loading/resource.h

    r9846 r9847  
    11/*!
    22 * @file resource.h
    3  * @brief Definition of a NewResource.
     3 * @brief Definition of a Resource.
    44*/
    55
     
    130130
    131131
    132   //! A NewResource is an Object, that can be loaded from Disk
     132
     133
     134  //! A Resource is an Object, that can be loaded from Disk
    133135  /**
    134    * The NewResource Hanldes the location and stores pointers to data that can be retrieved.
     136   * The Resource Hanldes the location and stores pointers to data that can be retrieved.
    135137   */
    136   class NewResource : virtual public BaseObject
     138  class Resource : virtual public BaseObject
    137139  {
    138     ObjectListDeclaration(NewResource);
     140    ObjectListDeclaration(Resource);
    139141
    140142  public:
    141     NewResource(Resources::Type* type);
    142     virtual ~NewResource();
     143    Resource(Resources::Type* type);
     144    virtual ~Resource();
    143145
    144146    /** @brief reloads the underlying resource */
     
    158160  private:
    159161    Resources::StorePointer*       _pointer;                         //!< Virtual Pointer to the ResourceData.
    160     Resources::Type*               _type;                            //!< Type of the NewResource.
     162    Resources::Type*               _type;                            //!< Type of the Resource.
    161163  };
    162164}
Note: See TracChangeset for help on using the changeset viewer.