Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 30, 2005, 3:02:58 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: ResourceManager not totally static anymore, list-iterators, and so on

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/util/resource_manager.h

    r3660 r3672  
    5656  virtual ~ResourceManager();
    5757
    58   static bool setDataDir(char* dataDir);
    59   static bool addImageDir(char* imageDir);
    60   static void* load(const char* fileName, ResourcePriority prio = RP_NO);
    61   static void* load(const char* fileName, ResourceType type, ResourcePriority prio = RP_NO);
    62   static bool unload(void* pointer, ResourcePriority prio = RP_NO);
    63   static bool unload(Resource* resource, ResourcePriority = RP_NO);
    64   static bool unloadAllByPriority(ResourcePriority prio);
     58  bool setDataDir(char* dataDir);
     59  bool addImageDir(char* imageDir);
     60  void* load(const char* fileName, ResourcePriority prio = RP_NO);
     61  void* load(const char* fileName, ResourceType type, ResourcePriority prio = RP_NO);
     62  bool unload(void* pointer, ResourcePriority prio = RP_NO);
     63  bool unload(Resource* resource, ResourcePriority = RP_NO);
     64  bool unloadAllByPriority(ResourcePriority prio);
    6565
    6666 private:
     
    6868  static ResourceManager* singletonRef;
    6969
    70   static tList<Resource>* resourceList;
    71   static char* dataDir;
    72   static tList<char>* imageDirs;
     70  tList<Resource>* resourceList;       //!< The List of Resources, that has already been loaded.
     71  char* dataDir;                       //!< The Data Directory, where all relevant Data is stored.
     72  tList<char>* imageDirs;              //!< A list of directories in which images are stored.
    7373
    74   static Resource* locateResourceByName(const char* fileName);
    75   static Resource* locateResourceByPointer(const void* pointer);
     74
     75  Resource* locateResourceByName(const char* fileName);
     76  Resource* locateResourceByPointer(const void* pointer);
    7677 
    77   static bool isDir(const char* directory);
    78   static bool isFile(const char* directory); 
     78  bool isDir(const char* directory);
     79  bool isFile(const char* directory); 
    7980};
    8081
Note: See TracChangeset for help on using the changeset viewer.