Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Sep 24, 2006, 11:34:19 AM (18 years ago)
Author:
bensch
Message:

cleaner deletion of NewResourceManager

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

Legend:

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

    r9795 r9797  
    2020
    2121#include <algorithm>
    22 #include <assert.h>
     22#include <cassert>
    2323
    2424ObjectListDefinition(NewResourceManager);
  • branches/new_class_id/src/lib/util/loading/new_resource_manager.h

    r9795 r9797  
    1414  ObjectListDeclaration(NewResourceManager);
    1515public:
    16   virtual ~NewResourceManager();
    1716  /** @returns a Pointer to the only object of this Class */
    1817  inline static NewResourceManager* getInstance() { if (!_singletonRef) _singletonRef = new NewResourceManager();  return _singletonRef; };
     18  inline static void deleteInstance() { if (_singletonRef) delete _singletonRef; };
    1919
    2020
     
    2626  void registerType(Resources::Type* type);
    2727
     28  void addKeepLevel(unsigned int i, const std::string& keepLevel);
    2829
    2930  const std::vector<Resources::Type*> resourceTypes() const { return _resourceTypes; };
     
    4445private:
    4546  NewResourceManager();
     47  virtual ~NewResourceManager();
    4648
    4749private:
    48   static NewResourceManager*       _singletonRef;       //!< singleton Reference
     50  static NewResourceManager*         _singletonRef;       //!< singleton Reference
    4951
    50   std::vector<Resources::Type*>    _resourceTypes;
     52  std::vector<Resources::Type*>      _resourceTypes;
    5153  //! GLOBALS
    52   Directory                        _mainGlobalPath;
    53   std::vector<Directory>           _globalPaths;
     54  Directory                          _mainGlobalPath;
     55  std::vector<Directory>             _globalPaths;
    5456
    55 
     57  std::vector<Resources::KeepLevel>  _keepLevels;
    5658};
    5759
Note: See TracChangeset for help on using the changeset viewer.