BearParser
Portable Executable parsing library (from PE-bear)
Loading...
Searching...
No Matches
parser
MappedExe.cpp
Go to the documentation of this file.
1
#include "
MappedExe.h
"
2
3
void
ExeWrappersContainer::clearWrappers
()
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
13
ExeElementWrapper
*
ExeWrappersContainer::getWrapper
(
size_t
wrapperId)
14
{
15
if
(
wrappers
.find(wrapperId) ==
wrappers
.end())
return
NULL;
16
return
wrappers
[wrapperId];
17
}
18
19
QString
ExeWrappersContainer::getWrapperName
(
size_t
id
)
20
{
21
if
(
wrappers
.find(
id
) ==
wrappers
.end())
return
""
;
22
return
wrappers
[id]->
getName
();
23
}
MappedExe.h
ExeElementWrapper
Definition
ExeElementWrapper.h:12
ExeElementWrapper::getName
virtual QString getName()=0
ExeWrappersContainer::wrappers
std::map< size_t, ExeElementWrapper * > wrappers
Definition
MappedExe.h:27
ExeWrappersContainer::getWrapperName
QString getWrapperName(size_t id)
Definition
MappedExe.cpp:19
ExeWrappersContainer::clearWrappers
void clearWrappers()
Definition
MappedExe.cpp:3
ExeWrappersContainer::getWrapper
virtual ExeElementWrapper * getWrapper(size_t wrapperId)
Definition
MappedExe.cpp:13
Generated by
1.12.0