BearParser
Portable Executable parsing library (from PE-bear)
Loading...
Searching...
No Matches
ResourcesAlbum Class Reference

#include <ResourcesAlbum.h>

Public Member Functions

 ResourcesAlbum (Executable *pe)
 
virtual ~ResourcesAlbum ()
 
void putLeaf (ResourceLeafWrapper *leaf, long topEntryId)
 
void clear ()
 
size_t dirsCount ()
 
size_t entriesCountAt (long topEntryId)
 
std::vector< ResourceLeafWrapper * > * entriesAt (long topEntryId)
 
void mapIdToLeafType (long topId, pe::resource_type leafType)
 
void wrapLeafsContent ()
 
ResourceContentWrappergetContentWrapper (ResourceLeafWrapper *leaf)
 
bool hasType (pe::resource_type typeId)
 
ResourcesContainergetResourcesOfType (pe::resource_type typeId)
 
std::vector< pe::resource_type > getResourceTypes () const
 

Protected Member Functions

void clearLeafsContent ()
 
void initResourceTypes ()
 
bool hasTopEntry (long topEntryId)
 

Protected Attributes

std::vector< pe::resource_type > allTypes
 
std::map< pe::resource_type, ResourcesContainerallWrappers
 
std::map< long, std::vector< ResourceLeafWrapper * > > allLeafs
 
std::map< long, pe::resource_type > idToLeafType
 
std::map< ResourceLeafWrapper *, ResourceContentWrapper * > leafToContentWrapper
 

Detailed Description

Definition at line 27 of file ResourcesAlbum.h.

Constructor & Destructor Documentation

◆ ResourcesAlbum()

ResourcesAlbum::ResourcesAlbum ( Executable * pe)
inline

Definition at line 30 of file ResourcesAlbum.h.

◆ ~ResourcesAlbum()

virtual ResourcesAlbum::~ResourcesAlbum ( )
inlinevirtual

Definition at line 32 of file ResourcesAlbum.h.

Here is the call graph for this function:

Member Function Documentation

◆ clear()

void ResourcesAlbum::clear ( )

Definition at line 45 of file ResourcesAlbum.cpp.

Here is the call graph for this function:

◆ clearLeafsContent()

void ResourcesAlbum::clearLeafsContent ( )
protected

Definition at line 35 of file ResourcesAlbum.cpp.

◆ dirsCount()

size_t ResourcesAlbum::dirsCount ( )
inline

Definition at line 37 of file ResourcesAlbum.h.

◆ entriesAt()

std::vector< ResourceLeafWrapper * > * ResourcesAlbum::entriesAt ( long topEntryId)

Definition at line 97 of file ResourcesAlbum.cpp.

Here is the call graph for this function:

◆ entriesCountAt()

size_t ResourcesAlbum::entriesCountAt ( long topEntryId)

Definition at line 89 of file ResourcesAlbum.cpp.

Here is the call graph for this function:

◆ getContentWrapper()

ResourceContentWrapper * ResourcesAlbum::getContentWrapper ( ResourceLeafWrapper * leaf)
inline

Definition at line 44 of file ResourcesAlbum.h.

◆ getResourcesOfType()

ResourcesContainer * ResourcesAlbum::getResourcesOfType ( pe::resource_type typeId)

Definition at line 105 of file ResourcesAlbum.cpp.

Here is the call graph for this function:

◆ getResourceTypes()

std::vector< pe::resource_type > ResourcesAlbum::getResourceTypes ( ) const
inline

Definition at line 48 of file ResourcesAlbum.h.

◆ hasTopEntry()

bool ResourcesAlbum::hasTopEntry ( long topEntryId)
inlineprotected

Definition at line 54 of file ResourcesAlbum.h.

◆ hasType()

bool ResourcesAlbum::hasType ( pe::resource_type typeId)
inline

Definition at line 46 of file ResourcesAlbum.h.

◆ initResourceTypes()

void ResourcesAlbum::initResourceTypes ( )
protected

Definition at line 113 of file ResourcesAlbum.cpp.

◆ mapIdToLeafType()

void ResourcesAlbum::mapIdToLeafType ( long topId,
pe::resource_type leafType )
inline

Definition at line 42 of file ResourcesAlbum.h.

◆ putLeaf()

void ResourcesAlbum::putLeaf ( ResourceLeafWrapper * leaf,
long topEntryId )

Definition at line 60 of file ResourcesAlbum.cpp.

◆ wrapLeafsContent()

void ResourcesAlbum::wrapLeafsContent ( )

Definition at line 66 of file ResourcesAlbum.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ allLeafs

std::map<long, std::vector<ResourceLeafWrapper*> > ResourcesAlbum::allLeafs
protected

Definition at line 58 of file ResourcesAlbum.h.

◆ allTypes

std::vector<pe::resource_type> ResourcesAlbum::allTypes
protected

Definition at line 56 of file ResourcesAlbum.h.

◆ allWrappers

std::map<pe::resource_type, ResourcesContainer> ResourcesAlbum::allWrappers
protected

Definition at line 57 of file ResourcesAlbum.h.

◆ idToLeafType

std::map<long, pe::resource_type> ResourcesAlbum::idToLeafType
protected

Definition at line 60 of file ResourcesAlbum.h.

◆ leafToContentWrapper

std::map<ResourceLeafWrapper*, ResourceContentWrapper*> ResourcesAlbum::leafToContentWrapper
protected

Definition at line 61 of file ResourcesAlbum.h.


The documentation for this class was generated from the following files: