2009-09-17 13:06:04 +00:00
|
|
|
#ifndef MACHOCACHE_H
|
|
|
|
#define MACHOCACHE_H
|
|
|
|
|
|
|
|
#include "macho_global.h"
|
|
|
|
|
|
|
|
class MachO;
|
2009-09-29 15:01:48 +00:00
|
|
|
class EXPORT MachOCache
|
2009-09-17 13:06:04 +00:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
MachOCache();
|
|
|
|
~MachOCache();
|
2016-11-19 16:23:39 +01:00
|
|
|
MachO* getFile(const std::string& filename, const MachO* parent);
|
2009-09-17 13:06:04 +00:00
|
|
|
unsigned int getNumEntries();
|
|
|
|
private:
|
2016-11-19 16:23:39 +01:00
|
|
|
typedef std::map<std::string, MachO*> CacheMap;
|
2009-09-17 13:06:04 +00:00
|
|
|
typedef CacheMap::iterator CacheMapIterator;
|
|
|
|
CacheMap cache;
|
|
|
|
};
|
|
|
|
|
2016-11-19 16:23:39 +01:00
|
|
|
#endif // MACHOCACHE_H
|