BearParser
Portable Executable parsing library (from PE-bear)
Loading...
Searching...
No Matches
MappedExe.cpp
Go to the documentation of this file.
1#include "MappedExe.h"
2
4{
5 std::map<size_t, ExeElementWrapper*>::iterator itr;
6 for (itr = this->wrappers.begin(); itr != this->wrappers.end(); ++itr){
7 ExeElementWrapper* wrapper = itr->second;
8 delete wrapper;
9 }
10 wrappers.clear();
11}
12
14{
15 if (wrappers.find(wrapperId) == wrappers.end()) return NULL;
16 return wrappers[wrapperId];
17}
18
20{
21 if (wrappers.find(id) == wrappers.end()) return "";
22 return wrappers[id]->getName();
23}
virtual QString getName()=0
std::map< size_t, ExeElementWrapper * > wrappers
Definition MappedExe.h:27
QString getWrapperName(size_t id)
Definition MappedExe.cpp:19
virtual ExeElementWrapper * getWrapper(size_t wrapperId)
Definition MappedExe.cpp:13